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 2222import java .nio .file .Files ;
2323import java .nio .file .Path ;
2424
25+ import org .apache .maven .api .annotations .Nonnull ;
2526import org .apache .maven .api .plugin .descriptor .PluginDescriptor ;
2627import org .apache .maven .api .services .xml .XmlReaderException ;
2728import org .apache .maven .api .services .xml .XmlReaderRequest ;
@@ -227,7 +228,7 @@ void shouldThrowXmlReaderExceptionOnMalformedXml() {
227228
228229 XmlReaderException exception = assertThrows (XmlReaderException .class , () -> sut .read (request ));
229230 assertTrue (exception .getMessage ().contains ("Unable to read plugin" ));
230- assertTrue ( exception .getCause () instanceof Exception );
231+ assertInstanceOf ( Exception . class , exception .getCause ());
231232 }
232233
233234
You can’t perform that action at this time.
0 commit comments