Skip to content

Instantly share code, notes, and snippets.

@lfryc
Created March 26, 2013 14:25
Show Gist options
  • Save lfryc/5245743 to your computer and use it in GitHub Desktop.
Save lfryc/5245743 to your computer and use it in GitHub Desktop.
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