vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java
branchemul
changeset 622 a07253cf2ca4
parent 595 784aaf9ee179
child 623 4af0d3dedb9d
     1.1 --- a/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java	Mon Jan 28 12:18:24 2013 +0100
     1.2 +++ b/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/impl/Bck2BrwsrCase.java	Thu Jan 31 16:58:27 2013 +0100
     1.3 @@ -24,7 +24,7 @@
     1.4  import java.lang.reflect.InvocationTargetException;
     1.5  import java.lang.reflect.Method;
     1.6  import org.apidesign.bck2brwsr.launcher.Launcher;
     1.7 -import org.apidesign.bck2brwsr.launcher.MethodInvocation;
     1.8 +import org.apidesign.bck2brwsr.launcher.InvocationContext;
     1.9  import org.testng.ITest;
    1.10  import org.testng.annotations.Test;
    1.11  
    1.12 @@ -51,8 +51,11 @@
    1.13      @Test(groups = "run")
    1.14      public void executeCode() throws Throwable {
    1.15          if (l != null) {
    1.16 -            MethodInvocation c = l.invokeMethod(m.getDeclaringClass(), m.getName(), html);
    1.17 -            String res = c.toString();
    1.18 +            InvocationContext c = l.createInvocation(m.getDeclaringClass(), m.getName());
    1.19 +            if (html != null) {
    1.20 +                c.setHtmlFragment(html);
    1.21 +            }
    1.22 +            String res = c.invoke();
    1.23              value = res;
    1.24              if (fail) {
    1.25                  int idx = res.indexOf(':');