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