Guest User

Untitled

a guest
Jul 16th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. fixture {
  2. //NOTE: you must use the instance that you create!!
  3.  
  4. def sdf = new java.text.SimpleDateFormat("yyyy-MM-dd")
  5. def begindate = sdf.parse("2009-07-20")
  6. def enddate = sdf.parse("2009-09-20")
  7. def yes = true
  8. def no = false
  9.  
  10. binneyd(User, username:"binneyd", lastName:"Binney", firstName:"David", type:"ADMIN", phone:"0749282345")
  11. bassnetp(User, username:"bassnetp", lastName:"Praj", firstName:"Bassnet", type:"ADMIN", phone:"0749282312")
  12. s0000001(User, username:"S0000001", lastName:"Talbert", firstName:"Don", type:"STUDENT", phone:"0749282346")
  13. s0000002(User, username:"S0000002", lastName:"Spears", firstName:"Brittany", type:"STUDENT", phone:"0749282347")
  14. s0000003(User, username:"S0000003", lastName:"Paul", firstName:"McArtney", type:"STUDENT", phone:"0749282348")
  15. s0000004(User, username:"S0000004", lastName:"Young", firstName:"Angus", type:"STUDENT", phone:"0749282349")
  16.  
  17.  
  18. //offering information
  19. coit13132(Availability, type:"COURSE", value:"COIT13132")
  20. cois12132(Availability, type:"COURSE", value:"COIS12132")
  21. hmsc20012(Availability, type:"COURSE", value:"HMSC20012")
  22. bit(Availability, type:"PROGRAM", value:"BIT")
  23.  
  24.  
  25. policeCheck(Prerequisite, name:"Police Check", desc:"This is the police check desc", required:yes)
  26. blueCard(Prerequisite, name:"Police Check", desc:"This is the police check desc", required:no)
  27. onlineForm(Prerequisite, name:"Online Form", desc:"This is a possible online form that need to be filled out", required:yes)
  28.  
  29.  
  30. wedThurs(Offering, desc:"Placement for wed-thurs", strm:"2092", availabilities: [bit, hmsc20012])
  31. monTues(Offering, desc:"Placement for wed-thurs", strm:"2092", availabilities: [coit13132, cois12132])
  32. prac(Offering, desc:"Placement for wed-thurs", strm:"2092", availabilities: [bit])
  33.  
  34. firsYear(Placement, name:"First Year Placement", category:"NURSING", desc:"The first year students",
  35. offerings: [monTues, wedThurs],
  36. prerequisites: [policeCheck, blueCard, onlineForm]
  37. )
  38. secondYear(Placement, name:"Second Year Placement", category:"NURSING", desc:"The first year students",
  39. offerings: [monTues, wedThurs],
  40. prerequisites: [policeCheck]
  41. )
  42. thirdYear(Placement, name:"Third Year Placement", category:"MIDWIFERY", desc:"The first year students",
  43. offerings: [prac],
  44. prerequisites: [policeCheck]
  45. )
  46.  
  47. firstYearOffering(AreaOffering, availableSpots:12, desc:"area offering desc", enddate:enddate, startdate:begindate, offering: prac)
  48.  
  49. //org information
  50. emergency(Area, name:"Emergency", desc:"The emergency ward", city:"Rockhampton", address:"123 hilly road", areaOfferings:[firstYearOffering])
  51. surgical(Area, name:"Surgical", desc:"The Surgical ward", city:"Rockhampton", address:"123 hilly road")
  52. ward(Area, name:"Ward", desc:"The ward", city:"Rockhampton", address:"123 nobby road")
  53. security(Area, name:"Security", desc:"Security", city:"Rockhampton", address:"123 nobby road")
  54.  
  55. base(Organisation, name:"Base Hospital", desc:"The base hospital", areas:[emergency, surgical])
  56. marter(Organisation, name:"Marter Hospital", desc:"The Marter hospital", areas: [ward, security])
  57.  
  58. /*
  59.  
  60. */
  61.  
  62.  
  63.  
  64.  
  65. }
Add Comment
Please, Sign In to add comment