Skip to content

Commit 49b52ae

Browse files
author
Vincent Potucek
committed
Pull #2303: Fix unused stream os in DefaultPluginXmlFactory#write
1 parent 873bd55 commit 49b52ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

impl/maven-impl/src/test/java/org/apache/maven/impl/DefaultPluginXmlFactoryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.nio.file.Path;
2929
import java.util.List;
3030

31+
import com.ctc.wstx.exc.WstxEOFException;
3132
import org.apache.maven.api.plugin.descriptor.PluginDescriptor;
3233
import org.apache.maven.api.services.xml.ModelXmlFactory;
3334
import 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

0 commit comments

Comments
 (0)