public static <T extends Comparable<T>> void assertBetweenExclusive(T actual, T lowerBound, T upperBound) { assertBetweenExclusive(actual, lowerBound, upperBound, null); }
public static <T extends Comparable<T>> void assertBetweenExclusive(T actual, T lowerBound, T upperBound) { assertBetweenExclusive(actual, lowerBound, upperBound, null); }
public static <T extends Comparable<T>> void assertBetweenExclusive(T actual, T lowerBound, T upperBound) { assertBetweenExclusive(actual, lowerBound, upperBound, null); }
@SuppressWarnings({"unchecked", "rawtypes"}) public void passBetweenExclusive(Comparable actual, Comparable lowerBound, Comparable upperBound) { assertBetweenExclusive(actual, lowerBound, upperBound); assertBetweenExclusive(actual, lowerBound, upperBound, MESSAGE); }
@SuppressWarnings({"unchecked", "rawtypes"}) public void passBetweenExclusive(Comparable actual, Comparable lowerBound, Comparable upperBound) { assertBetweenExclusive(actual, lowerBound, upperBound); assertBetweenExclusive(actual, lowerBound, upperBound, MESSAGE); }
@SuppressWarnings({"RawUseOfParameterizedType"}) public void passBetweenExclusive(Comparable actual, Comparable lowerBound, Comparable upperBound) { Assertions.assertBetweenExclusive(actual, lowerBound, upperBound); Assertions.assertBetweenExclusive(actual, lowerBound, upperBound, MESSAGE); }
@SuppressWarnings({"unchecked", "rawtypes"}) public void failBetweenExclusive(Comparable actual, Comparable lowerBound, Comparable upperBound) { try { assertBetweenExclusive(actual, lowerBound, upperBound); fail("Expected AssertionError"); } catch (AssertionError e) { verifyExceptionMessage(e, null, actual, lowerBound, upperBound); } try { assertBetweenExclusive(actual, lowerBound, upperBound, MESSAGE); fail("Expected AssertionError"); } catch (AssertionError e) { verifyExceptionMessage(e, MESSAGE, actual, lowerBound, upperBound); } }
@SuppressWarnings({"unchecked", "rawtypes"}) public void failBetweenExclusive(Comparable actual, Comparable lowerBound, Comparable upperBound) { try { assertBetweenExclusive(actual, lowerBound, upperBound); fail("Expected AssertionError"); } catch (AssertionError e) { verifyExceptionMessage(e, null, actual, lowerBound, upperBound); } try { assertBetweenExclusive(actual, lowerBound, upperBound, MESSAGE); fail("Expected AssertionError"); } catch (AssertionError e) { verifyExceptionMessage(e, MESSAGE, actual, lowerBound, upperBound); } }
@SuppressWarnings({"RawUseOfParameterizedType"}) public void failBetweenExclusive(Comparable actual, Comparable lowerBound, Comparable upperBound) { try { Assertions.assertBetweenExclusive(actual, lowerBound, upperBound); Assert.fail("Expected AssertionError"); } catch (AssertionError e) { verifyExceptionMessage(e, null, actual, lowerBound, upperBound); } try { Assertions.assertBetweenExclusive(actual, lowerBound, upperBound, MESSAGE); Assert.fail("Expected AssertionError"); } catch (AssertionError e) { verifyExceptionMessage(e, MESSAGE, actual, lowerBound, upperBound); } }