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 2828import java .nio .file .Path ;
2929import java .util .List ;
3030
31+ import com .ctc .wstx .exc .WstxEOFException ;
3132import org .apache .maven .api .plugin .descriptor .PluginDescriptor ;
3233import org .apache .maven .api .services .xml .ModelXmlFactory ;
3334import org .apache .maven .api .services .xml .XmlReaderException ;
@@ -229,7 +230,7 @@ void readMalformedXmlThrowsXmlReaderException() {
229230 .inputStream (new ByteArrayInputStream ("<plugin><name>Broken Plugin" .getBytes ()))
230231 .build ()));
231232 assertTrue (exception .getMessage ().contains ("Unable to read plugin" ));
232- assertInstanceOf (Exception .class , exception .getCause ());
233+ assertInstanceOf (WstxEOFException .class , exception .getCause ());
233234 }
234235
235236 @ Test
You can’t perform that action at this time.
0 commit comments