test/jdk/jshell/EditorTestBase.java
Print this page
*** 40,50 ****
public abstract void exit();
public abstract void cancel();
public abstract void shutdownEditor();
public void testEditor(ReplTest... tests) {
! testEditor(false, new String[]{"-nostartup"}, tests);
}
public void testEditor(boolean defaultStartup, String[] args, ReplTest... tests) {
test(defaultStartup, args, tests);
}
--- 40,50 ----
public abstract void exit();
public abstract void cancel();
public abstract void shutdownEditor();
public void testEditor(ReplTest... tests) {
! testEditor(false, new String[]{"--no-startup"}, tests);
}
public void testEditor(boolean defaultStartup, String[] args, ReplTest... tests) {
test(defaultStartup, args, tests);
}
*** 69,79 ****
}
@Test
public void testEditNegative() {
for (String edit : new String[] {"/ed", "/edit"}) {
! test(new String[]{"-nostartup"},
a -> assertCommandOutputStartsWith(a, edit + " 1",
"| No such snippet: 1"),
a -> assertCommandOutputStartsWith(a, edit + " unknown",
"| No such snippet: unknown")
);
--- 69,79 ----
}
@Test
public void testEditNegative() {
for (String edit : new String[] {"/ed", "/edit"}) {
! test(new String[]{"--no-startup"},
a -> assertCommandOutputStartsWith(a, edit + " 1",
"| No such snippet: 1"),
a -> assertCommandOutputStartsWith(a, edit + " unknown",
"| No such snippet: unknown")
);