langtools/test/jdk/jshell/ExternalEditorTest.java
changeset 41635 cb3d04878117
parent 40588 b5c32bfa9710
child 42259 e4d04fcd0826
equal deleted inserted replaced
41634:3f9c491b05aa 41635:cb3d04878117
   191     }
   191     }
   192 
   192 
   193     @Test
   193     @Test
   194     public void setUnknownEditor() {
   194     public void setUnknownEditor() {
   195         test(
   195         test(
   196                 a -> assertCommand(a, "/set editor", "|  The '/set editor' command requires a path argument"),
       
   197                 a -> assertCommand(a, "/set editor UNKNOWN", "|  Editor set to: UNKNOWN"),
   196                 a -> assertCommand(a, "/set editor UNKNOWN", "|  Editor set to: UNKNOWN"),
   198                 a -> assertCommand(a, "int a;", null),
   197                 a -> assertCommand(a, "int a;", null),
   199                 a -> assertCommandOutputStartsWith(a, "/ed 1",
   198                 a -> assertCommandOutputStartsWith(a, "/ed 1",
   200                         "|  Edit Error:")
   199                         "|  Edit Error:")
   201         );
   200         );