You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2014/05/31 14:39:05 UTC
svn commit: r1598867 - in /webservices/axiom/trunk/modules:
axiom-api/src/test/java/org/apache/axiom/soap/
axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/
axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/
axiom-dom/src/main/java/or...
Author: veithen
Date: Sat May 31 12:39:04 2014
New Revision: 1598867
URL: http://svn.apache.org/r1598867
Log:
AXIOM-394: Don't allow creation of SOAP elements (SOAP fault values, sub codes and texts) that are not meaningful in SOAP 1.1.
Removed:
webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultSubCodeImpl.java
webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultTextImpl.java
webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultValueImpl.java
webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java
webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultValueImpl.java
Modified:
webservices/axiom/trunk/modules/axiom-api/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestBase.java
webservices/axiom/trunk/modules/axiom-api/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestCase.java
webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeImpl.java
webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java
webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java
webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeImpl.java
webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java
webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java
webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java
webservices/axiom/trunk/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTestBase.java
webservices/axiom/trunk/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTestBase.java
Modified: webservices/axiom/trunk/modules/axiom-api/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestBase.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-api/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestBase.java?rev=1598867&r1=1598866&r2=1598867&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-api/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestBase.java (original)
+++ webservices/axiom/trunk/modules/axiom-api/src/test/java/org/apache/axiom/soap/SOAPFaultCodeTestBase.java Sat May 31 12:39:04 2014
@@ -52,13 +52,6 @@ public class SOAPFaultCodeTestBase exten
assertFalse(
"SOAP 1.2 Fault Code Test :- After calling setValue method, getValue method returns null",
soap12FaultCode.getValue() == null);
- try {
- soap12FaultCode.setValue(
- soap11Factory.createSOAPFaultValue(soap11FaultCode));
- fail("SOAP11FaultValue should not be inserted to SOAP12FaultCode");
- } catch (SOAPProcessingException e) {
- assertTrue(true);
- }
try {
soap12FaultCode.setValue(
@@ -88,14 +81,6 @@ public class SOAPFaultCodeTestBase exten
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");
- } catch (SOAPProcessingException e) {
- assertTrue(true);
- }
try {
soap12FaultCode.setSubCode(
Modified: webservices/axiom/trunk/modules/axiom-api/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestCase.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-api/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestCase.java?rev=1598867&r1=1598866&r2=1598867&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-api/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestCase.java (original)
+++ webservices/axiom/trunk/modules/axiom-api/src/test/java/org/apache/axiom/soap/SOAPFaultSubCodeTestCase.java Sat May 31 12:39:04 2014
@@ -22,7 +22,6 @@ package org.apache.axiom.soap;
import org.apache.axiom.om.OMMetaFactory;
public abstract class SOAPFaultSubCodeTestCase extends SOAPFaultCodeTestCase {
- protected SOAPFaultValue soap11FaultValue;
protected SOAPFaultValue soap12FaultValueInFaultCode;
protected SOAPFaultSubCode soap12FaultSubCodeInCode;
@@ -42,7 +41,6 @@ public abstract class SOAPFaultSubCodeTe
protected void setUp() throws Exception {
super.setUp();
- soap11FaultValue = soap11Factory.createSOAPFaultValue(soap11FaultCode);
soap12FaultValueInFaultCode =
soap12Factory.createSOAPFaultValue(soap12FaultCode);
Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeImpl.java?rev=1598867&r1=1598866&r2=1598867&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultCodeImpl.java Sat May 31 12:39:04 2014
@@ -23,13 +23,11 @@ import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.OMXMLParserWrapper;
import org.apache.axiom.om.impl.dom.ParentNode;
-import org.apache.axiom.om.util.ElementHelper;
import org.apache.axiom.soap.SOAP12Constants;
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPFaultCode;
import org.apache.axiom.soap.SOAPFaultSubCode;
-import org.apache.axiom.soap.SOAPFaultValue;
import org.apache.axiom.soap.SOAPProcessingException;
public abstract class SOAPFaultCodeImpl extends SOAPElement implements SOAPFaultCode {
@@ -47,14 +45,6 @@ public abstract class SOAPFaultCodeImpl
extractNamespaceFromParent, factory);
}
- public void setValue(SOAPFaultValue value) throws SOAPProcessingException {
- ElementHelper.setNewElement(this, value, value);
- }
-
- public void setSubCode(SOAPFaultSubCode value) throws SOAPProcessingException {
- ElementHelper.setNewElement(this, getSubCode(), value);
- }
-
public SOAPFaultSubCode getSubCode() {
return (SOAPFaultSubCode)getFirstChildWithName(SOAP12Constants.QNAME_FAULT_SUBCODE);
}
Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java?rev=1598867&r1=1598866&r2=1598867&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11Factory.java Sat May 31 12:39:04 2014
@@ -147,24 +147,24 @@ public class SOAP11Factory extends DOMSO
public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent)
throws SOAPProcessingException {
- return new SOAP11FaultValueImpl(parent, this);
+ throw new UnsupportedOperationException();
}
//added
public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent)
throws SOAPProcessingException {
- return new SOAP11FaultValueImpl(parent, this);
+ throw new UnsupportedOperationException();
}
//changed
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent)
throws SOAPProcessingException {
- return new SOAP11FaultSubCodeImpl(parent, this);
+ throw new UnsupportedOperationException();
}
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent)
throws SOAPProcessingException {
- return new SOAP11FaultSubCodeImpl(parent, this);
+ throw new UnsupportedOperationException();
}
public SOAPFaultReason createSOAPFaultReason(SOAPFault parent)
@@ -183,7 +183,7 @@ public class SOAP11Factory extends DOMSO
public SOAPFaultText createSOAPFaultText(SOAPFaultReason parent)
throws SOAPProcessingException {
- return new SOAP11FaultTextImpl(parent, this);
+ throw new UnsupportedOperationException();
}
public SOAPFaultNode createSOAPFaultNode(SOAPFault parent)
Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java?rev=1598867&r1=1598866&r2=1598867&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java Sat May 31 12:39:04 2014
@@ -49,21 +49,11 @@ public class SOAP11FaultCodeImpl extends
public void setSubCode(SOAPFaultSubCode subCode) throws SOAPProcessingException {
- if (!(subCode instanceof SOAP11FaultSubCodeImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Sub " +
- "Code. But received some other implementation");
- }
- super.setSubCode(subCode);
+ throw new UnsupportedOperationException();
}
public void setValue(SOAPFaultValue value) throws SOAPProcessingException {
- if (!(value instanceof SOAP11FaultValueImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Value. " +
- "But received some other implementation");
- }
- super.setValue(value);
+ throw new UnsupportedOperationException();
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java?rev=1598867&r1=1598866&r2=1598867&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java Sat May 31 12:39:04 2014
@@ -25,6 +25,7 @@ import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.OMXMLParserWrapper;
import org.apache.axiom.om.impl.dom.ParentNode;
+import org.apache.axiom.om.util.ElementHelper;
import org.apache.axiom.soap.SOAP12Constants;
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
@@ -55,7 +56,7 @@ public class SOAP12FaultCodeImpl extends
"Expecting SOAP 1.2 implementation of SOAP Fault " +
"Sub Code. But received some other implementation");
}
- super.setSubCode(subCode);
+ ElementHelper.setNewElement(this, getSubCode(), subCode);
}
public void setValue(SOAPFaultValue value) throws SOAPProcessingException {
@@ -64,7 +65,7 @@ public class SOAP12FaultCodeImpl extends
"Expecting SOAP 1.2 implementation of SOAP Fault Value. " +
"But received some other implementation");
}
- super.setValue(value);
+ ElementHelper.setNewElement(this, value, value);
}
// TODO: For compatibility with Axiom 1.2.x; remove in Axiom 1.3
Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeImpl.java?rev=1598867&r1=1598866&r2=1598867&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeImpl.java Sat May 31 12:39:04 2014
@@ -24,12 +24,9 @@ import org.apache.axiom.om.OMContainer;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.OMXMLParserWrapper;
-import org.apache.axiom.om.util.ElementHelper;
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPFaultCode;
-import org.apache.axiom.soap.SOAPFaultSubCode;
-import org.apache.axiom.soap.SOAPFaultValue;
import org.apache.axiom.soap.SOAPProcessingException;
public abstract class SOAPFaultCodeImpl extends SOAPElement implements SOAPFaultCode {
@@ -69,14 +66,6 @@ public abstract class SOAPFaultCodeImpl
extractNamespaceFromParent, factory);
}
- public void setValue(SOAPFaultValue value) throws SOAPProcessingException {
- ElementHelper.setNewElement(this, value, value);
- }
-
- public void setSubCode(SOAPFaultSubCode value) throws SOAPProcessingException {
- ElementHelper.setNewElement(this, getSubCode(), value);
- }
-
protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
return ((SOAPFactory)factory).createSOAPFaultCode((SOAPFault)targetParent);
}
Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java?rev=1598867&r1=1598866&r2=1598867&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11Factory.java Sat May 31 12:39:04 2014
@@ -184,32 +184,32 @@ public class SOAP11Factory extends OMLin
public SOAPFaultValue createSOAPFaultValue(SOAPFaultCode parent)
throws SOAPProcessingException {
- return new SOAP11FaultValueImpl(parent, this);
+ throw new UnsupportedOperationException();
}
public SOAPFaultValue createSOAPFaultValue() throws SOAPProcessingException {
- return new SOAP11FaultValueImpl(this);
+ throw new UnsupportedOperationException();
}
//added
public SOAPFaultValue createSOAPFaultValue(SOAPFaultSubCode parent)
throws SOAPProcessingException {
- return new SOAP11FaultValueImpl(parent, this);
+ throw new UnsupportedOperationException();
}
//changed
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultCode parent)
throws SOAPProcessingException {
- return new SOAP11FaultSubCodeImpl(parent, this);
+ throw new UnsupportedOperationException();
}
public SOAPFaultSubCode createSOAPFaultSubCode() throws SOAPProcessingException {
- return new SOAP11FaultSubCodeImpl(this);
+ throw new UnsupportedOperationException();
}
public SOAPFaultSubCode createSOAPFaultSubCode(SOAPFaultSubCode parent)
throws SOAPProcessingException {
- return new SOAP11FaultSubCodeImpl(parent, this);
+ throw new UnsupportedOperationException();
}
public SOAPFaultReason createSOAPFaultReason(SOAPFault parent)
Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java?rev=1598867&r1=1598866&r2=1598867&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java Sat May 31 12:39:04 2014
@@ -48,19 +48,11 @@ public class SOAP11FaultCodeImpl extends
public void setSubCode(SOAPFaultSubCode subCode) throws SOAPProcessingException {
- if (!(subCode instanceof SOAP11FaultSubCodeImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP11FaultSubCodeImpl, got " + subCode.getClass());
- }
- super.setSubCode(subCode);
+ throw new UnsupportedOperationException();
}
public void setValue(SOAPFaultValue value) throws SOAPProcessingException {
- if (!(value instanceof SOAP11FaultValueImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP11FaultValueImpl, got " + value.getClass());
- }
- super.setValue(value);
+ throw new UnsupportedOperationException();
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java?rev=1598867&r1=1598866&r2=1598867&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java Sat May 31 12:39:04 2014
@@ -21,6 +21,7 @@ package org.apache.axiom.soap.impl.llom.
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMXMLParserWrapper;
+import org.apache.axiom.om.util.ElementHelper;
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPFaultSubCode;
@@ -58,7 +59,7 @@ public class SOAP12FaultCodeImpl extends
throw new SOAPProcessingException(
"Expecting SOAP12FaultSubCodeImpl, got " + subCode.getClass());
}
- super.setSubCode(subCode);
+ ElementHelper.setNewElement(this, getSubCode(), subCode);
}
public void setValue(SOAPFaultValue value) throws SOAPProcessingException {
@@ -66,7 +67,7 @@ public class SOAP12FaultCodeImpl extends
throw new SOAPProcessingException(
"Expecting SOAP12FaultValueImpl, got " + value.getClass());
}
- super.setValue(value);
+ ElementHelper.setNewElement(this, value, value);
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
Modified: webservices/axiom/trunk/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTestBase.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTestBase.java?rev=1598867&r1=1598866&r2=1598867&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTestBase.java (original)
+++ webservices/axiom/trunk/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultTextTestBase.java Sat May 31 12:39:04 2014
@@ -22,7 +22,6 @@ package org.apache.axiom.soap;
import org.apache.axiom.om.OMMetaFactory;
public class SOAPFaultTextTestBase extends SOAPFaultReasonTestCase {
- protected SOAPFaultText soap11FaultText;
protected SOAPFaultText soap12FaultText;
protected String soap11FaultTextWithParser;
protected SOAPFaultText soap12FaultTextWithParser;
@@ -33,42 +32,11 @@ public class SOAPFaultTextTestBase exten
protected void setUp() throws Exception {
super.setUp();
- soap11FaultText = soap11Factory.createSOAPFaultText(soap11FaultReason);
soap12FaultText = soap12Factory.createSOAPFaultText(soap12FaultReason);
soap11FaultTextWithParser = soap11FaultReasonWithParser.getText();
soap12FaultTextWithParser = soap12FaultReasonWithParser.getFirstSOAPText();
}
- public void testSOAP11GetLang() {
-
-
- assertNull(
- "SOAP 1.1 Fault Text Test : - After creating SOAPFaultText, it has a Lnag attribute",
- soap11FaultText.getLang());
-
- soap11FaultText.setLang("en");
- assertEquals(
- "SOAP 1.1 Fault Text Test : - After calling setLang method, Lang attribute value mismatch",
- "en", soap11FaultText.getLang());
- }
-
- public void testSOAP11SetText() {
- soap11FaultText.setText("This is only a test");
- assertEquals(
- "SOAP 1.1 Fault Text Test : - After calling setText method, getText method return incorrect string",
- "This is only a test", soap11FaultText.getText());
- }
-
- public void testSOAP11GetText() {
- assertEquals(
- "SOAP 1.1 Fault Text Test : - After creating SOAPFaultText, it has a text",
- "", soap11FaultText.getText());
- soap11FaultText.setText("This is only a test");
- assertEquals(
- "SOAP 1.1 Fault Text Test : - After calling setText method, getText method return incorrect string",
- "This is only a test", soap11FaultText.getText());
- }
-
public void testSOAP12GetLang() {
assertNull(
Modified: webservices/axiom/trunk/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTestBase.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTestBase.java?rev=1598867&r1=1598866&r2=1598867&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTestBase.java (original)
+++ webservices/axiom/trunk/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPFaultValueTestBase.java Sat May 31 12:39:04 2014
@@ -33,22 +33,6 @@ public class SOAPFaultValueTestBase exte
soap12Factory.createSOAPFaultValue(soap12FaultSubCodeInCode);
}
- //SOAP 1.1 Fault Value Test (Programaticaly Created)
- public void testSOAP11setText() {
- soap11FaultValue.setText("This is only Test");
- assertEquals("SOAP 1.1 Fault Value Test : - value text mismatch",
- "This is only Test", soap11FaultValue.getText());
- }
-
- public void testSOAP11GetText() {
- assertEquals(
- "SOAP 1.1 Fault Value Test : - After creating Fault Value, it has a text",
- "", soap11FaultValue.getText());
- soap11FaultValue.setText("This is only Test");
- assertEquals("SOAP 1.1 Fault Value Test : - value text mismatch",
- "This is only Test", soap11FaultValue.getText());
- }
-
//SOAP 1.2 Fault Value(In Fault Code) Test (Programaticaly Created)
public void testSOAP12setTextInFaultCode() {
soap12FaultValueInFaultCode.setText("This is only Test");