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