X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbe%2Fnikiroo%2Futils%2Ftest%2FTestCase.java;h=490edbb4ec9d47db7f2c24cf21630ac303dc7044;hb=cd0c27d2e457ea19fcd9def879e1534a528292c2;hp=429200b4ceb3d800cb4ace07215ee82cc700fc69;hpb=c37cc6902542f0b790d7b9c999447bf81a9e9837;p=fanfix.git diff --git a/src/be/nikiroo/utils/test/TestCase.java b/src/be/nikiroo/utils/test/TestCase.java index 429200b..490edbb 100644 --- a/src/be/nikiroo/utils/test/TestCase.java +++ b/src/be/nikiroo/utils/test/TestCase.java @@ -113,8 +113,8 @@ abstract public class TestCase { /** * 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 @@ -130,10 +130,10 @@ abstract public class TestCase { 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))); } } @@ -155,8 +155,8 @@ abstract public class TestCase { /** * 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 @@ -189,8 +189,8 @@ abstract public class TestCase { /** * 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 @@ -223,8 +223,8 @@ abstract public class TestCase { /** * 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 @@ -241,8 +241,8 @@ abstract public class TestCase { /** * 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 * @@ -258,10 +258,10 @@ abstract public class TestCase { if (errorMessage == null) { throw new AssertException(defaultReason); - } else { - throw new AssertException(errorMessage, new AssertException( - defaultReason)); } + + throw new AssertException(errorMessage, new AssertException( + defaultReason)); } }