Example #1
0
 @Test(expected = IllegalArgumentException.class)
 public void shouldThrowExceptionWhenGettingNullArray() {
   checkNotEmpty("empty", (Object[]) null);
 }
Example #2
0
 @Test(expected = IllegalArgumentException.class)
 public void shouldThrowExceptionWhenGettingEmptyParameter() {
   checkNotEmpty("notEmpty", "");
 }
Example #3
0
 @Test
 public void shouldDoNotThrowExceptionWhenGettingNotEmptyParameter() {
   checkNotEmpty("notEmpty", "notEmpty");
 }
Example #4
0
 @Test(expected = IllegalArgumentException.class)
 public void shouldThrowExceptionOnCheckEmptyWhenGettingNullParameter() {
   checkNotEmpty("notEmpty", (String) null);
 }
Example #5
0
 @Test
 public void shouldDoNotThrowExceptionWhenGettingNotEmptyArray() {
   checkNotEmpty("notEmpty", new Object[] {1, 2, 3});
 }