@Test public void testDoesNotMatchesIndexedArray() throws IOException { ArrayDocumentMatcher matcher = new ArrayDocumentMatcher("foo", "bar"); assertThat(matcher.matches(getProperties("foo[0]: bar\nfoo[1]: spam"))) .isEqualTo(MatchStatus.ABSTAIN); }
@Test public void testMatchesCommaSeparatedArray() throws IOException { ArrayDocumentMatcher matcher = new ArrayDocumentMatcher("foo", "bar"); assertThat(matcher.matches(getProperties("foo: bar,spam"))).isEqualTo(MatchStatus.FOUND); }
@Test public void testMatchesSingleValue() throws IOException { ArrayDocumentMatcher matcher = new ArrayDocumentMatcher("foo", "bar"); assertThat(matcher.matches(getProperties("foo: bar"))).isEqualTo(MatchStatus.FOUND); }