Example #1
0
 /**
  * Accuracy test case for method 'checkNull()'.<br>
  * The method should work properly according to the use case, all the fields should be set as
  * expected.
  */
 public void testCheckNull_Accuracy1() {
   try {
     ExceptionUtils.checkNull(null, bundle, "null", "default message");
     fail("Test accuracy for method 'checkNull()' failed.");
   } catch (IllegalArgumentException iae) {
     assertEquals(
         "Test accuracy for method checkNull() failed.",
         "The argument should not be null",
         iae.getMessage());
   }
 }
Example #2
0
 /**
  * Accuracy test case for method 'checkNull()'.<br>
  * The method should work properly according to the use case, all the fields should be set as
  * expected.
  */
 public void testCheckNull_Accuracy2() {
   ExceptionUtils.checkNull(new Object(), bundle, "key1", "default message");
 }