@Test public void test() { for (Class cls : CheckClasses.getCheckClasses()) { String testName = '/' + cls.getName().replace('.', '/') + "Test.class"; assertThat(getClass().getResource(testName)) .overridingErrorMessage("No test for " + cls.getSimpleName()) .isNotNull(); } HtmlRulesDefinition rulesDefinition = new HtmlRulesDefinition(); RulesDefinition.Context context = new RulesDefinition.Context(); rulesDefinition.define(context); RulesDefinition.Repository repository = context.repository("Web"); for (RulesDefinition.Rule rule : repository.rules()) { assertThat(rule.htmlDescription()) .overridingErrorMessage("Description of " + rule.key() + " should be in separate HTML file") .isNotNull(); } }
@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();  }