@Test @DataFrom("blankString_false") public void testMatches_False(String input) { StringBlankMatcher matcher = new StringBlankMatcher(); try { MatcherAssert.assertThat(input, matcher); } catch (Error e) { String message = e.getMessage(); want.string(message) .contains("expected is empty string, but actual", StringMode.IgnoreSpace); } }
@Test @DataFrom("blankString_true") public void testMatches_True(String input) { StringBlankMatcher matcher = new StringBlankMatcher(); MatcherAssert.assertThat(input, matcher); }