equal
deleted
inserted
replaced
31 * @run testng FailOverExecutionControlTest |
31 * @run testng FailOverExecutionControlTest |
32 */ |
32 */ |
33 |
33 |
34 import org.testng.annotations.Test; |
34 import org.testng.annotations.Test; |
35 import org.testng.annotations.BeforeMethod; |
35 import org.testng.annotations.BeforeMethod; |
36 import jdk.jshell.execution.JDIDefaultExecutionControl; |
36 import jdk.jshell.execution.JdiDefaultExecutionControl; |
37 import jdk.jshell.spi.ExecutionControl; |
37 import jdk.jshell.spi.ExecutionControl; |
38 import jdk.jshell.spi.ExecutionEnv; |
38 import jdk.jshell.spi.ExecutionEnv; |
39 import static jdk.jshell.execution.Util.failOverExecutionControlGenerator; |
39 import static jdk.jshell.execution.Util.failOverExecutionControlGenerator; |
40 |
40 |
41 @Test |
41 @Test |
45 @Override |
45 @Override |
46 public void setUp() { |
46 public void setUp() { |
47 setUp(builder -> builder.executionEngine(failOverExecutionControlGenerator( |
47 setUp(builder -> builder.executionEngine(failOverExecutionControlGenerator( |
48 new AlwaysFailingGenerator(), |
48 new AlwaysFailingGenerator(), |
49 new AlwaysFailingGenerator(), |
49 new AlwaysFailingGenerator(), |
50 JDIDefaultExecutionControl.launch()))); |
50 JdiDefaultExecutionControl.launch()))); |
51 } |
51 } |
52 |
52 |
53 class AlwaysFailingGenerator implements ExecutionControl.Generator { |
53 class AlwaysFailingGenerator implements ExecutionControl.Generator { |
54 |
54 |
55 @Override |
55 @Override |