Author: alessio.soldano(a)jboss.com
Date: 2010-09-08 04:45:39 -0400 (Wed, 08 Sep 2010)
New Revision: 397
Modified:
core/trunk/integration/src/test/java/org/jboss/wise/test/integration/wsaandwsse/WSAANDWSSEIntegrationTest.java
core/trunk/integration/src/test/java/org/jboss/wise/test/integration/wsaandwsse/WSAandWSSEImpl.java
Log:
Fixing broken test
Modified:
core/trunk/integration/src/test/java/org/jboss/wise/test/integration/wsaandwsse/WSAANDWSSEIntegrationTest.java
===================================================================
---
core/trunk/integration/src/test/java/org/jboss/wise/test/integration/wsaandwsse/WSAANDWSSEIntegrationTest.java 2010-09-05
23:26:29 UTC (rev 396)
+++
core/trunk/integration/src/test/java/org/jboss/wise/test/integration/wsaandwsse/WSAANDWSSEIntegrationTest.java 2010-09-08
08:45:39 UTC (rev 397)
@@ -65,12 +65,12 @@
method.getEndpoint().addWSExtension(new WSAddressingEnabler(client));
method.getEndpoint().addHandler(new LoggingHandler());
HashMap<String, Object> requestMap = new HashMap<String, Object>();
- requestMap.put("toWhom", "SpiderMan");
+ requestMap.put("user", "SpiderMan");
InvocationResult result = method.invoke(requestMap, null);
System.out.println(result.getMapRequestAndResult(null, null));
Map<String, Object> results = (Map<String, Object>)
result.getMapRequestAndResult(null, null).get("results");
client.close();
- Assert.assertEquals("Hello WSAddressingAndWSSecurity",
results.get("result"));
+ Assert.assertEquals("Hello WSAddressingAndWSSecurity SpiderMan",
results.get("result"));
}
@After
Modified:
core/trunk/integration/src/test/java/org/jboss/wise/test/integration/wsaandwsse/WSAandWSSEImpl.java
===================================================================
---
core/trunk/integration/src/test/java/org/jboss/wise/test/integration/wsaandwsse/WSAandWSSEImpl.java 2010-09-05
23:26:29 UTC (rev 396)
+++
core/trunk/integration/src/test/java/org/jboss/wise/test/integration/wsaandwsse/WSAandWSSEImpl.java 2010-09-08
08:45:39 UTC (rev 397)
@@ -30,6 +30,6 @@
@HandlerChain(file = "handlers.xml")
public class WSAandWSSEImpl implements WSAandWSSE {
public String echoUserType(String user) {
- return "Hello WSAddressingAndWSSecurity";
+ return "Hello WSAddressingAndWSSecurity " + user;
}
}
Show replies by date