@Test public void count() { int count = 0; List<File> files = (List<File>) FileUtils.listFiles(new File("src/main/java/org/sonar/plugins/html/checks/"), new String[] {"java"}, true); for (File file : files) { if (file.getName().endsWith("Check.java") && (!file.getName().endsWith("AbstractPageCheck.java"))) { count++; } } assertThat(CheckClasses.getCheckClasses()).hasSize(count); }
@SuppressWarnings("rawtypes") public static List<Class> getCheckClasses() { return CLASSES; }
CheckClasses { @SuppressWarnings("rawtypes") public static List<Class> getCheckClasses() { return CLASSES; } }
CheckClasses { @SuppressWarnings("rawtypes") public static List<Class> getCheckClasses() { return CLASSES; } private  CheckClasses(); }
CheckClasses { @SuppressWarnings("rawtypes") public static List<Class> getCheckClasses() { return CLASSES; } private  CheckClasses(); @SuppressWarnings("rawtypes") static List<Class> getCheckClasses(); }
CheckClasses { @SuppressWarnings("rawtypes") public static List<Class> getCheckClasses() { return CLASSES; } private  CheckClasses(); @SuppressWarnings("rawtypes") static List<Class> getCheckClasses();  }