@Test void failValidate() { List<Field> inputs = Collections.singletonList( new Field("testinput", DataType.STRING) ); EvaluatorTest evaluatorTest = new EvaluatorTest(inputs); Assertions.assertThrows(EvaluatorException.class, () -> Validator.validate(evaluatorTest) ); }
public static void validate(Evaluator<?> evaluator) throws EvaluatorException { if (evaluator.getClass().isAnnotationPresent(NumberOnly.class)) { checkNumbers(evaluator); } }
Validator { public static void validate(Evaluator<?> evaluator) throws EvaluatorException { if (evaluator.getClass().isAnnotationPresent(NumberOnly.class)) { checkNumbers(evaluator); } } }
Validator { public static void validate(Evaluator<?> evaluator) throws EvaluatorException { if (evaluator.getClass().isAnnotationPresent(NumberOnly.class)) { checkNumbers(evaluator); } }  }
Validator { public static void validate(Evaluator<?> evaluator) throws EvaluatorException { if (evaluator.getClass().isAnnotationPresent(NumberOnly.class)) { checkNumbers(evaluator); } }  static void validate(Evaluator<?> evaluator); }
Validator { public static void validate(Evaluator<?> evaluator) throws EvaluatorException { if (evaluator.getClass().isAnnotationPresent(NumberOnly.class)) { checkNumbers(evaluator); } }  static void validate(Evaluator<?> evaluator);  }