* @throws Exception
* in case of error
*/
+ @SuppressWarnings("unused")
public void setUp() throws Exception {
}
* @throws Exception
* in case of error
*/
+ @SuppressWarnings("unused")
public void tearDown() throws Exception {
}
/**
* Check that 2 {@link Object}s are equals.
*
- * @param the
- * error message to display if they differ
+ * @param errorMessage
+ * the error message to display if they differ
* @param expected
* the expected value
* @param actual
if (errorMessage == null) {
throw new AssertException(generateAssertMessage(expected,
actual));
- } else {
- throw new AssertException(errorMessage, new AssertException(
- generateAssertMessage(expected, actual)));
}
+
+ throw new AssertException(errorMessage, new AssertException(
+ generateAssertMessage(expected, actual)));
}
}
/**
* Check that 2 {@link Object}s are equals.
*
- * @param the
- * error message to display if they differ
+ * @param errorMessage
+ * the error message to display if they differ
* @param expected
* the expected value
* @param actual
/**
* Check that 2 {@link Object}s are equals.
*
- * @param the
- * error message to display if they differ
+ * @param errorMessage
+ * the error message to display if they differ
* @param expected
* the expected value
* @param actual
/**
* Check that 2 {@link Object}s are equals.
*
- * @param the
- * error message to display if they differ
+ * @param errorMessage
+ * the error message to display if they differ
* @param expected
* the expected value
* @param actual
/**
* Check that given {@link Object} is not NULL.
*
- * @param the
- * error message to display if it is NULL
+ * @param errorMessage
+ * the error message to display if it is NULL
* @param actual
* the actual value
*
if (errorMessage == null) {
throw new AssertException(defaultReason);
- } else {
- throw new AssertException(errorMessage, new AssertException(
- defaultReason));
}
+
+ throw new AssertException(errorMessage, new AssertException(
+ defaultReason));
}
}