Created
October 25, 2012 07:46
-
-
Save lfryc/3951243 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Test | |
| @RunWith(Arquillian.class) | |
| public void TestSequenceOfCalls() { | |
| @WarpTest | |
| class Test { | |
| @FindBy("xyz") Calendar calendar; | |
| @Transfer String foo; | |
| @Client(filter=JSFRequest.class) | |
| void openPage() { | |
| driver.open(xyz); | |
| } | |
| @Server @BeforePhase(PROCESS_DECODES) | |
| void test() { foo = "bar"; } | |
| @Client(filter=JSFRequest.class) | |
| void selectDate() { | |
| assertEquals("bar", foo); | |
| calendar.setDate(new Date()); | |
| } | |
| @Server @BeforePhase(PROCESS_DECODES) | |
| void test() {} | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Test | |
| @RunWith(Arquillian.class) | |
| public void TestSequenceOfCalls() { | |
| @WarpTest | |
| class Test { | |
| @FindBy("xyz") Calendar calendar; | |
| @Client | |
| void openPage() { | |
| driver.open(xyz); | |
| } | |
| @Server(filter=JSFRequest.class) | |
| class VerifyInitialRequest() { | |
| @BeforePhase(PROCESS_DECODES) | |
| void test() {} | |
| String getFoo(); | |
| } | |
| @Client | |
| void selectDate(VerifyInitialRequest request) { | |
| String foo = request.getFoo(); | |
| calendar.setDate(new Date()); | |
| } | |
| @Server(filter=JSFRequest.class) | |
| class VerifyAjaxRequest() { | |
| @BeforePhase(PROCESS_DECODES) | |
| void test() {} | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment