Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-krecan committed Jun 19, 2020
1 parent 8671575 commit 46a824b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1567,8 +1567,8 @@ void shouldIgnoreValuesInSpecificPath() {
@Test
void shouldIgnoreValuesInSpecificPathWrittenSeparately() {
assertThatJson("{\"a\":2,\"b\":\"string2\"}")
.when(paths("a"), then(IGNORING_VALUES))
.when(paths("b"), then(IGNORING_VALUES))
.when(path("a"), then(IGNORING_VALUES))
.when(path("b"), then(IGNORING_VALUES))
.isEqualTo("{\"a\":1,\"b\":\"string\"}");
}

Expand Down Expand Up @@ -1599,8 +1599,8 @@ void shouldIgnoreMultiplePaths() {
@Test
void shouldIgnoreMultiplePathsWrittenSeparately() {
assertThatJson("{\"a\":1,\"b\":2,\"c\":3}")
.when(paths("a"), thenIgnore())
.when(paths("b"), thenIgnore())
.when(path("a"), thenIgnore())
.when(path("b"), thenIgnore())
.isEqualTo("{\"c\":3}");
}

Expand Down

0 comments on commit 46a824b

Please sign in to comment.