diff -r 6448c284fe21 -r 777bd3ed81ba rt/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java --- a/rt/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java Mon Apr 08 16:51:30 2013 +0200 +++ b/rt/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java Mon May 05 10:16:30 2014 +0200 @@ -43,6 +43,7 @@ private final boolean fail; private final HtmlFragment html; private final Http.Resource[] http; + private final InvocationContext c; Object value; Bck2BrwsrCase(Method m, String type, Launcher l, boolean fail, HtmlFragment html, Http.Resource[] http) { @@ -52,12 +53,12 @@ this.fail = fail; this.html = html; this.http = http; + this.c = l != null ? l.createInvocation(m.getDeclaringClass(), m.getName()) : null; } @Test(groups = "run") public void executeCode() throws Throwable { if (l != null) { - InvocationContext c = l.createInvocation(m.getDeclaringClass(), m.getName()); if (html != null) { c.setHtmlFragment(html.value()); }