108 a -> assertCommandCheckOutput(a, "/classes", assertClasses()), |
108 a -> assertCommandCheckOutput(a, "/classes", assertClasses()), |
109 a -> assertCommandCheckOutput(a, "/imports", assertImports()) |
109 a -> assertCommandCheckOutput(a, "/imports", assertImports()) |
110 ); |
110 ); |
111 } |
111 } |
112 |
112 |
|
113 public void testReloadQuiet() { |
|
114 test(false, new String[]{"-nostartup"}, |
|
115 a -> assertVariable(a, "int", "a"), |
|
116 a -> dropVariable(a, "/dr 1", "int a = 0"), |
|
117 a -> assertMethod(a, "int b() { return 0; }", "()I", "b"), |
|
118 a -> dropMethod(a, "/drop b", "b ()I"), |
|
119 a -> assertClass(a, "class A {}", "class", "A"), |
|
120 a -> dropClass(a, "/dr A", "class A"), |
|
121 a -> assertCommand(a, "/reload quiet", |
|
122 "| Restarting and restoring state.\n"), |
|
123 a -> assertCommandCheckOutput(a, "/vars", assertVariables()), |
|
124 a -> assertCommandCheckOutput(a, "/methods", assertMethods()), |
|
125 a -> assertCommandCheckOutput(a, "/classes", assertClasses()), |
|
126 a -> assertCommandCheckOutput(a, "/imports", assertImports()) |
|
127 ); |
|
128 } |
|
129 |
113 public void testReloadRepeat() { |
130 public void testReloadRepeat() { |
114 test(false, new String[]{"-nostartup"}, |
131 test(false, new String[]{"-nostartup"}, |
115 (a) -> assertVariable(a, "int", "c", "7", "7"), |
132 (a) -> assertVariable(a, "int", "c", "7", "7"), |
116 (a) -> assertCommand(a, "++c", null), |
133 (a) -> assertCommand(a, "++c", null), |
117 (a) -> assertCommand(a, "/!", null), |
134 (a) -> assertCommand(a, "/!", null), |