langtools/test/jdk/jshell/JdiBadOptionLaunchExecutionControlTest.java
changeset 42969 a48d4f74d322
parent 42272 82e273c4f2b3
child 44683 610dc2b48954
--- a/langtools/test/jdk/jshell/JdiBadOptionLaunchExecutionControlTest.java	Wed Dec 14 16:32:07 2016 +0100
+++ b/langtools/test/jdk/jshell/JdiBadOptionLaunchExecutionControlTest.java	Wed Dec 21 20:14:39 2016 -0800
@@ -31,7 +31,6 @@
 
 import org.testng.annotations.Test;
 import jdk.jshell.JShell;
-import jdk.jshell.execution.JdiDefaultExecutionControl;
 import static org.testng.Assert.assertTrue;
 import static org.testng.Assert.fail;
 
@@ -44,7 +43,7 @@
     public void badOptionLaunchTest() {
         try {
             JShell.builder()
-                    .executionEngine(JdiDefaultExecutionControl.launch())
+                    .executionEngine("jdi:launch(true)")
                     .remoteVMOptions("-BadBadOption")
                     .build();
         } catch (IllegalStateException ex) {