1.1 --- a/rt/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java Mon Apr 08 16:51:30 2013 +0200
1.2 +++ b/rt/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java Mon May 05 10:16:30 2014 +0200
1.3 @@ -43,6 +43,7 @@
1.4 private final boolean fail;
1.5 private final HtmlFragment html;
1.6 private final Http.Resource[] http;
1.7 + private final InvocationContext c;
1.8 Object value;
1.9
1.10 Bck2BrwsrCase(Method m, String type, Launcher l, boolean fail, HtmlFragment html, Http.Resource[] http) {
1.11 @@ -52,12 +53,12 @@
1.12 this.fail = fail;
1.13 this.html = html;
1.14 this.http = http;
1.15 + this.c = l != null ? l.createInvocation(m.getDeclaringClass(), m.getName()) : null;
1.16 }
1.17
1.18 @Test(groups = "run")
1.19 public void executeCode() throws Throwable {
1.20 if (l != null) {
1.21 - InvocationContext c = l.createInvocation(m.getDeclaringClass(), m.getName());
1.22 if (html != null) {
1.23 c.setHtmlFragment(html.value());
1.24 }