3030import java .util .stream .Stream ;
3131
3232import static io .cucumber .junitxmlformatter .Jackson .OBJECT_MAPPER ;
33- import static org .assertj .core .api .Assertions .assertThat ;
3433import static org .xmlunit .assertj .XmlAssert .assertThat ;
3534
3635class 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