#{fixture delete:'all' /} #{selenium 'Test continuations'} openAndWait('@{WithContinuations.loopWithWait()}') assertTextPresent('0:true;1:true;2:true;3:true;4:true') openAndWait('@{WithContinuations.waitAndThenRedirect()}') assertTextPresent('Hello -> DONE:100') openAndWait('@{WithContinuations.waitFuture()}') assertTextPresent('0:[DONE:100];1:[DONE:100];2:[DONE:100];3:[DONE:100];4:[DONE:100]') openAndWait('@{WithContinuations.waitAll()}') assertTextPresent('0:[[DONE:100, DONE:200]];1:[[DONE:100, DONE:200]]') openAndWait('@{WithContinuations.waitAny()}') assertTextPresent('0:[DONE:100];1:[DONE:100]') openAndWait('@{WithContinuations.withNaiveJPA()}') assertTextPresent('org.hibernate.PersistentObjectException: detached entity passed to persist: models.User') openAndWait('@{WithContinuations.getUserByName('coco')}') assertTextPresent('Users:1 -> null') openAndWait('@{WithContinuations.getUserByName('bob')}') assertTextPresent('Users:1 -> bob') openAndWait('@{WithContinuations.withJPA()}') assertTextPresent('OK') openAndWait('@{WithContinuations.getUserByName('kiki')}') assertTextPresent('Users:2 -> null') openAndWait('@{WithContinuations.getUserByName('coco')}') assertTextPresent('Users:2 -> coco') openAndWait('@{WithContinuations.rollbackWithoutContinuations()}') assertTextPresent('OK') openAndWait('@{WithContinuations.getUserByName('user1')}') assertTextPresent('Users:2 -> null') openAndWait('@{WithContinuations.rollbackWithContinuations()}') assertTextPresent('OK') openAndWait('@{WithContinuations.getUserByName('user1')}') assertTextPresent('Users:12 -> user1') openAndWait('@{WithContinuations.getUserByName('user9')}') assertTextPresent('Users:12 -> user9') openAndWait('@{WithContinuations.rollbackWithContinuationsThatWorks()}') assertTextPresent('OK') openAndWait('@{WithContinuations.getUserByName('oops1')}') assertTextPresent('Users:12 -> null') openAndWait('@{WithContinuations.streamedResult()}') assertTextPresent('Hello 1') assertTextPresent('Hello 50') assertTextPresent('Hello 99') assertTextPresent('isOk->true') openAndWait('@{WithContinuations.loopWithCallback()}') assertTextPresent('1:true;2:true;3:true;4:true;5:true') openAndWait('@{WithContinuations.streamedCallback()}') assertTextPresent('Hello 1') assertTextPresent('Hello 50') assertTextPresent('Hello 99') assertTextPresent('isOk->true') openAndWait('@{WithContinuations.jpaAndCallback()}') assertTextPresent('org.hibernate.PersistentObjectException: detached entity passed to persist: models.User') openAndWait('@{WithContinuations.callbackWithResult()}') assertTextPresent('yep -> DONE:100') openAndWait('@{WithContinuations.callbackWithResults()}') assertTextPresent('yep -> [DONE:100, DONE:200]') openAndWait('@{WithContinuations.waitWithTimeout()}') assertTextPresent('Timeout! Partial result is + Task1 -> DONE:100') openAndWait('@{WithContinuations.renderTemplateWithVariablesAssignedBeforeAwait()}') assertBodyText('1-A-B-C-D-E') openAndWait('@{WithContinuations.usingRenderArgsAndAwait()}') assertBodyText('true') openAndWait('@{WithContinuations.usingRenderArgsAndAwaitWithCallBack("renderArg")}') assertBodyText('renderArg') openAndWait('@{WithContinuations.usingRenderArgsAndAwaitWithFutureAndCallback("renderArg")}') assertBodyText('result/renderArg') openAndWait('/useAwaitViaOtherClass') assertTextPresent('failCount: 2') openAndWait('@{WithContinuations.ControllerWhichUsesAwaitViaInheritance.useAwaitViaInheritance}') assertTextPresent('true') openAndWait('@{WithContinuations.useAwaitInWebSocketControllerWithContinuations()}') assertTextPresent('ok') openAndWait('@{WithContinuations.useAwaitInWebSocketControllerWithoutContinuations()}') assertTextPresent('failCount: 1') #{/selenium}