Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import us.maponline.User
- import us.maponline.PhoneType
- import us.maponline.Phone
- import us.maponline.pesticide.PesticideProfile
- import us.maponline.pesticide.PesticideApplicator
- import us.maponline.PesticideApplicatorLicense
- import us.maponline.pesticide.Crop
- import us.maponline.pesticide.PesticideSite
- fixture {
- berry_crop(Crop, name: 'Blackberry')
- //TODO: other_phone is defined in mark_mariner.groovy. move other_phone to a global fixture file. -jg
- pauls_phone(Phone, areaCode: '207', prefix: '292', suffix: '9292', type: other_phone)
- applicator(PesticideApplicator, company: 'Humble Sprayers Inc', firstName: 'Peter',
- lastName: 'Preston', phoneNumber: pauls_phone, licenseType: PesticideApplicatorLicense.MASTER_COMMERCIAL)
- blackberry_site(PesticideSite, name: 'McGrubbers Berry Farm 1', location: '1919 Rte 1',
- gpsCoordinates: '99999.99', acres: 1000, crop: berry_crop)
- pesticide_profile(PesticideProfile, companyName: 'Dust Berries, Inc.', applicators: [applicator],sites:[blackberry_site])
- paul(User, username: 'paul', password: 'secret', email: 'paulk@axiom.com', enabled: true,
- active: true, firstName: 'Paul', lastName: 'Pesticide', pesticideProfile: pesticide_profile, phoneNumbers: [pauls_phone])
- }
Add Comment
Please, Sign In to add comment