@Test public void shouldBuildExpectedMessageForNonBooleanOutcome() { String msg = AnnotationELPProcessor.buildNonBooleanOutcomeMessage(1, "ijk"); assertEquals("Expression ijk should evaluate to boolean but evaluated to class java.lang.Integer 1", msg); }
static String buildNonBooleanOutcomeMessage(Object outcome, String expression) { return "Expression " + expression + " should evaluate to boolean but evaluated to " + (outcome == null? " null" : (outcome.getClass() + " " + outcome)); }
AnnotationELPProcessor { static String buildNonBooleanOutcomeMessage(Object outcome, String expression) { return "Expression " + expression + " should evaluate to boolean but evaluated to " + (outcome == null? " null" : (outcome.getClass() + " " + outcome)); } }
AnnotationELPProcessor { static String buildNonBooleanOutcomeMessage(Object outcome, String expression) { return "Expression " + expression + " should evaluate to boolean but evaluated to " + (outcome == null? " null" : (outcome.getClass() + " " + outcome)); }  }
AnnotationELPProcessor { static String buildNonBooleanOutcomeMessage(Object outcome, String expression) { return "Expression " + expression + " should evaluate to boolean but evaluated to " + (outcome == null? " null" : (outcome.getClass() + " " + outcome)); }  static String evalImmediate(String expression); static String evalImmediate(ELProcessor getELProcessor, String expression); static boolean evalImmediate(String expression, boolean defaultValue); static boolean evalImmediate(ELProcessor getELProcessor, String expression, boolean defaultValue); static int evalImmediate(String expression, int defaultValue); static int evalImmediate(ELProcessor getELProcessor, String expression, int defaultValue); @SuppressWarnings("unchecked") static T evalImmediate(String expression, T defaultValue); static String emptyIfImmediate(String expression); static String evalELExpression(String expression); static String evalELExpression(ELProcessor getELProcessor, String expression); static boolean evalELExpression(String expression, boolean defaultValue); static boolean evalELExpression(ELProcessor getELProcessor, String expression, boolean defaultValue); static T evalELExpression(String expression, T defaultValue); @SuppressWarnings("unchecked") static T evalELExpression(ELProcessor getELProcessor, String expression, T defaultValue); static int evalELExpression(String expression, int defaultValue); static int evalELExpression(ELProcessor getELProcessor, String expression, int defaultValue); @SafeVarargs static boolean hasAnyELExpression(String... expressions); }
AnnotationELPProcessor { static String buildNonBooleanOutcomeMessage(Object outcome, String expression) { return "Expression " + expression + " should evaluate to boolean but evaluated to " + (outcome == null? " null" : (outcome.getClass() + " " + outcome)); }  static String evalImmediate(String expression); static String evalImmediate(ELProcessor getELProcessor, String expression); static boolean evalImmediate(String expression, boolean defaultValue); static boolean evalImmediate(ELProcessor getELProcessor, String expression, boolean defaultValue); static int evalImmediate(String expression, int defaultValue); static int evalImmediate(ELProcessor getELProcessor, String expression, int defaultValue); @SuppressWarnings("unchecked") static T evalImmediate(String expression, T defaultValue); static String emptyIfImmediate(String expression); static String evalELExpression(String expression); static String evalELExpression(ELProcessor getELProcessor, String expression); static boolean evalELExpression(String expression, boolean defaultValue); static boolean evalELExpression(ELProcessor getELProcessor, String expression, boolean defaultValue); static T evalELExpression(String expression, T defaultValue); @SuppressWarnings("unchecked") static T evalELExpression(ELProcessor getELProcessor, String expression, T defaultValue); static int evalELExpression(String expression, int defaultValue); static int evalELExpression(ELProcessor getELProcessor, String expression, int defaultValue); @SafeVarargs static boolean hasAnyELExpression(String... expressions);  }