Skip to content

Instantly share code, notes, and snippets.

@aslakknutsen
Created September 4, 2012 13:36
Show Gist options
  • Save aslakknutsen/3621221 to your computer and use it in GitHub Desktop.
Save aslakknutsen/3621221 to your computer and use it in GitHub Desktop.
Warp rewrite Anonymous ServerAssertions to 'real' classes and transfer to Container. Rewrite 'external' references to client callback
@Test
public void should() {
final SomeObject obj;
Warp.execute(new ClientAction() {
public void action() {
page.doAction();
}
}).verify(new ServerAssertion() {
public void do() {
obj.get(); // detect outside of anonymous class call, replace with callback to client for the value ?
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment