71 @Test |
71 @Test |
72 public void testEditNegative() { |
72 public void testEditNegative() { |
73 for (String edit : new String[] {"/e", "/edit"}) { |
73 for (String edit : new String[] {"/e", "/edit"}) { |
74 test(new String[]{"-nostartup"}, |
74 test(new String[]{"-nostartup"}, |
75 a -> assertCommand(a, edit + " 1", |
75 a -> assertCommand(a, edit + " 1", |
76 "| No definition or id named 1 found. See /classes /methods /vars or /list\n"), |
76 "| No definition or id named 1 found. See /classes, /methods, /vars, or /list\n"), |
77 a -> assertCommand(a, edit + " -1", |
77 a -> assertCommand(a, edit + " -1", |
78 "| No definition or id named -1 found. See /classes /methods /vars or /list\n"), |
78 "| No definition or id named -1 found. See /classes, /methods, /vars, or /list\n"), |
79 a -> assertCommand(a, edit + " unknown", |
79 a -> assertCommand(a, edit + " unknown", |
80 "| No definition or id named unknown found. See /classes /methods /vars or /list\n") |
80 "| No definition or id named unknown found. See /classes, /methods, /vars, or /list\n") |
81 ); |
81 ); |
82 } |
82 } |
83 } |
83 } |
84 |
84 |
85 @Test |
85 @Test |