#{fixture delete:'all' /} #{selenium 'Test continuations'} openAndWait('@{WithContinuations.loopWithWait()}') assertTextPresent('0;1;2;3;4') openAndWait('@{WithContinuations.waitAndThenRedirect()}') assertTextPresent('Hello -> DONE') openAndWait('@{WithContinuations.waitFuture()}') assertTextPresent('0:[DONE];1:[DONE];2:[DONE];3:[DONE];4:[DONE]') openAndWait('@{WithContinuations.waitAll()}') assertTextPresent('0:[[DONE, DONE]];1:[[DONE, DONE]]') openAndWait('@{WithContinuations.waitAny()}') assertTextPresent('0:[DONE];1:[DONE]') 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') openAndWait('@{WithContinuations.callbackWithResults()}') assertTextPresent('yep -> [DONE, DONE]') openAndWait('@{WithContinuations.waitWithTimeout()}') assertTextPresent('Timeout! Partial result is + Task1 -> DONE') 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}