コード例 #1
0
 @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);
 }
コード例 #2
0
 @Test
 public void testMatchesCommaSeparatedArray() throws IOException {
   ArrayDocumentMatcher matcher = new ArrayDocumentMatcher("foo", "bar");
   assertThat(matcher.matches(getProperties("foo: bar,spam"))).isEqualTo(MatchStatus.FOUND);
 }
コード例 #3
0
 @Test
 public void testMatchesSingleValue() throws IOException {
   ArrayDocumentMatcher matcher = new ArrayDocumentMatcher("foo", "bar");
   assertThat(matcher.matches(getProperties("foo: bar"))).isEqualTo(MatchStatus.FOUND);
 }