Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit 25e923e

Browse files
committed
Change matcher for IT to hasItems()
1 parent da35108 commit 25e923e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

raml-maven-plugin-it/src/test/java/uk/gov/justice/maven/json/plugin/it/JsonFilesScanningTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import static org.apache.commons.lang.StringUtils.substringBefore;
55
import static org.hamcrest.Matchers.containsInAnyOrder;
6+
import static org.hamcrest.Matchers.hasItems;
67
import static org.junit.Assert.assertThat;
78

89
import java.net.URI;
@@ -25,9 +26,9 @@ public void shouldProcessInternalAndExternalJsonFiles() throws Exception {
2526
System.out.println("JsonFilesScanningTest: Printing out json-titles.txt");
2627

2728
recordedJsonTitles.stream()
28-
.forEach(s -> System.out.println("JsonFilesScanningTest: Json Value Found" + s));
29+
.forEach(s -> System.out.println("JsonFilesScanningTest: Json Value Found: " + s));
2930

30-
assertThat(recordedJsonTitles, containsInAnyOrder("one", "two"));
31+
assertThat(recordedJsonTitles, hasItems("one", "two"));
3132
}
3233

3334
private Path recordedJsonTitlesFile() throws URISyntaxException {

0 commit comments

Comments
 (0)