Author: alessio.soldano(a)jboss.com
Date: 2008-02-28 09:42:59 -0500 (Thu, 28 Feb 2008)
New Revision: 5849
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wssecurity/SimpleSignTestCase.java
Log:
[JBWS-2011] Adding test case
Modified:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wssecurity/SimpleSignTestCase.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wssecurity/SimpleSignTestCase.java 2008-02-28
14:27:47 UTC (rev 5848)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/wssecurity/SimpleSignTestCase.java 2008-02-28
14:42:59 UTC (rev 5849)
@@ -54,11 +54,23 @@
public void testEndpoint() throws Exception
{
Hello hello = getPort();
-
+ performTest(hello, "Kermit");
+ }
+
+ public void testEndpointWithCRLFs() throws Exception
+ {
+ Hello hello = getPort();
+ performTest(hello, "Kermit\nmy friend");
+ performTest(hello, "Kermit\rmy friend");
+ performTest(hello, "Kermit\r\nmy friend");
+ }
+
+ private void performTest(Hello hello, String msg) throws Exception
+ {
UserType in0 = new UserType();
- in0.setMsg("Kermit");
+ in0.setMsg(msg);
UserType retObj = hello.echoUserType(in0);
- assertEquals("Kermit", retObj.getMsg());
+ assertEquals(msg, retObj.getMsg());
}
private Hello getPort() throws Exception
Show replies by date