@Test public void order_compare_value_with_different_type() { ExprValueOrdering ordering = ExprValueOrdering.natural(); ExpressionEvaluationException exception = assertThrows( ExpressionEvaluationException.class, () -> ordering.compare(integerValue(1), stringValue("2"))); assertEquals( "compare expected value have same type, but with [INTEGER, STRING]", exception.getMessage()); }
public static ExprValueOrdering natural() { return NaturalExprValueOrdering.INSTANCE; }
ExprValueOrdering implements Comparator<ExprValue> { public static ExprValueOrdering natural() { return NaturalExprValueOrdering.INSTANCE; } }
ExprValueOrdering implements Comparator<ExprValue> { public static ExprValueOrdering natural() { return NaturalExprValueOrdering.INSTANCE; }  }
ExprValueOrdering implements Comparator<ExprValue> { public static ExprValueOrdering natural() { return NaturalExprValueOrdering.INSTANCE; }  static ExprValueOrdering natural(); ExprValueOrdering reverse(); ExprValueOrdering nullsFirst(); ExprValueOrdering nullsLast(); }
ExprValueOrdering implements Comparator<ExprValue> { public static ExprValueOrdering natural() { return NaturalExprValueOrdering.INSTANCE; }  static ExprValueOrdering natural(); ExprValueOrdering reverse(); ExprValueOrdering nullsFirst(); ExprValueOrdering nullsLast();  }