File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
impl/maven-impl/src/test/java/org/apache/maven/impl Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3939import org .junit .jupiter .api .Test ;
4040import org .junit .jupiter .api .io .TempDir ;
4141
42+ import static org .assertj .core .api .AssertionsForClassTypes .assertThat ;
4243import static org .junit .jupiter .api .Assertions .assertEquals ;
4344import static org .junit .jupiter .api .Assertions .assertInstanceOf ;
4445import static org .junit .jupiter .api .Assertions .assertThrows ;
@@ -229,7 +230,7 @@ void readMalformedXmlThrowsXmlReaderException() {
229230 () -> defaultPluginXmlFactory .read (XmlReaderRequest .builder ()
230231 .inputStream (new ByteArrayInputStream ("<plugin><name>Broken Plugin" .getBytes ()))
231232 .build ()));
232- assertTrue (exception .getMessage ().contains ("Unable to read plugin" ) );
233+ assertThat (exception .getMessage ()) .contains ("Unable to read plugin" );
233234 assertInstanceOf (WstxEOFException .class , exception .getCause ());
234235 }
235236
You can’t perform that action at this time.
0 commit comments