1718192021222324
return new Assertion(name); } public <T> void mustNotBeNull(T arg) { if (arg == null) { throw new JUnitHelperCoreException(name + " must not be null."); } }
2324252627282930
} } public void mustNotBeEmpty(String arg) { if (arg == null || arg.length() == 0) { throw new JUnitHelperCoreException(name + " must not be empty."); } }
2930313233343536
} } public void mustBeGreaterThan(int arg, int lowerLimit) { if (arg <= lowerLimit) { throw new JUnitHelperCoreException(name + " must not be greater than " + lowerLimit + "."); } }
3536373839404142
} } public void mustBeGreaterThanOrEqual(int arg, int lowerLimit) { if (arg < lowerLimit) { throw new JUnitHelperCoreException(name + " must not be greater than or equal " + lowerLimit + "."); } }
4142434445464748
} } public void mustBeLessThan(int arg, int upperLimit) { if (arg >= upperLimit) { throw new JUnitHelperCoreException(name + " must not be less than " + upperLimit + "."); } }
4748495051525354
} } public void mustBeLessThanOrEqual(int arg, int upperLimit) { if (arg > upperLimit) { throw new JUnitHelperCoreException(name + " must not be less than or equal " + upperLimit + "."); } }
5354555657585960
} } public void mustBeGreaterThan(long arg, long lowerLimit) { if (arg <= lowerLimit) { throw new JUnitHelperCoreException(name + " must not be greater than " + lowerLimit + "."); } }
5960616263646566
} } public void mustBeGreaterThanOrEqual(long arg, long lowerLimit) { if (arg < lowerLimit) { throw new JUnitHelperCoreException(name + " must not be greater than or equal " + lowerLimit + "."); } }
6566676869707172
} } public void mustBeLessThan(long arg, long upperLimit) { if (arg >= upperLimit) { throw new JUnitHelperCoreException(name + " must not be less than " + upperLimit + "."); } }
7172737475767778
} } public void mustBeLessThanOrEqual(long arg, long upperLimit) { if (arg > upperLimit) { throw new JUnitHelperCoreException(name + " must not be less than or equal " + upperLimit + "."); } }