Changeset 896 for branches/features/purchaseOrders/test
- Timestamp:
- Apr 22, 2011, 1:14:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/purchaseOrders/test/unit/PurchaseOrderServiceTests.groovy
r894 r896 55 55 def po = pos.getOrCreatePurchaseOrder(params) 56 56 57 assertThat po.comment s, equalTo("Created by test")57 assertThat po.comment, equalTo("Created by test") 58 58 assertThat po.purchaseOrderNumber.value, equalTo("P1001") 59 59 } … … 67 67 def po = pos.getOrCreatePurchaseOrder(params) 68 68 69 assertThat po.comment s, equalTo(null)69 assertThat po.comment, equalTo("") 70 70 assertThat po.purchaseOrderNumber.value, equalTo("P1003") 71 71 } … … 87 87 def createPurchaseOrders(int howMany) { 88 88 for (int i=0; i<howMany; i++) { 89 def po = new PurchaseOrder(comment s:"Created by test", supplier:new Supplier())89 def po = new PurchaseOrder(comment:"Created by test", supplier:new Supplier()) 90 90 def pon = PurchaseOrderNumber.list()[i] 91 91 pon.purchaseOrder = po;
Note: See TracChangeset
for help on using the changeset viewer.