7891011121314
private Assertion() { } public static <T> void mustNotBeNull(T arg, String name) { if (arg == null) { throw new JUnitHelperCoreException(name + " must not be null."); } }
1314151617181920
} } public static void mustNotBeEmpty(String arg, String name) { if (arg == null || arg.length() == 0) { throw new JUnitHelperCoreException(name + " must not be empty."); } }
1920212223242526
} } public static void mustBeGreaterThan(int arg, int lowerLimit, String name) { if (arg <= lowerLimit) { throw new JUnitHelperCoreException(name + " must not be greater than " + lowerLimit + "."); } }
2526272829303132
} } public static void mustBeGreaterThanOrEqual(int arg, int lowerLimit, String name) { if (arg < lowerLimit) { throw new JUnitHelperCoreException(name + " must not be greater than or equal " + lowerLimit + "."); } }
3132333435363738
} } public static void mustBeLessThan(int arg, int upperLimit, String name) { if (arg >= upperLimit) { throw new JUnitHelperCoreException(name + " must not be less than " + upperLimit + "."); } }
3738394041424344
} } public static void mustBeLessThanOrEqual(int arg, int upperLimit, String name) { if (arg > upperLimit) { throw new JUnitHelperCoreException(name + " must not be less than or equal " + upperLimit + "."); } }
4344454647484950
} } public static void mustBeGreaterThan(long arg, long lowerLimit, String name) { if (arg <= lowerLimit) { throw new JUnitHelperCoreException(name + " must not be greater than " + lowerLimit + "."); } }
4950515253545556
} } public static void mustBeGreaterThanOrEqual(long arg, long lowerLimit, String name) { if (arg < lowerLimit) { throw new JUnitHelperCoreException(name + " must not be greater than or equal " + lowerLimit + "."); } }
5556575859606162
} } public static void mustBeLessThan(long arg, long upperLimit, String name) { if (arg >= upperLimit) { throw new JUnitHelperCoreException(name + " must not be less than " + upperLimit + "."); } }
6162636465666768
} } public static void mustBeLessThanOrEqual(long arg, long upperLimit, String name) { if (arg > upperLimit) { throw new JUnitHelperCoreException(name + " must not be less than or equal " + upperLimit + "."); } }