Skeleton { public static void makePrivate() { for (int i = 0; i < line.length; i++) { line[i] = replace(" public ", " private ", line[i]); } } Skeleton(PrintWriter out); void emitNext(); static void makePrivate(); static void readSkelFile(File skeletonFile); static void readSkel(BufferedReader reader); static String replace(String a, String b, String c); static void readDefault(); static String[] line; }
@Test public void testMakePrivate() { Skeleton.makePrivate(); for (int i = 0; i < Skeleton.line.length; i++) { assertThat(Skeleton.line[i]).doesNotContain("public"); } }