171 PrintWriter pw = new PrintWriter(sw); |
171 PrintWriter pw = new PrintWriter(sw); |
172 dl.run(pw, "-Xmsgs"); |
172 dl.run(pw, "-Xmsgs"); |
173 pw.close(); |
173 pw.close(); |
174 String out = sw.toString(); |
174 String out = sw.toString(); |
175 |
175 |
176 String expect = "no files given"; |
176 String expect = "No files given"; |
177 if (!Objects.equals(out.trim(), expect)) { |
177 if (!Objects.equals(out.trim(), expect)) { |
178 error("unexpected output"); |
178 error("unexpected output"); |
179 System.err.println("EXPECT>>" + expect + "<<"); |
179 System.err.println("EXPECT>>" + expect + "<<"); |
180 System.err.println("FOUND>>" + out + "<<"); |
180 System.err.println("FOUND>>" + out + "<<"); |
181 } |
181 } |