private String getAssertDescription( NumericIntegerConditionInspector a, NumericIntegerConditionInspector b, boolean conflictExpected) { return format( "Expected conditions '%s' and '%s' %sto be redundant:", a.toHumanReadableString(), b.toHumanReadableString(), conflictExpected ? "" : "not "); }
@Test public void parametrizedTest() { NumericIntegerConditionInspector a = getCondition(value1, operator1); NumericIntegerConditionInspector b = getCondition(value2, operator2); assertEquals( getAssertDescription(a, b, redundancyExpected), redundancyExpected, a.isRedundant(b)); assertEquals( getAssertDescription(b, a, redundancyExpected), redundancyExpected, b.isRedundant(a)); }