langtools/test/jdk/jshell/FailOverExecutionControlTest.java
changeset 41941 a935ac3f5274
parent 39807 ba0ff343d241
child 42969 a48d4f74d322
equal deleted inserted replaced
41940:048d559e9da7 41941:a935ac3f5274
    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