Author: alessio.soldano(a)jboss.com
Date: 2008-07-03 09:39:53 -0400 (Thu, 03 Jul 2008)
New Revision: 7778
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1815/JBWS1815TestCase.java
Log:
[JBWS-2134] Fixing test
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1815/JBWS1815TestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1815/JBWS1815TestCase.java 2008-07-03
11:03:58 UTC (rev 7777)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1815/JBWS1815TestCase.java 2008-07-03
13:39:53 UTC (rev 7778)
@@ -37,7 +37,6 @@
import junit.framework.Test;
import org.jboss.wsf.common.DOMUtils;
-import org.jboss.wsf.common.DOMWriter;
import org.jboss.wsf.test.JBossWSTest;
import org.jboss.wsf.test.JBossWSTestSetup;
import org.w3c.dom.Element;
@@ -85,11 +84,12 @@
assertNotNull(detail);
SOAPElement exception = (SOAPElement)detail.getDetailEntries().next();
assertNotNull(exception);
- assertEquals(exception.getNodeName(), "MyWSException");
+ assertEquals("MyWSException",
exception.getElementQName().getLocalPart());
+ assertEquals("http://www.my-company.it/ws/my-test",
exception.getElementQName().getNamespaceURI());
SOAPElement message = (SOAPElement)exception.getChildElements().next();
assertNotNull(message);
- assertEquals(message.getNodeName(), "message");
- assertEquals(message.getValue(), "This is a faked error");
+ assertEquals("message", message.getNodeName());
+ assertEquals("This is a faked error", message.getValue());
}
private SOAPMessage getRequestMessage() throws SOAPException, IOException
Show replies by date