@Test(timeout = 5000) public void testClean1() throws IOException { InputStream in = MainTest.class.getResourceAsStream("rules/data/test1.tex"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream out = new PrintStream(baos); int ret_code = Main.mainLoop(new String[] {"--no-color", "--read-all", "--clean"}, in, out, new NullPrintStream()); String output = new String(baos.toByteArray()); assertNotNull(output); assertEquals(0, ret_code); assertFalse(output.trim().isEmpty()); }
public static int mainLoop(String[] args, InputStream in, PrintStream out, PrintStream err) throws IOException { return mainLoop(args, in, out, err, null); }
Main { public static int mainLoop(String[] args, InputStream in, PrintStream out, PrintStream err) throws IOException { return mainLoop(args, in, out, err, null); } }
Main { public static int mainLoop(String[] args, InputStream in, PrintStream out, PrintStream err) throws IOException { return mainLoop(args, in, out, err, null); }  }
Main { public static int mainLoop(String[] args, InputStream in, PrintStream out, PrintStream err) throws IOException { return mainLoop(args, in, out, err, null); }  @SuppressWarnings({"squid:S106"}) static void main(String[] args); static int mainLoop(String[] args, InputStream in, PrintStream out, PrintStream err); static int mainLoop(String[] args, InputStream in, PrintStream out, PrintStream err, Class<?> base_class); static Map<String,RegexRule> readRules(/*@ non_null @*/ String filename); }
Main { public static int mainLoop(String[] args, InputStream in, PrintStream out, PrintStream err) throws IOException { return mainLoop(args, in, out, err, null); }  @SuppressWarnings({"squid:S106"}) static void main(String[] args); static int mainLoop(String[] args, InputStream in, PrintStream out, PrintStream err); static int mainLoop(String[] args, InputStream in, PrintStream out, PrintStream err, Class<?> base_class); static Map<String,RegexRule> readRules(/*@ non_null @*/ String filename); static final String REGEX_FILENAME; static final String REGEX_FILENAME_DETEX; static final String VERSION_STRING; }