Guest User

Untitled

a guest
Dec 24th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.51 KB | None | 0 0
  1.     void testListAllMUSTReturnValidOpenclinicaStudies() {
  2.         def factory = setUpMocks(listAllReturnXML)
  3.  
  4.         play {
  5.            
  6.             def soapClient = new OpenClinicaSoapClientImpl(factory, username, password)
  7.             def actual = soapClient.listAll()
  8.  
  9.             def study1 = new OpenclinicaStudy(identifier: "default-study", OID: "S_DEFAULTS1", name:"Default Study")
  10.             def study2 = new OpenclinicaStudy(identifier: "001", OID: "S_001", name: "Test Study")
  11.            
  12.             assertEquals actual[0], study1
  13.             assertEquals actual[1], study2
  14.         }
  15.     }
Add Comment
Please, Sign In to add comment