Changeset 896
- Timestamp:
 - Apr 22, 2011, 1:14:08 PM (15 years ago)
 - Location:
 - branches/features/purchaseOrders
 - Files:
 - 
          
- 2 edited
 
- 
          grails-app/domain/PurchaseOrder.groovy (modified) (2 diffs)
 - 
          test/unit/PurchaseOrderServiceTests.groovy (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/features/purchaseOrders/grails-app/domain/PurchaseOrder.groovy
r892 r896 3 3 Supplier supplier 4 4 5 String comment s5 String comment = "" 6 6 Date ordered 7 7 … … 11 11 12 12 static constraints = { 13 comment s(nullable:true)13 comment(maxSize:255) 14 14 ordered(nullable:true) 15 15 }  - 
        
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.
      