/** * Failure test case for checkPositive. The argument is 0 so <code>IllegalArgumentException</code> * should be thrown. */ @Test(expected = IllegalArgumentException.class) public void testCheckPositiveFailure() { Helper.checkPositive(0, "obj", "method", LogManager.getLog()); }
/** * Accuracy test case for checkPositive. The argument is 1 so <code>IllegalArgumentException * </code> should not be thrown. */ @Test public void testCheckPositive() { Helper.checkPositive(1, "obj", "method", LogManager.getLog()); }