Skip to content

Commit bada18f

Browse files
committed
Review
1 parent 670930f commit bada18f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

java/src/test/java/io/cucumber/junitxmlformatter/MessagesToJunitXmlWriterAcceptanceTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import java.util.stream.Stream;
3131

3232
import static io.cucumber.junitxmlformatter.Jackson.OBJECT_MAPPER;
33-
import static org.assertj.core.api.Assertions.assertThat;
3433
import static org.xmlunit.assertj.XmlAssert.assertThat;
3534

3635
class MessagesToJunitXmlWriterAcceptanceTest {
@@ -52,7 +51,7 @@ void test(TestCase testCase) throws IOException {
5251
ByteArrayOutputStream bytes = writeJunitXmlReport(testCase, new ByteArrayOutputStream());
5352
Source expected = Input.fromPath(testCase.expected).build();
5453
Source actual = Input.fromByteArray(bytes.toByteArray()).build();
55-
XmlAssert.assertThat(actual).and(expected).ignoreWhitespace().areIdentical();
54+
assertThat(actual).and(expected).ignoreWhitespace().areIdentical();
5655
}
5756

5857
@ParameterizedTest
@@ -61,7 +60,7 @@ void validateAgainstJenkins(TestCase testCase) throws IOException {
6160
ByteArrayOutputStream bytes = writeJunitXmlReport(testCase, new ByteArrayOutputStream());
6261
Source actual = Input.fromByteArray(bytes.toByteArray()).build();
6362
Source jenkinsSchema = Input.fromPath(Paths.get("../jenkins-junit.xsd")).build();
64-
XmlAssert.assertThat(actual).isValidAgainst(jenkinsSchema);
63+
assertThat(actual).isValidAgainst(jenkinsSchema);
6564
}
6665

6766
static final List<String> testCasesWithMissingException = Arrays.asList(
@@ -106,7 +105,7 @@ void validateAgainstSurefire(TestCase testCase) throws IOException {
106105
expectedProblems.add("cvc-complex-type.4: Attribute 'type' must appear on element 'failure'.");
107106
}
108107
Iterable<ValidationProblem> problems = validationResult.getProblems();
109-
assertThat(problems).extracting(ValidationProblem::getMessage).containsAll(expectedProblems);
108+
Assertions.assertThat(problems).extracting(ValidationProblem::getMessage).containsAll(expectedProblems);
110109
}
111110

112111
@ParameterizedTest

0 commit comments

Comments
 (0)