Skip to content

Commit

Permalink
#101 test added
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-krecan committed Feb 14, 2018
1 parent 494ba42 commit 14eca54
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,11 @@ public void arrayThatContainsShouldFailOnMissingNode() {
}
}

@Test
public void testContains() {
assertThatJson("[\"foo\", \"bar\"]").isArray().ofLength(2).thatContains("foo").thatContains("bar");
}

@Test
public void intValueShouldMatch() {
assertThatJson("{\"test\":1}").node("test").matches(equalTo(valueOf(1)));
Expand Down

0 comments on commit 14eca54

Please sign in to comment.