summaryrefslogtreecommitdiff
path: root/utils/src/test/java/at/gv/egiz
diff options
context:
space:
mode:
Diffstat (limited to 'utils/src/test/java/at/gv/egiz')
-rw-r--r--utils/src/test/java/at/gv/egiz/slbinding/UnmarshallCXSRTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/src/test/java/at/gv/egiz/slbinding/UnmarshallCXSRTest.java b/utils/src/test/java/at/gv/egiz/slbinding/UnmarshallCXSRTest.java
index 43f2b5a0..99c11cbe 100644
--- a/utils/src/test/java/at/gv/egiz/slbinding/UnmarshallCXSRTest.java
+++ b/utils/src/test/java/at/gv/egiz/slbinding/UnmarshallCXSRTest.java
@@ -26,6 +26,7 @@
package at.gv.egiz.slbinding;
import java.io.InputStream;
+import java.io.InputStreamReader;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
@@ -40,7 +41,7 @@ import static org.junit.Assert.*;
public class UnmarshallCXSRTest {
@Test
- public void testUnmarshallCreateXMLSignatureResponse() throws XMLStreamException, JAXBException {
+ public void testUnmarshalCreateXMLSignatureResponse() throws XMLStreamException, JAXBException {
ClassLoader cl = UnmarshallCXSRTest.class.getClassLoader();
InputStream s = cl.getResourceAsStream("at/gv/egiz/slbinding/CreateXMLSignatureResponse.xml");
@@ -48,7 +49,7 @@ public class UnmarshallCXSRTest {
assertNotNull(s);
SLUnmarshaller unmarshaller = new SLUnmarshaller();
- Object object = unmarshaller.unmarshal(new StreamSource(s));
+ Object object = unmarshaller.unmarshal(new StreamSource(new InputStreamReader(s)));
assertTrue(object.getClass().getName(), object instanceof JAXBElement<?>);