Author: richard.opalka(a)jboss.com
Date: 2010-02-25 04:23:21 -0500 (Thu, 25 Feb 2010)
New Revision: 11683
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2942/JBWS2942TestCase.java
Log:
[JBWS-2942] enhancing test
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2942/JBWS2942TestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2942/JBWS2942TestCase.java 2010-02-25
09:11:37 UTC (rev 11682)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2942/JBWS2942TestCase.java 2010-02-25
09:23:21 UTC (rev 11683)
@@ -39,13 +39,15 @@
private static final String XML_SOURCE = "<?xml version='1.0'
encoding='UTF-8' standalone='yes'?>\n" +
"<EndpointReference
xmlns='http://www.w3.org/2005/08/addressing'>\n" +
"
<Address>http://localhost:8080/jaxws-endpointReference</Address>\n" +
+ " <Metadata/>\n" +
"</EndpointReference>\n";
public void testToString() throws Exception
{
+ assertTrue("Lost empty <Metadata/>",
this.getXML(XML_SOURCE).indexOf("<Metadata") != -1);
StreamSource source = new StreamSource(new StringReader(XML_SOURCE));
EndpointReference epRef = EndpointReference.readFrom(source);
- assertTrue("Empty <Metadata/> detected",
epRef.toString().indexOf("<Metadata") == -1);
+ assertTrue("Empty <Metadata/> serialized",
epRef.toString().indexOf("<Metadata") == -1);
}
private String getXML(final String s) throws Exception