30
30
import java .util .stream .Stream ;
31
31
32
32
import static io .cucumber .junitxmlformatter .Jackson .OBJECT_MAPPER ;
33
- import static org .assertj .core .api .Assertions .assertThat ;
34
33
import static org .xmlunit .assertj .XmlAssert .assertThat ;
35
34
36
35
class MessagesToJunitXmlWriterAcceptanceTest {
@@ -52,7 +51,7 @@ void test(TestCase testCase) throws IOException {
52
51
ByteArrayOutputStream bytes = writeJunitXmlReport (testCase , new ByteArrayOutputStream ());
53
52
Source expected = Input .fromPath (testCase .expected ).build ();
54
53
Source actual = Input .fromByteArray (bytes .toByteArray ()).build ();
55
- XmlAssert . assertThat (actual ).and (expected ).ignoreWhitespace ().areIdentical ();
54
+ assertThat (actual ).and (expected ).ignoreWhitespace ().areIdentical ();
56
55
}
57
56
58
57
@ ParameterizedTest
@@ -61,7 +60,7 @@ void validateAgainstJenkins(TestCase testCase) throws IOException {
61
60
ByteArrayOutputStream bytes = writeJunitXmlReport (testCase , new ByteArrayOutputStream ());
62
61
Source actual = Input .fromByteArray (bytes .toByteArray ()).build ();
63
62
Source jenkinsSchema = Input .fromPath (Paths .get ("../jenkins-junit.xsd" )).build ();
64
- XmlAssert . assertThat (actual ).isValidAgainst (jenkinsSchema );
63
+ assertThat (actual ).isValidAgainst (jenkinsSchema );
65
64
}
66
65
67
66
static final List <String > testCasesWithMissingException = Arrays .asList (
@@ -106,7 +105,7 @@ void validateAgainstSurefire(TestCase testCase) throws IOException {
106
105
expectedProblems .add ("cvc-complex-type.4: Attribute 'type' must appear on element 'failure'." );
107
106
}
108
107
Iterable <ValidationProblem > problems = validationResult .getProblems ();
109
- assertThat (problems ).extracting (ValidationProblem ::getMessage ).containsAll (expectedProblems );
108
+ Assertions . assertThat (problems ).extracting (ValidationProblem ::getMessage ).containsAll (expectedProblems );
110
109
}
111
110
112
111
@ ParameterizedTest
0 commit comments