From 8493281dff4676cb191ea362f87ce1be987e2e44 Mon Sep 17 00:00:00 2001 From: tkellner Date: Thu, 8 Sep 2011 09:52:31 +0000 Subject: Comment SLUnmarshaller changes, adapt tests git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@981 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../egiz/bku/slcommands/impl/CreateXMLSignatureComandImplTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureComandImplTest.java') diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureComandImplTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureComandImplTest.java index 827661b3..e78cc8a8 100644 --- a/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureComandImplTest.java +++ b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/CreateXMLSignatureComandImplTest.java @@ -29,6 +29,7 @@ import static org.junit.Assert.assertTrue; import iaik.xml.crypto.XSecProvider; import java.io.InputStream; +import java.io.InputStreamReader; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamSource; @@ -93,7 +94,7 @@ public class CreateXMLSignatureComandImplTest { InputStream inputStream = getClass().getClassLoader().getResourceAsStream("at/gv/egiz/bku/slcommands/createxmlsignaturerequest/CreateXMLSignatureRequest.xml"); assertNotNull(inputStream); - SLCommand command = factory.createSLCommand(new StreamSource(inputStream)); + SLCommand command = factory.createSLCommand(new StreamSource(new InputStreamReader(inputStream))); assertTrue(command instanceof CreateXMLSignatureCommand); SLCommandContext context = new SLCommandContext(stal, urlDereferencer); @@ -106,7 +107,7 @@ public class CreateXMLSignatureComandImplTest { InputStream inputStream = getClass().getClassLoader().getResourceAsStream("at/gv/egiz/bku/slcommands/infoboxreadcommand/IdentityLink.Binary.Invalid-1.xml"); assertNotNull(inputStream); - SLCommand command = factory.createSLCommand(new StreamSource(inputStream)); + SLCommand command = factory.createSLCommand(new StreamSource(new InputStreamReader(inputStream))); assertTrue(command instanceof InfoboxReadCommand); } @@ -115,7 +116,7 @@ public class CreateXMLSignatureComandImplTest { InputStream inputStream = getClass().getClassLoader().getResourceAsStream("at/gv/egiz/bku/slcommands/infoboxreadcommand/IdentityLink.Binary.Invalid-2.xml"); assertNotNull(inputStream); - SLCommand command = factory.createSLCommand(new StreamSource(inputStream)); + SLCommand command = factory.createSLCommand(new StreamSource(new InputStreamReader(inputStream))); assertTrue(command instanceof InfoboxReadCommandImpl); SLCommandContext context = new SLCommandContext(stal, urlDereferencer); -- cgit v1.2.3