You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2005/07/11 19:49:08 UTC
svn commit: r210165 [18/20] - in /webservices/axis/trunk/java/modules:
addressing/src/org/apache/axis2/handlers/addressing/
addressing/test/org/apache/axis2/handlers/addressing/
addressing/test/org/apache/axis2/handlers/util/ core/src/org/apache/axis2/...
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/ElementSerializerTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/ElementSerializerTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/ElementSerializerTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/ElementSerializerTest.java Mon Jul 11 10:48:55 2005
@@ -15,7 +15,15 @@
*/
package org.apache.axis2.om.impl.serializer;
-import org.apache.axis2.om.*;
+import org.apache.axis2.om.AbstractTestCase;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMFactory;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.axis2.om.OMNode;
+import org.apache.axis2.om.OMOutput;
+import org.apache.axis2.om.OMText;
+import org.apache.axis2.om.OMXMLParserWrapper;
import org.apache.axis2.om.impl.llom.factory.OMXMLBuilderFactory;
import org.apache.axis2.soap.SOAPBody;
import org.apache.axis2.soap.SOAPEnvelope;
@@ -38,12 +46,19 @@
}
protected void setUp() throws Exception {
- reader = XMLInputFactory.newInstance().
- createXMLStreamReader(new FileReader(getTestResourceFile("soap/soapmessage.xml")));
+ reader =
+ XMLInputFactory.newInstance().
+ createXMLStreamReader(
+ new FileReader(
+ getTestResourceFile("soap/soapmessage.xml")));
tempFile = File.createTempFile("temp", "xml");
- omOutput = new OMOutput(XMLOutputFactory.newInstance().
- createXMLStreamWriter(new FileOutputStream(tempFile)));
- builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(OMAbstractFactory.getSOAP11Factory(), reader);
+ omOutput =
+ new OMOutput(
+ XMLOutputFactory.newInstance().
+ createXMLStreamWriter(new FileOutputStream(tempFile)));
+ builder =
+ OMXMLBuilderFactory.createStAXSOAPModelBuilder(
+ OMAbstractFactory.getSOAP11Factory(), reader);
}
public void testElementSerilization() throws Exception {
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/NoNamespaceSerializerTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/NoNamespaceSerializerTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/NoNamespaceSerializerTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/NoNamespaceSerializerTest.java Mon Jul 11 10:48:55 2005
@@ -71,14 +71,24 @@
protected void setUp() throws Exception {
- readerOne = XMLInputFactory.newInstance().
- createXMLStreamReader(new InputStreamReader(new ByteArrayInputStream(xmlTextOne.getBytes())));
- readerTwo = XMLInputFactory.newInstance().
- createXMLStreamReader(new InputStreamReader(new ByteArrayInputStream(xmlTextTwo.getBytes())));
+ readerOne =
+ XMLInputFactory.newInstance().
+ createXMLStreamReader(
+ new InputStreamReader(
+ new ByteArrayInputStream(xmlTextOne.getBytes())));
+ readerTwo =
+ XMLInputFactory.newInstance().
+ createXMLStreamReader(
+ new InputStreamReader(
+ new ByteArrayInputStream(xmlTextTwo.getBytes())));
omOutput = new OMOutput(XMLOutputFactory.newInstance().
- createXMLStreamWriter(System.out));
- builderOne = OMXMLBuilderFactory.createStAXSOAPModelBuilder(OMAbstractFactory.getSOAP11Factory(), readerOne);
- builderTwo = OMXMLBuilderFactory.createStAXSOAPModelBuilder(OMAbstractFactory.getSOAP11Factory(), readerTwo);
+ createXMLStreamWriter(System.out));
+ builderOne =
+ OMXMLBuilderFactory.createStAXSOAPModelBuilder(
+ OMAbstractFactory.getSOAP11Factory(), readerOne);
+ builderTwo =
+ OMXMLBuilderFactory.createStAXSOAPModelBuilder(
+ OMAbstractFactory.getSOAP11Factory(), readerTwo);
}
@@ -101,10 +111,15 @@
SOAPEnvelope env = (SOAPEnvelope) builderTwo.getDocumentElement();
env.serializeWithCache(omOutput);
OMElement balanceElement = env.getBody().getFirstElement();
- assertEquals("Deafualt namespace has not been set properly", balanceElement.getNamespace().getName(), "http://localhost:8081/axis/services/BankPort/");
+ assertEquals("Deafualt namespace has not been set properly",
+ balanceElement.getNamespace().getName(),
+ "http://localhost:8081/axis/services/BankPort/");
OMElement accountNo = balanceElement.getFirstElement();
- assertEquals("Deafualt namespace of children has not been set properly", accountNo.getNamespace().getName(), "http://localhost:8081/axis/services/BankPort/");
+ assertEquals(
+ "Deafualt namespace of children has not been set properly",
+ accountNo.getNamespace().getName(),
+ "http://localhost:8081/axis/services/BankPort/");
}
@@ -112,8 +127,12 @@
throws Exception {
SOAPFactory omFactory = OMAbstractFactory.getSOAP11Factory();
SOAPEnvelope env = omFactory.getDefaultEnvelope();
- OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXOMBuilder(omFactory, XMLInputFactory.newInstance().
- createXMLStreamReader(new InputStreamReader(new ByteArrayInputStream(xmlText2.getBytes()))));
+ OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXOMBuilder(
+ omFactory,
+ XMLInputFactory.newInstance().
+ createXMLStreamReader(
+ new InputStreamReader(
+ new ByteArrayInputStream(xmlText2.getBytes()))));
env.getBody().addChild(builder.getDocumentElement());
OMOutput omOutput = new OMOutput(System.out, false);
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/OMSerializerTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/OMSerializerTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/OMSerializerTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/serializer/OMSerializerTest.java Mon Jul 11 10:48:55 2005
@@ -41,11 +41,16 @@
}
protected void setUp() throws Exception {
- reader = XMLInputFactory.newInstance().
- createXMLStreamReader(new FileReader(getTestResourceFile("soap/soapmessage.xml")));
+ reader =
+ XMLInputFactory.newInstance().
+ createXMLStreamReader(
+ new FileReader(
+ getTestResourceFile("soap/soapmessage.xml")));
tempFile = File.createTempFile("temp", "xml");
- omOutput = new OMOutput(XMLOutputFactory.newInstance().
- createXMLStreamWriter(new FileOutputStream(tempFile)));
+ omOutput =
+ new OMOutput(
+ XMLOutputFactory.newInstance().
+ createXMLStreamWriter(new FileOutputStream(tempFile)));
// writer = XMLOutputFactory.newInstance().
// createXMLStreamWriter(System.out);
}
@@ -58,28 +63,32 @@
}
public void testElementPullStream1() throws Exception {
- OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(OMAbstractFactory.getSOAP11Factory(),
- reader);
+ OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(
+ OMAbstractFactory.getSOAP11Factory(),
+ reader);
SOAPEnvelope env = (SOAPEnvelope) builder.getDocumentElement();
StreamingOMSerializer serializer = new StreamingOMSerializer();
serializer.serialize(env.getXMLStreamReaderWithoutCaching(), omOutput);
}
public void testElementPullStream1WithCacheOff() throws Exception {
- OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(OMAbstractFactory.getSOAP11Factory(),
- reader);
+ OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(
+ OMAbstractFactory.getSOAP11Factory(),
+ reader);
SOAPEnvelope env = (SOAPEnvelope) builder.getDocumentElement();
StreamingOMSerializer serializer = new StreamingOMSerializer();
serializer.serialize(env.getXMLStreamReader(), omOutput);
}
public void testElementPullStream2() throws Exception {
- OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(OMAbstractFactory.getSOAP11Factory(),
- reader);
+ OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(
+ OMAbstractFactory.getSOAP11Factory(),
+ reader);
SOAPEnvelope env = (SOAPEnvelope) builder.getDocumentElement();
SOAPBody body = env.getBody();
StreamingOMSerializer serializer = new StreamingOMSerializer();
- serializer.serialize(body.getXMLStreamReaderWithoutCaching(), omOutput);
+ serializer.serialize(body.getXMLStreamReaderWithoutCaching(),
+ omOutput);
}
protected void tearDown() throws Exception {
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/streamwrapper/OMStaxStreamingWrapperTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/streamwrapper/OMStaxStreamingWrapperTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/streamwrapper/OMStaxStreamingWrapperTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/streamwrapper/OMStaxStreamingWrapperTest.java Mon Jul 11 10:48:55 2005
@@ -37,8 +37,11 @@
protected void setUp() throws Exception {
XMLStreamReader xmlStreamReader = XMLInputFactory.newInstance().
- createXMLStreamReader(new FileReader(getTestResourceFile("soap/soapmessage1.xml")));
- OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(OMAbstractFactory.getSOAP11Factory(), xmlStreamReader);
+ createXMLStreamReader(
+ new FileReader(
+ getTestResourceFile("soap/soapmessage1.xml")));
+ OMXMLParserWrapper builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(
+ OMAbstractFactory.getSOAP11Factory(), xmlStreamReader);
envelope = (SOAPEnvelope) builder.getDocumentElement();
tempFile = File.createTempFile("temp", "xml");
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/streamwrapper/OmStAXBuilderTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/streamwrapper/OmStAXBuilderTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/streamwrapper/OmStAXBuilderTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/impl/streamwrapper/OmStAXBuilderTest.java Mon Jul 11 10:48:55 2005
@@ -41,15 +41,20 @@
protected void setUp() throws Exception {
factory = OMAbstractFactory.getSOAP11Factory();
XMLStreamReader reader = XMLInputFactory.newInstance().
- createXMLStreamReader(new FileReader(getTestResourceFile("soap/soapmessage.xml")));
- builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(factory, reader);
+ createXMLStreamReader(
+ new FileReader(
+ getTestResourceFile("soap/soapmessage.xml")));
+ builder =
+ OMXMLBuilderFactory.createStAXSOAPModelBuilder(factory,
+ reader);
tempFile = File.createTempFile("temp", "xml");
}
public void testStaxBuilder() throws Exception {
SOAPEnvelope envelope = (SOAPEnvelope) builder.getDocumentElement();
assertNotNull(envelope);
- OMOutput omOutput = new OMOutput(new FileOutputStream(tempFile), false);
+ OMOutput omOutput = new OMOutput(new FileOutputStream(tempFile),
+ false);
// XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
envelope.serializeWithCache(omOutput);
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/util/XMLComparator.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/util/XMLComparator.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/util/XMLComparator.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/util/XMLComparator.java Mon Jul 11 10:48:55 2005
@@ -38,25 +38,36 @@
return true;
}
if (elementOne == null && elementTwo != null) {
- throw new XMLComparisonException("Element One is null and Element Two is not null");
+ throw new XMLComparisonException(
+ "Element One is null and Element Two is not null");
}
if (elementOne != null && elementTwo == null) {
- throw new XMLComparisonException("Element Two is null and Element One is not null");
+ throw new XMLComparisonException(
+ "Element Two is null and Element One is not null");
}
- log.info("Now Checking " + elementOne.getLocalName() + " and " + elementTwo.getLocalName() + "=============================");
+ log.info(
+ "Now Checking " + elementOne.getLocalName() + " and " +
+ elementTwo.getLocalName() +
+ "=============================");
log.info("Comparing Element Names .......");
- compare("Elements names are not equal. ", elementOne.getLocalName(), elementTwo.getLocalName());
+ compare("Elements names are not equal. ",
+ elementOne.getLocalName(),
+ elementTwo.getLocalName());
log.info("Comparing Namespaces .........");
- compare("Element namespaces are not equal", elementOne.getNamespace(), elementTwo.getNamespace());
+ compare("Element namespaces are not equal",
+ elementOne.getNamespace(),
+ elementTwo.getNamespace());
log.info("Comparing attributes .....");
compareAllAttributes(elementOne, elementTwo);
log.info("Comparing texts .....");
- compare("Elements texts are not equal ", elementOne.getText(), elementTwo.getText());
+ compare("Elements texts are not equal ",
+ elementOne.getText(),
+ elementTwo.getText());
log.info("Comparing Children ......");
compareAllChildren(elementOne, elementTwo);
@@ -65,12 +76,14 @@
return true;
}
- private void compareAllAttributes(OMElement elementOne, OMElement elementTwo) throws XMLComparisonException {
+ private void compareAllAttributes(OMElement elementOne,
+ OMElement elementTwo) throws XMLComparisonException {
compareAttibutes(elementOne, elementTwo);
compareAttibutes(elementTwo, elementOne);
}
- private void compareAllChildren(OMElement elementOne, OMElement elementTwo) throws XMLComparisonException {
+ private void compareAllChildren(OMElement elementOne,
+ OMElement elementTwo) throws XMLComparisonException {
compareChildren(elementOne, elementTwo);
compareChildren(elementTwo, elementOne);
}
@@ -81,9 +94,13 @@
OMNode omNode = (OMNode) elementOneChildren.next();
if (omNode instanceof OMElement) {
OMElement elementOneChild = (OMElement) omNode;
- OMElement elementTwoChild = elementTwo.getFirstChildWithName(elementOneChild.getQName());
+ OMElement elementTwoChild = elementTwo.getFirstChildWithName(
+ elementOneChild.getQName());
if (elementTwoChild == null) {
- throw new XMLComparisonException(" There is no " + elementOneChild.getLocalName() + " element under " + elementTwo.getLocalName());
+ throw new XMLComparisonException(
+ " There is no " + elementOneChild.getLocalName() +
+ " element under " +
+ elementTwo.getLocalName());
}
compare(elementOneChild, elementTwoChild);
}
@@ -95,30 +112,40 @@
Iterator attributes = elementOne.getAttributes();
while (attributes.hasNext()) {
OMAttribute omAttribute = (OMAttribute) attributes.next();
- OMAttribute attr = elementTwo.getFirstAttribute(omAttribute.getQName());
+ OMAttribute attr = elementTwo.getFirstAttribute(
+ omAttribute.getQName());
if (attr == null) {
- throw new XMLComparisonException("Attributes are not the same in two elements. Attribute " + omAttribute.getLocalName() + " != ");
+ throw new XMLComparisonException(
+ "Attributes are not the same in two elements. Attribute " +
+ omAttribute.getLocalName() +
+ " != ");
}
}
}
private void compare(String failureNotice, String one, String two) throws XMLComparisonException {
if (!one.equals(two)) {
- throw new XMLComparisonException(failureNotice + one + " != " + two);
+ throw new XMLComparisonException(
+ failureNotice + one + " != " + two);
}
}
- private void compare(String failureNotice, OMNamespace one, OMNamespace two) throws XMLComparisonException {
+ private void compare(String failureNotice,
+ OMNamespace one,
+ OMNamespace two) throws XMLComparisonException {
if (one == null && two == null) {
return;
} else if (one != null && two == null) {
- throw new XMLComparisonException("First Namespace is NOT null. But the second is null");
+ throw new XMLComparisonException(
+ "First Namespace is NOT null. But the second is null");
} else if (one == null && two != null) {
- throw new XMLComparisonException("First Namespace is null. But the second is NOT null");
+ throw new XMLComparisonException(
+ "First Namespace is null. But the second is NOT null");
}
if (!one.getName().equals(two.getName())) {
- throw new XMLComparisonException(failureNotice + one + " != " + two);
+ throw new XMLComparisonException(
+ failureNotice + one + " != " + two);
}
// Do we need to compare prefixes as well
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/util/XMLComparatorTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/util/XMLComparatorTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/util/XMLComparatorTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/util/XMLComparatorTest.java Mon Jul 11 10:48:55 2005
@@ -35,7 +35,9 @@
public void testCompare() throws Exception {
StAXSOAPModelBuilder omBuilder = getOMBuilder("");
XMLComparator xmlComparator = new XMLComparator();
- assertTrue(xmlComparator.compare(omBuilder.getDocumentElement(), omBuilder.getDocumentElement()));
+ assertTrue(
+ xmlComparator.compare(omBuilder.getDocumentElement(),
+ omBuilder.getDocumentElement()));
}
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPBodyTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPBodyTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPBodyTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPBodyTest.java Mon Jul 11 10:48:55 2005
@@ -31,70 +31,108 @@
//SOAP 1.1 Body Test (Programaticaly created)----------------------------------------------------------------------------------
public void testSOAP11AddFault1() {
soap11Body.addFault(new Exception("This an exception for testing"));
- assertTrue("SOAP 1.1 Body Test:- After calling addFault method, SOAP body has no fault", soap11Body.hasFault());
+ assertTrue(
+ "SOAP 1.1 Body Test:- After calling addFault method, SOAP body has no fault",
+ soap11Body.hasFault());
}
public void testSOAP11addFault2() {
soap11Body.addFault(soap11Factory.createSOAPFault(soap11Body));
- assertTrue("SOAP 1.1 Body Test:- After calling addFault method, SOAP body has no fault", soap11Body.hasFault());
+ assertTrue(
+ "SOAP 1.1 Body Test:- After calling addFault method, SOAP body has no fault",
+ soap11Body.hasFault());
}
public void testSOAP11HasFault() {
- assertFalse("SOAP 1.1 Body Test:- After creating a soap body it has a fault", soap11Body.hasFault());
+ assertFalse(
+ "SOAP 1.1 Body Test:- After creating a soap body it has a fault",
+ soap11Body.hasFault());
soap11Body.addFault(new Exception("This an exception for testing"));
- assertTrue("SOAP 1.1 Body Test:- After calling addFault method, hasFault method returns false", soap11Body.hasFault());
+ assertTrue(
+ "SOAP 1.1 Body Test:- After calling addFault method, hasFault method returns false",
+ soap11Body.hasFault());
}
public void testSOAP11GetFault() {
- assertTrue("SOAP 1.1 Body Test:- After creating a soap body it has a fault", soap11Body.getFault() == null);
+ assertTrue(
+ "SOAP 1.1 Body Test:- After creating a soap body it has a fault",
+ soap11Body.getFault() == null);
soap11Body.addFault(new Exception("This an exception for testing"));
- assertFalse("SOAP 1.1 Body Test:- After calling addFault method, getFault method returns null", soap11Body.getFault() == null);
+ assertFalse(
+ "SOAP 1.1 Body Test:- After calling addFault method, getFault method returns null",
+ soap11Body.getFault() == null);
}
//SOAP 1.2 Body Test (Programaticaly Created)----------------------------------------------------------------------------------
public void testSOAP12AddFault1() {
soap12Body.addFault(new Exception("This an exception for testing"));
- assertTrue("SOAP 1.2 Body Test:- After calling addFault method, SOAP body has no fault", soap12Body.hasFault());
+ assertTrue(
+ "SOAP 1.2 Body Test:- After calling addFault method, SOAP body has no fault",
+ soap12Body.hasFault());
}
public void testSOAP12AddFault2() {
soap12Body.addFault(soap12Factory.createSOAPFault(soap12Body));
- assertTrue("SOAP 1.2 Body Test:- After calling addFault method, SOAP body has no fault", soap12Body.hasFault());
+ assertTrue(
+ "SOAP 1.2 Body Test:- After calling addFault method, SOAP body has no fault",
+ soap12Body.hasFault());
}
public void testSOAP12HasFault() {
- assertFalse("SOAP 1.2 Body Test:- After creating a soap body it has a fault", soap12Body.hasFault());
+ assertFalse(
+ "SOAP 1.2 Body Test:- After creating a soap body it has a fault",
+ soap12Body.hasFault());
soap12Body.addFault(new Exception("This an exception for testing"));
- assertTrue("SOAP 1.2 Body Test:- After calling addFault method, hasFault method returns false", soap12Body.hasFault());
+ assertTrue(
+ "SOAP 1.2 Body Test:- After calling addFault method, hasFault method returns false",
+ soap12Body.hasFault());
}
public void testSOAP12GetFault() {
- assertTrue("SOAP 1.2 Body Test:- After creating a soap body it has a fault", soap12Body.getFault() == null);
+ assertTrue(
+ "SOAP 1.2 Body Test:- After creating a soap body it has a fault",
+ soap12Body.getFault() == null);
soap12Body.addFault(new Exception("This an exception for testing"));
- assertFalse("SOAP 1.2 Body Test:- After calling addFault method, getFault method returns null", soap12Body.getFault() == null);
+ assertFalse(
+ "SOAP 1.2 Body Test:- After calling addFault method, getFault method returns null",
+ soap12Body.getFault() == null);
}
//SOAP 1.1 Body Test (With Parser)-------------------------------------------------------------------------------------------
public void testSOAP11HasFaultWithParser() {
- assertTrue("SOAP 1.1 Body Test With parser :- hasFault method returns false", soap11BodyWithParser.hasFault());
+ assertTrue(
+ "SOAP 1.1 Body Test With parser :- hasFault method returns false",
+ soap11BodyWithParser.hasFault());
}
public void testSOAP11GetFaultWithParser() {
- assertFalse("SOAP 1.1 Body Test With parser :- getFault method returns null", soap11BodyWithParser.getFault() == null);
- assertTrue("SOAP 1.1 Body Test With parser : - SOAP fault name mismatch", soap11BodyWithParser.getFault().getLocalName().equals(SOAPConstants.SOAPFAULT_LOCAL_NAME));
+ assertFalse(
+ "SOAP 1.1 Body Test With parser :- getFault method returns null",
+ soap11BodyWithParser.getFault() == null);
+ assertTrue(
+ "SOAP 1.1 Body Test With parser : - SOAP fault name mismatch",
+ soap11BodyWithParser.getFault().getLocalName().equals(
+ SOAPConstants.SOAPFAULT_LOCAL_NAME));
}
//SOAP 1.2 Body Test (With Parser)-------------------------------------------------------------------------------------------------
public void testSOAP12HasFaultWithParser() {
- assertTrue("SOAP 1.2 Body Test With parser :- hasFault method returns false", soap12BodyWithParser.hasFault());
+ assertTrue(
+ "SOAP 1.2 Body Test With parser :- hasFault method returns false",
+ soap12BodyWithParser.hasFault());
}
public void testSOAP12GetFaultWithParser() {
- assertFalse("SOAP 1.2 Body Test With parser :- getFault method returns null", soap12BodyWithParser.getFault() == null);
- assertTrue("SOAP 1.2 Body Test With parser : - SOAP fault name mismatch", soap12BodyWithParser.getFault().getLocalName().equals(SOAPConstants.SOAPFAULT_LOCAL_NAME));
+ assertFalse(
+ "SOAP 1.2 Body Test With parser :- getFault method returns null",
+ soap12BodyWithParser.getFault() == null);
+ assertTrue(
+ "SOAP 1.2 Body Test With parser : - SOAP fault name mismatch",
+ soap12BodyWithParser.getFault().getLocalName().equals(
+ SOAPConstants.SOAPFAULT_LOCAL_NAME));
}
}
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPEnvelopeTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPEnvelopeTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPEnvelopeTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPEnvelopeTest.java Mon Jul 11 10:48:55 2005
@@ -33,52 +33,76 @@
//SOAP 1.1 Envelope Test (Programaticaly Created)-----------------------------------------------
public void testSOAP11GetHeader() {
SOAPHeader header = soap11Envelope.getHeader();
- assertTrue("SOAP 1.1 Header Test : - Header local name mismatch", header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
- assertTrue("SOAP 1.1 Header Test : - Header namespace mismatch", header.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+ assertTrue("SOAP 1.1 Header Test : - Header local name mismatch",
+ header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
+ assertTrue("SOAP 1.1 Header Test : - Header namespace mismatch",
+ header.getNamespace().getName().equals(
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
}
public void testSOAP11GetBody() {
SOAPBody body = soap11Envelope.getBody();
- assertTrue("SOAP 1.1 Body Test : - Body local name mismatch", body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
- assertTrue("SOAP 1.1 Body Test : - Body namespace mismatch", body.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+ assertTrue("SOAP 1.1 Body Test : - Body local name mismatch",
+ body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
+ assertTrue("SOAP 1.1 Body Test : - Body namespace mismatch",
+ body.getNamespace().getName().equals(
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
}
//SOAP 1.2 Envelope Test (Programaticaly Created)-------------------------------------------------
public void testSOAP12GetHeader() {
SOAPHeader header = soap12Envelope.getHeader();
- assertTrue("SOAP 1.2 Header Test : - Header local name mismatch", header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
- assertTrue("SOAP 1.2 Header Test : - Header namespace mismatch", header.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+ assertTrue("SOAP 1.2 Header Test : - Header local name mismatch",
+ header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
+ assertTrue("SOAP 1.2 Header Test : - Header namespace mismatch",
+ header.getNamespace().getName().equals(
+ SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
}
public void testSOAP12GetBody() {
SOAPBody body = soap12Envelope.getBody();
- assertTrue("SOAP 1.2 Body Test : - Body local name mismatch", body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
- assertTrue("SOAP 1.2 Body Test : - Body namespace mismatch", body.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+ assertTrue("SOAP 1.2 Body Test : - Body local name mismatch",
+ body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
+ assertTrue("SOAP 1.2 Body Test : - Body namespace mismatch",
+ body.getNamespace().getName().equals(
+ SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
}
//SOAP 1.1 Envelope Test (With Parser)-----------------------------------------------------------------
public void testSOAP11GetHeaderWithParser() {
SOAPHeader header = soap11EnvelopeWithParser.getHeader();
- assertTrue("SOAP 1.1 Header Test : - Header local name mismatch", header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
- assertTrue("SOAP 1.1 Header Test : - Header namespace mismatch", header.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+ assertTrue("SOAP 1.1 Header Test : - Header local name mismatch",
+ header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
+ assertTrue("SOAP 1.1 Header Test : - Header namespace mismatch",
+ header.getNamespace().getName().equals(
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
}
public void testSOAP11GetBodyWithParser() {
SOAPBody body = soap11EnvelopeWithParser.getBody();
- assertTrue("SOAP 1.1 Body Test : - Body local name mismatch", body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
- assertTrue("SOAP 1.1 Body Test : - Body namespace mismatch", body.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+ assertTrue("SOAP 1.1 Body Test : - Body local name mismatch",
+ body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
+ assertTrue("SOAP 1.1 Body Test : - Body namespace mismatch",
+ body.getNamespace().getName().equals(
+ SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI));
}
//SOAP 1.2 Envelope Test (With Parser)--------------------------------------------------------------------
public void testSOAP12GetHeaderWithParser() {
SOAPHeader header = soap12EnvelopeWithParser.getHeader();
- assertTrue("SOAP 1.2 Header Test : - Header local name mismatch", header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
- assertTrue("SOAP 1.2 Header Test : - Header namespace mismatch", header.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+ assertTrue("SOAP 1.2 Header Test : - Header local name mismatch",
+ header.getLocalName().equals(SOAPConstants.HEADER_LOCAL_NAME));
+ assertTrue("SOAP 1.2 Header Test : - Header namespace mismatch",
+ header.getNamespace().getName().equals(
+ SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
}
public void testSOAP12GetBodyWithParser() {
SOAPBody body = soap12EnvelopeWithParser.getBody();
- assertTrue("SOAP 1.2 Body Test : - Body local name mismatch", body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
- assertTrue("SOAP 1.2 Body Test : - Body namespace mismatch", body.getNamespace().getName().equals(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
+ assertTrue("SOAP 1.2 Body Test : - Body local name mismatch",
+ body.getLocalName().equals(SOAPConstants.BODY_LOCAL_NAME));
+ assertTrue("SOAP 1.2 Body Test : - Body namespace mismatch",
+ body.getNamespace().getName().equals(
+ SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI));
}
}
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultCodeTest.java Mon Jul 11 10:48:55 2005
@@ -31,10 +31,14 @@
//SOAP 1.1 Fault Code Test (Programaticaly Created)
public void testSOAP11SetValue() {
- soap11FaultCode.setValue(soap11Factory.createSOAPFaultValue(soap11FaultCode));
- assertFalse("SOAP 1.1 Fault Code Test :- After calling setValue method, getValue method returns null", soap11FaultCode.getValue() == null);
+ soap11FaultCode.setValue(
+ soap11Factory.createSOAPFaultValue(soap11FaultCode));
+ assertFalse(
+ "SOAP 1.1 Fault Code Test :- After calling setValue method, getValue method returns null",
+ soap11FaultCode.getValue() == null);
try {
- soap11FaultCode.setValue(soap12Factory.createSOAPFaultValue(soap12FaultCode));
+ soap11FaultCode.setValue(
+ soap12Factory.createSOAPFaultValue(soap12FaultCode));
fail("SOAP12FaultValue should not be inserted to SOAP11FaultCode");
} catch (SOAPProcessingException e) {
assertTrue(true);
@@ -43,72 +47,119 @@
}
public void testSOAP11GetValue() {
- assertTrue("SOAP 1.1 Fault Code Test :- After creating soapfaultcode, it has a value", soap11FaultCode.getValue() == null);
- soap11FaultCode.setValue(soap11Factory.createSOAPFaultValue(soap11FaultCode));
- assertFalse("SOAP 1.1 Fault Code Test :- After calling setValue method, getValue method returns null", soap11FaultCode.getValue() == null);
+ assertTrue(
+ "SOAP 1.1 Fault Code Test :- After creating soapfaultcode, it has a value",
+ soap11FaultCode.getValue() == null);
+ soap11FaultCode.setValue(
+ soap11Factory.createSOAPFaultValue(soap11FaultCode));
+ assertFalse(
+ "SOAP 1.1 Fault Code Test :- After calling setValue method, getValue method returns null",
+ soap11FaultCode.getValue() == null);
}
//SOAP 1.2 Fault Code Test (Programaticaly Created)
public void testSOAP12SetValue() {
- soap12FaultCode.setValue(soap12Factory.createSOAPFaultValue(soap12FaultCode));
- assertFalse("SOAP 1.2 Fault Code Test :- After calling setValue method, getValue method returns null", soap12FaultCode.getValue() == null);
+ soap12FaultCode.setValue(
+ soap12Factory.createSOAPFaultValue(soap12FaultCode));
+ assertFalse(
+ "SOAP 1.2 Fault Code Test :- After calling setValue method, getValue method returns null",
+ soap12FaultCode.getValue() == null);
try {
- soap12FaultCode.setValue(soap11Factory.createSOAPFaultValue(soap11FaultCode));
+ soap12FaultCode.setValue(
+ soap11Factory.createSOAPFaultValue(soap11FaultCode));
fail("SOAP11FaultValue should not be inserted to SOAP12FaultCode");
} catch (SOAPProcessingException e) {
assertTrue(true);
}
try {
- soap12FaultCode.setValue(soap12Factory.createSOAPFaultValue(soap12Factory.createSOAPFaultSubCode(soap12FaultCode)));
+ soap12FaultCode.setValue(
+ soap12Factory.createSOAPFaultValue(
+ soap12Factory.createSOAPFaultSubCode(
+ soap12FaultCode)));
} catch (Exception e) {
- fail("SOAP 1.2 Fault Code Test :- When calling setValue method, parent of value element mismatch");
+ fail(
+ "SOAP 1.2 Fault Code Test :- When calling setValue method, parent of value element mismatch");
}
}
public void testSOAP12GetValue() {
- assertTrue("SOAP 1.2 Fault Code Test :- After creating soapfaultcode, it has a value", soap12FaultCode.getValue() == null);
- soap12FaultCode.setValue(soap12Factory.createSOAPFaultValue(soap12FaultCode));
- assertFalse("SOAP 1.2 Fault Code Test :- After calling setValue method, getValue method returns null", soap12FaultCode.getValue() == null);
+ assertTrue(
+ "SOAP 1.2 Fault Code Test :- After creating soapfaultcode, it has a value",
+ soap12FaultCode.getValue() == null);
+ soap12FaultCode.setValue(
+ soap12Factory.createSOAPFaultValue(soap12FaultCode));
+ assertFalse(
+ "SOAP 1.2 Fault Code Test :- After calling setValue method, getValue method returns null",
+ soap12FaultCode.getValue() == null);
}
public void testSOAP12SetSubCode() {
- soap12FaultCode.setSubCode(soap12Factory.createSOAPFaultSubCode(soap12FaultCode));
- assertFalse("SOAP 1.2 Fault Code Test :- After calling setSubCode method, getSubCode method returns null", soap12FaultCode.getSubCode() == null);
+ soap12FaultCode.setSubCode(
+ soap12Factory.createSOAPFaultSubCode(soap12FaultCode));
+ assertFalse(
+ "SOAP 1.2 Fault Code Test :- After calling setSubCode method, getSubCode method returns null",
+ soap12FaultCode.getSubCode() == null);
try {
- soap12FaultCode.setSubCode(soap11Factory.createSOAPFaultSubCode(soap11FaultCode));
- fail("SOAP11FaultSubCode should not be inserted to SOAP12FaultCode");
+ soap12FaultCode.setSubCode(
+ soap11Factory.createSOAPFaultSubCode(soap11FaultCode));
+ fail(
+ "SOAP11FaultSubCode should not be inserted to SOAP12FaultCode");
} catch (SOAPProcessingException e) {
assertTrue(true);
}
try {
- soap12FaultCode.setSubCode(soap12Factory.createSOAPFaultSubCode(soap12Factory.createSOAPFaultSubCode(soap12FaultCode)));
+ soap12FaultCode.setSubCode(
+ soap12Factory.createSOAPFaultSubCode(
+ soap12Factory.createSOAPFaultSubCode(
+ soap12FaultCode)));
} catch (Exception e) {
- fail("SOAP 1.2 Fault Code Test :- When calling setSubCode method, parent of subcode element mismatch");
+ fail(
+ "SOAP 1.2 Fault Code Test :- When calling setSubCode method, parent of subcode element mismatch");
}
}
public void testSOAP12GetSubCode() {
- assertTrue("SOAP 1.2 Fault Code Test :- After creating soapfaultcode, it has a subcode", soap12FaultCode.getSubCode() == null);
- soap12FaultCode.setSubCode(soap12Factory.createSOAPFaultSubCode(soap12FaultCode));
- assertFalse("SOAP 1.2 Fault Code Test :- After calling setSubCode method, getSubCode method returns null", soap12FaultCode.getSubCode() == null);
+ assertTrue(
+ "SOAP 1.2 Fault Code Test :- After creating soapfaultcode, it has a subcode",
+ soap12FaultCode.getSubCode() == null);
+ soap12FaultCode.setSubCode(
+ soap12Factory.createSOAPFaultSubCode(soap12FaultCode));
+ assertFalse(
+ "SOAP 1.2 Fault Code Test :- After calling setSubCode method, getSubCode method returns null",
+ soap12FaultCode.getSubCode() == null);
}
//SOAP 1.1 Fault Code Test (With Parser)
public void testSOAP11GetValueWithParser() {
- assertFalse("SOAP 1.1 Fault Code Test with parser : - getValue method returns null", soap11FaultCodeWithParser.getValue() == null);
- assertTrue("SOAP 1.1 Fault Code Test with parser : - Value local name mismatch", soap11FaultCodeWithParser.getValue().getLocalName().equals(SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
+ assertFalse(
+ "SOAP 1.1 Fault Code Test with parser : - getValue method returns null",
+ soap11FaultCodeWithParser.getValue() == null);
+ assertTrue(
+ "SOAP 1.1 Fault Code Test with parser : - Value local name mismatch",
+ soap11FaultCodeWithParser.getValue().getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
}
//SOAP 1.2 Fault Code Test (With Parser)
public void testSOAP12GetValueWithParser() {
- assertFalse("SOAP 1.2 Fault Code Test with parser : - getValue method returns null", soap12FaultCodeWithParser.getValue() == null);
- assertTrue("SOAP 1.2 Fault Code Test with parser : - Value local name mismatch", soap12FaultCodeWithParser.getValue().getLocalName().equals(SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
+ assertFalse(
+ "SOAP 1.2 Fault Code Test with parser : - getValue method returns null",
+ soap12FaultCodeWithParser.getValue() == null);
+ assertTrue(
+ "SOAP 1.2 Fault Code Test with parser : - Value local name mismatch",
+ soap12FaultCodeWithParser.getValue().getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME));
}
public void testSOAP12GetSubCodeWithParser() {
- assertFalse("SOAP 1.2 Fault Code Test with parser :- getSubCode method returns null", soap12FaultCodeWithParser.getSubCode() == null);
- assertTrue("SOAP 1.2 Fault Code Test with parser : - subcode local name mismatch", soap12FaultCodeWithParser.getSubCode().getLocalName().equals(SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME));
+ assertFalse(
+ "SOAP 1.2 Fault Code Test with parser :- getSubCode method returns null",
+ soap12FaultCodeWithParser.getSubCode() == null);
+ assertTrue(
+ "SOAP 1.2 Fault Code Test with parser : - subcode local name mismatch",
+ soap12FaultCodeWithParser.getSubCode().getLocalName().equals(
+ SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME));
}
}
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultDetailTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultDetailTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultDetailTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultDetailTest.java Mon Jul 11 10:48:55 2005
@@ -31,7 +31,8 @@
public SOAPFaultDetailTest(String testName) {
super(testName);
- omNamespace = omFactory.createOMNamespace("http://www.test.org", "test");
+ omNamespace =
+ omFactory.createOMNamespace("http://www.test.org", "test");
}
protected void setUp() throws Exception {
@@ -44,91 +45,179 @@
//SOAP 1.1 Fault Detail Test (Programaticaly Created)
public void testSOAP11AddDetailEntry() {
- soap11FaultDetail.addDetailEntry(omFactory.createOMElement("DetailEntry1", omNamespace));
- soap11FaultDetail.addDetailEntry(omFactory.createOMElement("DetailEntry2", omNamespace));
+ soap11FaultDetail.addDetailEntry(
+ omFactory.createOMElement("DetailEntry1", omNamespace));
+ soap11FaultDetail.addDetailEntry(
+ omFactory.createOMElement("DetailEntry2", omNamespace));
Iterator iterator = soap11FaultDetail.getAllDetailEntries();
OMElement detailEntry1 = (OMElement) iterator.next();
- assertFalse("SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns empty iterator", detailEntry1 == null);
- assertTrue("SOAP 1.1 Fault Detail Test : - detailEntry1 local name mismatch", detailEntry1.getLocalName().equals("DetailEntry1"));
- assertTrue("SOAP 1.1 Fault Detail Test : - detailEntry1 namespace uri mismatch", detailEntry1.getNamespace().getName().equals("http://www.test.org"));
+ assertFalse(
+ "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns empty iterator",
+ detailEntry1 == null);
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test : - detailEntry1 local name mismatch",
+ detailEntry1.getLocalName().equals("DetailEntry1"));
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test : - detailEntry1 namespace uri mismatch",
+ detailEntry1.getNamespace().getName().equals(
+ "http://www.test.org"));
OMElement detailEntry2 = (OMElement) iterator.next();
- assertFalse("SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with only one object", detailEntry2 == null);
- assertTrue("SOAP 1.1 Fault Detail Test : - detailEntry2 local name mismatch", detailEntry2.getLocalName().equals("DetailEntry2"));
- assertTrue("SOAP 1.1 Fault Detail Test : - detailEntry2 namespace uri mismatch", detailEntry2.getNamespace().getName().equals("http://www.test.org"));
- assertTrue("SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with three objects", iterator.next() == null);
+ assertFalse(
+ "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with only one object",
+ detailEntry2 == null);
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test : - detailEntry2 local name mismatch",
+ detailEntry2.getLocalName().equals("DetailEntry2"));
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test : - detailEntry2 namespace uri mismatch",
+ detailEntry2.getNamespace().getName().equals(
+ "http://www.test.org"));
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with three objects",
+ iterator.next() == null);
}
public void testSOAP11GetAllDetailEntries() {
Iterator iterator = soap11FaultDetail.getAllDetailEntries();
- assertTrue("SOAP 1.1 Fault Detail Test : - After creating SOAP11FaultDetail element, it has DetailEntries", iterator.next() == null);
- soap11FaultDetail.addDetailEntry(omFactory.createOMElement("DetailEntry", omNamespace));
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test : - After creating SOAP11FaultDetail element, it has DetailEntries",
+ iterator.next() == null);
+ soap11FaultDetail.addDetailEntry(
+ omFactory.createOMElement("DetailEntry", omNamespace));
iterator = soap11FaultDetail.getAllDetailEntries();
OMElement detailEntry = (OMElement) iterator.next();
- assertFalse("SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method, getAllDetailEntries method returns empty iterator", detailEntry == null);
- assertTrue("SOAP 1.1 Fault Detail Test : - detailEntry local name mismatch", detailEntry.getLocalName().equals("DetailEntry"));
- assertTrue("SOAP 1.1 Fault Detail Test : - detailEntry namespace uri mismatch", detailEntry.getNamespace().getName().equals("http://www.test.org"));
- assertTrue("SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method once, getAllDetailEntries method returns an iterator with two objects", iterator.next() == null);
+ assertFalse(
+ "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method, getAllDetailEntries method returns empty iterator",
+ detailEntry == null);
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test : - detailEntry local name mismatch",
+ detailEntry.getLocalName().equals("DetailEntry"));
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test : - detailEntry namespace uri mismatch",
+ detailEntry.getNamespace().getName().equals(
+ "http://www.test.org"));
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test : - After calling addDetailEntry method once, getAllDetailEntries method returns an iterator with two objects",
+ iterator.next() == null);
}
//SOAP 1.2 Fault Detail Test (Programaticaly Created)
public void testSOAP12AddDetailEntry() {
- soap12FaultDetail.addDetailEntry(omFactory.createOMElement("DetailEntry1", omNamespace));
- soap12FaultDetail.addDetailEntry(omFactory.createOMElement("DetailEntry2", omNamespace));
+ soap12FaultDetail.addDetailEntry(
+ omFactory.createOMElement("DetailEntry1", omNamespace));
+ soap12FaultDetail.addDetailEntry(
+ omFactory.createOMElement("DetailEntry2", omNamespace));
Iterator iterator = soap12FaultDetail.getAllDetailEntries();
OMElement detailEntry1 = (OMElement) iterator.next();
- assertFalse("SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns empty iterator", detailEntry1 == null);
- assertTrue("SOAP 1.2 Fault Detail Test : - detailEntry1 local name mismatch", detailEntry1.getLocalName().equals("DetailEntry1"));
- assertTrue("SOAP 1.2 Fault Detail Test : - detailEntry1 namespace uri mismatch", detailEntry1.getNamespace().getName().equals("http://www.test.org"));
+ assertFalse(
+ "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns empty iterator",
+ detailEntry1 == null);
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test : - detailEntry1 local name mismatch",
+ detailEntry1.getLocalName().equals("DetailEntry1"));
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test : - detailEntry1 namespace uri mismatch",
+ detailEntry1.getNamespace().getName().equals(
+ "http://www.test.org"));
OMElement detailEntry2 = (OMElement) iterator.next();
- assertFalse("SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with only one object", detailEntry2 == null);
- assertTrue("SOAP 1.2 Fault Detail Test : - detailEntry2 local name mismatch", detailEntry2.getLocalName().equals("DetailEntry2"));
- assertTrue("SOAP 1.2 Fault Detail Test : - detailEntry2 namespace uri mismatch", detailEntry2.getNamespace().getName().equals("http://www.test.org"));
- assertTrue("SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with three objects", iterator.next() == null);
+ assertFalse(
+ "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with only one object",
+ detailEntry2 == null);
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test : - detailEntry2 local name mismatch",
+ detailEntry2.getLocalName().equals("DetailEntry2"));
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test : - detailEntry2 namespace uri mismatch",
+ detailEntry2.getNamespace().getName().equals(
+ "http://www.test.org"));
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method twice, getAllDetailEntries method returns an iterator with three objects",
+ iterator.next() == null);
}
public void testSOAP12GetAllDetailEntries() {
Iterator iterator = soap12FaultDetail.getAllDetailEntries();
- assertTrue("SOAP 1.2 Fault Detail Test : - After creating SOAP11FaultDetail element, it has DetailEntries", iterator.next() == null);
- soap12FaultDetail.addDetailEntry(omFactory.createOMElement("DetailEntry", omNamespace));
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test : - After creating SOAP11FaultDetail element, it has DetailEntries",
+ iterator.next() == null);
+ soap12FaultDetail.addDetailEntry(
+ omFactory.createOMElement("DetailEntry", omNamespace));
iterator = soap12FaultDetail.getAllDetailEntries();
OMElement detailEntry = (OMElement) iterator.next();
- assertFalse("SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method, getAllDetailEntries method returns empty iterator", detailEntry == null);
- assertTrue("SOAP 1.2 Fault Detail Test : - detailEntry local name mismatch", detailEntry.getLocalName().equals("DetailEntry"));
- assertTrue("SOAP 1.2 Fault Detail Test : - detailEntry namespace uri mismatch", detailEntry.getNamespace().getName().equals("http://www.test.org"));
- assertTrue("SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method once, getAllDetailEntries method returns an iterator with two objects", iterator.next() == null);
+ assertFalse(
+ "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method, getAllDetailEntries method returns empty iterator",
+ detailEntry == null);
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test : - detailEntry local name mismatch",
+ detailEntry.getLocalName().equals("DetailEntry"));
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test : - detailEntry namespace uri mismatch",
+ detailEntry.getNamespace().getName().equals(
+ "http://www.test.org"));
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test : - After calling addDetailEntry method once, getAllDetailEntries method returns an iterator with two objects",
+ iterator.next() == null);
}
//SOAP 1.1 Fault Detail Test (With Parser)
public void testSOAP11GetAllDetailEntriesWithParser() {
Iterator iterator = soap11FaultDetailWithParser.getAllDetailEntries();
OMText textEntry = (OMText) iterator.next();
- assertFalse("SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns empty iterator", textEntry == null);
- assertTrue("SOAP 1.1 Fault Detail Test With Parser : - text value mismatch", textEntry.getText().trim().equals("Details of error"));
+ assertFalse(
+ "SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns empty iterator",
+ textEntry == null);
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test With Parser : - text value mismatch",
+ textEntry.getText().trim().equals("Details of error"));
OMElement detailEntry1 = (OMElement) iterator.next();
- assertFalse("SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator without detail entries", detailEntry1 == null);
- assertTrue("SOAP 1.1 Fault Detail Test With Parser : - detailEntry1 localname mismatch", detailEntry1.getLocalName().equals("MaxTime"));
+ assertFalse(
+ "SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator without detail entries",
+ detailEntry1 == null);
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test With Parser : - detailEntry1 localname mismatch",
+ detailEntry1.getLocalName().equals("MaxTime"));
iterator.next();
OMElement detailEntry2 = (OMElement) iterator.next();
- assertFalse("SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with only one detail entries", detailEntry2 == null);
- assertTrue("SOAP 1.1 Fault Detail Test With Parser : - detailEntry2 localname mismatch", detailEntry2.getLocalName().equals("AveTime"));
+ assertFalse(
+ "SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with only one detail entries",
+ detailEntry2 == null);
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test With Parser : - detailEntry2 localname mismatch",
+ detailEntry2.getLocalName().equals("AveTime"));
iterator.next();
- assertTrue("SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with more than two detail entries", iterator.next() == null);
+ assertTrue(
+ "SOAP 1.1 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with more than two detail entries",
+ iterator.next() == null);
}
//SOAP 1.2 Fault Detail Test (With Parser)
public void testSOAP12GetAllDetailEntriesWithParser() {
Iterator iterator = soap12FaultDetailWithParser.getAllDetailEntries();
OMText textEntry = (OMText) iterator.next();
- assertFalse("SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns empty iterator", textEntry == null);
- assertTrue("SOAP 1.2 Fault Detail Test With Parser : - text value mismatch", textEntry.getText().trim().equals("Details of error"));
+ assertFalse(
+ "SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns empty iterator",
+ textEntry == null);
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test With Parser : - text value mismatch",
+ textEntry.getText().trim().equals("Details of error"));
OMElement detailEntry1 = (OMElement) iterator.next();
- assertFalse("SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator without detail entries", detailEntry1 == null);
- assertTrue("SOAP 1.2 Fault Detail Test With Parser : - detailEntry1 localname mismatch", detailEntry1.getLocalName().equals("MaxTime"));
+ assertFalse(
+ "SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator without detail entries",
+ detailEntry1 == null);
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test With Parser : - detailEntry1 localname mismatch",
+ detailEntry1.getLocalName().equals("MaxTime"));
iterator.next();
OMElement detailEntry2 = (OMElement) iterator.next();
- assertFalse("SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with only one detail entries", detailEntry2 == null);
- assertTrue("SOAP 1.2 Fault Detail Test With Parser : - detailEntry2 localname mismatch", detailEntry2.getLocalName().equals("AveTime"));
+ assertFalse(
+ "SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with only one detail entries",
+ detailEntry2 == null);
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test With Parser : - detailEntry2 localname mismatch",
+ detailEntry2.getLocalName().equals("AveTime"));
iterator.next();
- assertTrue("SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with more than two detail entries", iterator.next() == null);
+ assertTrue(
+ "SOAP 1.2 Fault Detail Test With Parser : - getAllDetailEntries method returns an itrator with more than two detail entries",
+ iterator.next() == null);
}
}
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultNodeTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultNodeTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultNodeTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultNodeTest.java Mon Jul 11 10:48:55 2005
@@ -35,29 +35,44 @@
//SOAP 1.1 Fault Node Test (Programaticaly Created)
public void testSOAP11SetNodeValue() {
soap11FaultNode.setNodeValue("This is only a test");
- assertTrue("SOAP 1.1 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value", soap11FaultNode.getNodeValue().equals("This is only a test"));
+ assertTrue(
+ "SOAP 1.1 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value",
+ soap11FaultNode.getNodeValue().equals("This is only a test"));
}
public void testSOAP11GetNodeValue() {
- assertTrue("SOAP 1.1 Fault Node Test : - After creating SOAPFaultNode, it has a value", soap11FaultNode.getNodeValue().equals(""));
+ assertTrue(
+ "SOAP 1.1 Fault Node Test : - After creating SOAPFaultNode, it has a value",
+ soap11FaultNode.getNodeValue().equals(""));
soap11FaultNode.setNodeValue("This is only a test");
- assertTrue("SOAP 1.1 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value", soap11FaultNode.getNodeValue().equals("This is only a test"));
+ assertTrue(
+ "SOAP 1.1 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value",
+ soap11FaultNode.getNodeValue().equals("This is only a test"));
}
//SOAP 1.2 Fault Node Test (Programaticaly Created)
public void testSOAP12SetNodeValue() {
soap12FaultNode.setNodeValue("This is only a test");
- assertTrue("SOAP 1.2 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value", soap12FaultNode.getNodeValue().equals("This is only a test"));
+ assertTrue(
+ "SOAP 1.2 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value",
+ soap12FaultNode.getNodeValue().equals("This is only a test"));
}
public void testSOAP12GetNodeValue() {
- assertTrue("SOAP 1.2 Fault Node Test : - After creating SOAPFaultNode, it has a value", soap12FaultNode.getNodeValue().equals(""));
+ assertTrue(
+ "SOAP 1.2 Fault Node Test : - After creating SOAPFaultNode, it has a value",
+ soap12FaultNode.getNodeValue().equals(""));
soap12FaultNode.setNodeValue("This is only a test");
- assertTrue("SOAP 1.2 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value", soap12FaultNode.getNodeValue().equals("This is only a test"));
+ assertTrue(
+ "SOAP 1.2 Fault Node Test : - After calling setNodeValue method, getNodeValue method returns incorrect value",
+ soap12FaultNode.getNodeValue().equals("This is only a test"));
}
//SOAP 1.2 Fault Node Test (With Parser)
public void testSOAP12GetNodeValueWithParser() {
- assertTrue("SOAP 1.2 Fault Node Test With Parser : - getNodeValue method returns incorrect value", soap12FaultNodeWithParser.getNodeValue().equals("http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
+ assertTrue(
+ "SOAP 1.2 Fault Node Test With Parser : - getNodeValue method returns incorrect value",
+ soap12FaultNodeWithParser.getNodeValue().equals(
+ "http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"));
}
}
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultReasonTest.java Mon Jul 11 10:48:55 2005
@@ -28,10 +28,14 @@
//SOAP 1.1 Fault Reason Test (Programaticaly Created)
public void testSOAP11SetSOAPText() {
- soap11FaultReason.setSOAPText(soap11Factory.createSOAPFaultText(soap11FaultReason));
- assertFalse("SOAP 1.1 FaultReason Test : - After calling setSOAPText, getSOAPText returns null", soap11FaultReason.getSOAPText() == null);
+ soap11FaultReason.setSOAPText(
+ soap11Factory.createSOAPFaultText(soap11FaultReason));
+ assertFalse(
+ "SOAP 1.1 FaultReason Test : - After calling setSOAPText, getSOAPText returns null",
+ soap11FaultReason.getSOAPText() == null);
try {
- soap11FaultReason.setSOAPText(soap12Factory.createSOAPFaultText(soap12FaultReason));
+ soap11FaultReason.setSOAPText(
+ soap12Factory.createSOAPFaultText(soap12FaultReason));
fail("SOAP12FaultText should not be added to SOAP11FaultReason");
} catch (Exception e) {
@@ -40,17 +44,26 @@
}
public void testSOAP11GetSOAPText() {
- assertTrue("SOAP 1.1 FaultReason Test : - After creating SOAP11FaultReason, it has a SOAPFaultText", soap11FaultReason.getSOAPText() == null);
- soap11FaultReason.setSOAPText(soap11Factory.createSOAPFaultText(soap11FaultReason));
- assertFalse("SOAP 1.1 FaultReason Test : - After calling setSOAPText, getSOAPText returns null", soap11FaultReason.getSOAPText() == null);
+ assertTrue(
+ "SOAP 1.1 FaultReason Test : - After creating SOAP11FaultReason, it has a SOAPFaultText",
+ soap11FaultReason.getSOAPText() == null);
+ soap11FaultReason.setSOAPText(
+ soap11Factory.createSOAPFaultText(soap11FaultReason));
+ assertFalse(
+ "SOAP 1.1 FaultReason Test : - After calling setSOAPText, getSOAPText returns null",
+ soap11FaultReason.getSOAPText() == null);
}
//SOAP 1.2 Fault Reason Test (Programaticaly Created)
public void testSOAP12SetSOAPText() {
- soap12FaultReason.setSOAPText(soap12Factory.createSOAPFaultText(soap12FaultReason));
- assertFalse("SOAP 1.2 FaultReason Test : - After calling setSOAPText, getSOAPText returns null", soap12FaultReason.getSOAPText() == null);
+ soap12FaultReason.setSOAPText(
+ soap12Factory.createSOAPFaultText(soap12FaultReason));
+ assertFalse(
+ "SOAP 1.2 FaultReason Test : - After calling setSOAPText, getSOAPText returns null",
+ soap12FaultReason.getSOAPText() == null);
try {
- soap12FaultReason.setSOAPText(soap11Factory.createSOAPFaultText(soap11FaultReason));
+ soap12FaultReason.setSOAPText(
+ soap11Factory.createSOAPFaultText(soap11FaultReason));
fail("SOAP11FaultText should not be added to SOAP12FaultReason");
} catch (Exception e) {
assertTrue(true);
@@ -58,18 +71,27 @@
}
public void testSOAP12GetSOAPText() {
- assertTrue("SOAP 1.2 FaultReason Test : - After creating SOAP12FaultReason, it has a SOAPFaultText", soap12FaultReason.getSOAPText() == null);
- soap12FaultReason.setSOAPText(soap12Factory.createSOAPFaultText(soap12FaultReason));
- assertFalse("SOAP 1.2 FaultReason Test : - After calling setSOAPText, getSOAPText returns null", soap12FaultReason.getSOAPText() == null);
+ assertTrue(
+ "SOAP 1.2 FaultReason Test : - After creating SOAP12FaultReason, it has a SOAPFaultText",
+ soap12FaultReason.getSOAPText() == null);
+ soap12FaultReason.setSOAPText(
+ soap12Factory.createSOAPFaultText(soap12FaultReason));
+ assertFalse(
+ "SOAP 1.2 FaultReason Test : - After calling setSOAPText, getSOAPText returns null",
+ soap12FaultReason.getSOAPText() == null);
}
//SOAP 1.1 Fault Reason Test (With Parser)
public void testSOAP11GetSOAPTextWithParser() {
- assertFalse("SOAP 1.1 FaultReason Test With Parser : - getSOAPText method returns null", soap11FaultReasonWithParser.getSOAPText() == null);
+ assertFalse(
+ "SOAP 1.1 FaultReason Test With Parser : - getSOAPText method returns null",
+ soap11FaultReasonWithParser.getSOAPText() == null);
}
//SOAP 1.2 Fault Reason Test (With Parser)
public void testSOAP12GetSOAPTextWithParser() {
- assertFalse("SOAP 1.2 FaultReason Test With Parser : - getSOAPText method returns null", soap12FaultReasonWithParser.getSOAPText() == null);
+ assertFalse(
+ "SOAP 1.2 FaultReason Test With Parser : - getSOAPText method returns null",
+ soap12FaultReasonWithParser.getSOAPText() == null);
}
}
Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultRoleTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultRoleTest.java?rev=210165&r1=210164&r2=210165&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultRoleTest.java (original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/soap/SOAPFaultRoleTest.java Mon Jul 11 10:48:55 2005
@@ -38,34 +38,52 @@
//SOAP 1.1 Fault Role Test (Programaticaly Created)
public void testSOAP11SetRoleValue() {
soap11FaultRole.setRoleValue("This is only a test");
- assertTrue("SOAP 1.1 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value", soap11FaultRole.getRoleValue().equals("This is only a test"));
+ assertTrue(
+ "SOAP 1.1 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value",
+ soap11FaultRole.getRoleValue().equals("This is only a test"));
}
public void testSOAP11GetRoleValue() {
- assertTrue("SOAP 1.1 Fault Role Test : - After creating SOAPFaultRole, it has a value", soap11FaultRole.getRoleValue().equals(""));
+ assertTrue(
+ "SOAP 1.1 Fault Role Test : - After creating SOAPFaultRole, it has a value",
+ soap11FaultRole.getRoleValue().equals(""));
soap11FaultRole.setRoleValue("This is only a test");
- assertTrue("SOAP 1.1 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value", soap11FaultRole.getRoleValue().equals("This is only a test"));
+ assertTrue(
+ "SOAP 1.1 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value",
+ soap11FaultRole.getRoleValue().equals("This is only a test"));
}
//SOAP 1.2 Fault Role Test (Programaticaly Created)
public void testSOAP12SetRoleValue() {
soap12FaultRole.setRoleValue("This is only a test");
- assertTrue("SOAP 1.2 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value", soap12FaultRole.getRoleValue().equals("This is only a test"));
+ assertTrue(
+ "SOAP 1.2 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value",
+ soap12FaultRole.getRoleValue().equals("This is only a test"));
}
public void testSOAP12GetRoleValue() {
- assertTrue("SOAP 1.2 Fault Role Test : - After creating SOAPFaultRole, it has a value", soap12FaultRole.getRoleValue().equals(""));
+ assertTrue(
+ "SOAP 1.2 Fault Role Test : - After creating SOAPFaultRole, it has a value",
+ soap12FaultRole.getRoleValue().equals(""));
soap12FaultRole.setRoleValue("This is only a test");
- assertTrue("SOAP 1.2 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value", soap12FaultRole.getRoleValue().equals("This is only a test"));
+ assertTrue(
+ "SOAP 1.2 Fault Role Test : - After calling setRoleValue method, getRoleValue method returns incorrect value",
+ soap12FaultRole.getRoleValue().equals("This is only a test"));
}
//SOAP 1.1 Fault Role Test (With Parser)
public void testSOAP11GetRoleValueWithParser() {
- assertTrue("SOAP 1.1 Fault Role Test With Parser : - getRoleValue method returns incorrect value", soap11FaultRoleWithParser.getRoleValue().equals("http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver"));
+ assertTrue(
+ "SOAP 1.1 Fault Role Test With Parser : - getRoleValue method returns incorrect value",
+ soap11FaultRoleWithParser.getRoleValue().equals(
+ "http://schemas.xmlsoap.org/soap/envelope/actor/ultimateReceiver"));
}
//SOAP 1.2 Fault Role Test (With Parser)
public void testSOAP12GetRoleValueWithParser() {
- assertTrue("SOAP 1.2 Fault Role Test With Parser : - getRoleValue method returns incorrect value", soap12FaultRoleWithParser.getRoleValue().equals("ultimateReceiver"));
+ assertTrue(
+ "SOAP 1.2 Fault Role Test With Parser : - getRoleValue method returns incorrect value",
+ soap12FaultRoleWithParser.getRoleValue().equals(
+ "ultimateReceiver"));
}
}