Guest User

Untitled

a guest
Aug 20th, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.24 KB | None | 0 0
  1. import us.maponline.User
  2. import us.maponline.PhoneType
  3. import us.maponline.Phone
  4. import us.maponline.pesticide.PesticideProfile
  5. import us.maponline.pesticide.PesticideApplicator
  6. import us.maponline.PesticideApplicatorLicense
  7. import us.maponline.pesticide.Crop
  8. import us.maponline.pesticide.PesticideSite
  9.  
  10. fixture {
  11.  
  12.     berry_crop(Crop, name: 'Blackberry')
  13.  
  14. //TODO:  other_phone is defined in mark_mariner.groovy.  move other_phone to a global fixture file. -jg
  15.     pauls_phone(Phone, areaCode: '207', prefix: '292', suffix: '9292', type: other_phone)
  16.  
  17.  
  18.     applicator(PesticideApplicator, company: 'Humble Sprayers Inc', firstName: 'Peter',
  19.             lastName: 'Preston', phoneNumber: pauls_phone, licenseType: PesticideApplicatorLicense.MASTER_COMMERCIAL)
  20.  
  21.     blackberry_site(PesticideSite, name: 'McGrubbers Berry Farm 1', location: '1919 Rte 1',
  22.             gpsCoordinates: '99999.99', acres: 1000, crop: berry_crop)
  23.  
  24.     pesticide_profile(PesticideProfile, companyName: 'Dust Berries, Inc.', applicators: [applicator],sites:[blackberry_site])
  25.  
  26.  
  27.     paul(User, username: 'paul', password: 'secret', email: 'paulk@axiom.com', enabled: true,
  28.             active: true, firstName: 'Paul', lastName: 'Pesticide', pesticideProfile: pesticide_profile, phoneNumbers: [pauls_phone])
  29.  
  30. }
Add Comment
Please, Sign In to add comment