@Test public void test() { Set<Class> checks = CheckList.getAllChecks(); for (Class<?> cls : checks) { if (cls != ParsingErrorCheck.class) { String testName = '/' + cls.getName().replace('.', '/') + "Test.class"; assertThat(getClass().getResource(testName)) .overridingErrorMessage("No test for " + cls.getSimpleName()) .isNotNull(); } } }
public static Set<Class> getAllChecks() { return ImmutableSet.<Class>builder() .addAll(CheckList.getChecks()) .addAll(CheckList.getPhpIniChecks()) .build(); }
CheckList { public static Set<Class> getAllChecks() { return ImmutableSet.<Class>builder() .addAll(CheckList.getChecks()) .addAll(CheckList.getPhpIniChecks()) .build(); } }
CheckList { public static Set<Class> getAllChecks() { return ImmutableSet.<Class>builder() .addAll(CheckList.getChecks()) .addAll(CheckList.getPhpIniChecks()) .build(); } private  CheckList(); }
CheckList { public static Set<Class> getAllChecks() { return ImmutableSet.<Class>builder() .addAll(CheckList.getChecks()) .addAll(CheckList.getPhpIniChecks()) .build(); } private  CheckList(); static List<Class> getChecks(); static Iterable<Class> getPhpIniChecks(); static Set<Class> getAllChecks(); }
CheckList { public static Set<Class> getAllChecks() { return ImmutableSet.<Class>builder() .addAll(CheckList.getChecks()) .addAll(CheckList.getPhpIniChecks()) .build(); } private  CheckList(); static List<Class> getChecks(); static Iterable<Class> getPhpIniChecks(); static Set<Class> getAllChecks(); static final String REPOSITORY_KEY; }