Created
March 26, 2013 14:25
-
-
Save lfryc/5245743 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 | |
- SearchContext - o1 - S.......................................R | |
- ..... -- no context | |
- SearchContext - o2 - | |
- SearchContext - o1 | |
page1.setJSE(exec); | |
page.doSomething(); --> S..JSE..R | |
| | |
| | |
V | |
/ \ | |
/ \ | |
/ \ | |
/ \ | |
/ \ | |
/ \ | |
/ \ | |
/ \ | |
/ \ | |
@Test void test() { | |
Result result = page1.doSomething(); --> page1 is proxy, proxy invocation changes context | |
// context can't be resolved | |
assertThat(result is ...); --> result is proxy, proxy ... | |
page2.doSomething(); --> page2 is proxy, proxy ... | |
} | |
Warp.initiate(...).inspect(...); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment