test/jdk/jshell/KullaTesting.java

Print this page

        

*** 71,81 **** import jdk.jshell.Diag; import static jdk.jshell.Snippet.Status.*; import static org.testng.Assert.*; import static jdk.jshell.Snippet.SubKind.METHOD_SUBKIND; - import jdk.jshell.spi.ExecutionControl; public class KullaTesting { public static final String IGNORE_VALUE = "<ignore-value>"; public static final Class<? extends Throwable> IGNORE_EXCEPTION = (new Throwable() {}).getClass(); --- 71,80 ----
*** 156,169 **** @BeforeMethod public void setUp() { setUp(b -> {}); } - public void setUp(ExecutionControl ec) { - setUp(b -> b.executionEngine(ec)); - } - public void setUp(Consumer<JShell.Builder> bc) { inStream = new TestingInputStream(); outStream = new ByteArrayOutputStream(); errStream = new ByteArrayOutputStream(); JShell.Builder builder = JShell.builder() --- 155,164 ----