ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1598844 - in /webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts: soap/ soap/headerblock/ soap11/headerblock/
Date Sat, 31 May 2014 09:22:32 GMT
Author: veithen
Date: Sat May 31 09:22:31 2014
New Revision: 1598844

URL: http://svn.apache.org/r1598844
Log:
Eliminate the remaining TestGetRelay and TestSetRelay test cases.

Added:
    webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/headerblock/TestGetBooleanAttributeUnspported.java
  (contents, props changed)
      - copied, changed from r1598843, webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap11/headerblock/TestGetRelay.java
    webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/headerblock/TestSetBooleanAttributeUnsupported.java
  (contents, props changed)
      - copied, changed from r1598843, webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap11/headerblock/TestSetRelay.java
Removed:
    webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap11/headerblock/TestGetRelay.java
    webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap11/headerblock/TestSetRelay.java
Modified:
    webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestSuiteBuilder.java

Modified: webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestSuiteBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestSuiteBuilder.java?rev=1598844&r1=1598843&r2=1598844&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestSuiteBuilder.java
(original)
+++ webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestSuiteBuilder.java
Sat May 31 09:22:31 2014
@@ -228,6 +228,9 @@ public class SOAPTestSuiteBuilder extend
                 addTest(new org.apache.axiom.ts.soap.headerblock.TestGetBooleanAttributeInvalid(metaFactory,
spec, attribute, "TRUE"));
                 addTest(new org.apache.axiom.ts.soap.headerblock.TestSetBooleanAttribute(metaFactory,
spec, attribute, true));
                 addTest(new org.apache.axiom.ts.soap.headerblock.TestSetBooleanAttribute(metaFactory,
spec, attribute, false));
+            } else {
+                addTest(new org.apache.axiom.ts.soap.headerblock.TestGetBooleanAttributeUnspported(metaFactory,
spec, attribute));
+                addTest(new org.apache.axiom.ts.soap.headerblock.TestSetBooleanAttributeUnsupported(metaFactory,
spec, attribute));
             }
         }
         if (supportsOMSourcedElement) {
@@ -297,10 +300,8 @@ public class SOAPTestSuiteBuilder extend
         addTest(new org.apache.axiom.ts.soap11.header.TestGetHeaderBlocksWithNSURIWithParser(metaFactory));
         addTest(new org.apache.axiom.ts.soap11.header.TestGetHeadersToProcessWithParser(metaFactory));
         addTest(new org.apache.axiom.ts.soap11.headerblock.TestGetMustUnderstandWithParser(metaFactory));
-        addTest(new org.apache.axiom.ts.soap11.headerblock.TestGetRelay(metaFactory));
         addTest(new org.apache.axiom.ts.soap11.headerblock.TestGetRoleWithParser(metaFactory));
         addTest(new org.apache.axiom.ts.soap11.headerblock.TestSetMustUnderstandStringTrueFalse(metaFactory));
-        addTest(new org.apache.axiom.ts.soap11.headerblock.TestSetRelay(metaFactory));
         if (supportsOMSourcedElement) {
             addTest(new org.apache.axiom.ts.soap11.misc.TestElementPullStreamAndOMExpansion(metaFactory));
             addTest(new org.apache.axiom.ts.soap11.misc.TestElementPullStreamAndOMExpansion2(metaFactory));

Copied: webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/headerblock/TestGetBooleanAttributeUnspported.java
(from r1598843, webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap11/headerblock/TestGetRelay.java)
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/headerblock/TestGetBooleanAttributeUnspported.java?p2=webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/headerblock/TestGetBooleanAttributeUnspported.java&p1=webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap11/headerblock/TestGetRelay.java&r1=1598843&r2=1598844&rev=1598844&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap11/headerblock/TestGetRelay.java
(original)
+++ webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/headerblock/TestGetBooleanAttributeUnspported.java
Sat May 31 09:22:31 2014
@@ -16,30 +16,30 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.axiom.ts.soap11.headerblock;
+package org.apache.axiom.ts.soap.headerblock;
 
 import javax.xml.namespace.QName;
 
 import org.apache.axiom.om.OMMetaFactory;
 import org.apache.axiom.soap.SOAPHeader;
 import org.apache.axiom.soap.SOAPHeaderBlock;
+import org.apache.axiom.ts.soap.BooleanAttribute;
 import org.apache.axiom.ts.soap.SOAPSpec;
-import org.apache.axiom.ts.soap.SOAPTestCase;
 
 /**
  * Tests that {@link SOAPHeaderBlock#getRelay()} throws {@link UnsupportedOperationException}
for
  * SOAP 1.1 messages.
  */
-public class TestGetRelay extends SOAPTestCase {
-    public TestGetRelay(OMMetaFactory metaFactory) {
-        super(metaFactory, SOAPSpec.SOAP11);
+public class TestGetBooleanAttributeUnspported extends BooleanAttributeTestCase {
+    public TestGetBooleanAttributeUnspported(OMMetaFactory metaFactory, SOAPSpec spec, BooleanAttribute
attribute) {
+        super(metaFactory, spec, attribute);
     }
 
     protected void runTest() throws Throwable {
         SOAPHeader header = soapFactory.getDefaultEnvelope().getOrCreateHeader();
         SOAPHeaderBlock headerBlock = header.addHeaderBlock(new QName("urn:test", "test",
"p"));
         try {
-            headerBlock.getRelay();
+            attribute.getValue(headerBlock);
             fail("Expected UnsupportedOperationException");
         } catch (UnsupportedOperationException ex) {
             // Expected

Propchange: webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/headerblock/TestGetBooleanAttributeUnspported.java
------------------------------------------------------------------------------
    svn:eol-style = native

Copied: webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/headerblock/TestSetBooleanAttributeUnsupported.java
(from r1598843, webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap11/headerblock/TestSetRelay.java)
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/headerblock/TestSetBooleanAttributeUnsupported.java?p2=webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/headerblock/TestSetBooleanAttributeUnsupported.java&p1=webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap11/headerblock/TestSetRelay.java&r1=1598843&r2=1598844&rev=1598844&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap11/headerblock/TestSetRelay.java
(original)
+++ webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/headerblock/TestSetBooleanAttributeUnsupported.java
Sat May 31 09:22:31 2014
@@ -16,30 +16,30 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.axiom.ts.soap11.headerblock;
+package org.apache.axiom.ts.soap.headerblock;
 
 import javax.xml.namespace.QName;
 
 import org.apache.axiom.om.OMMetaFactory;
 import org.apache.axiom.soap.SOAPHeader;
 import org.apache.axiom.soap.SOAPHeaderBlock;
+import org.apache.axiom.ts.soap.BooleanAttribute;
 import org.apache.axiom.ts.soap.SOAPSpec;
-import org.apache.axiom.ts.soap.SOAPTestCase;
 
 /**
  * Tests that {@link SOAPHeaderBlock#setRelay()} throws {@link UnsupportedOperationException}
for
  * SOAP 1.1 messages.
  */
-public class TestSetRelay extends SOAPTestCase {
-    public TestSetRelay(OMMetaFactory metaFactory) {
-        super(metaFactory, SOAPSpec.SOAP11);
+public class TestSetBooleanAttributeUnsupported extends BooleanAttributeTestCase {
+    public TestSetBooleanAttributeUnsupported(OMMetaFactory metaFactory, SOAPSpec spec, BooleanAttribute
attribute) {
+        super(metaFactory, spec, attribute);
     }
 
     protected void runTest() throws Throwable {
         SOAPHeader header = soapFactory.getDefaultEnvelope().getOrCreateHeader();
         SOAPHeaderBlock headerBlock = header.addHeaderBlock(new QName("urn:test", "test",
"p"));
         try {
-            headerBlock.setRelay(true);
+            attribute.setValue(headerBlock, true);
             fail("Expected UnsupportedOperationException");
         } catch (UnsupportedOperationException ex) {
             // Expected

Propchange: webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/headerblock/TestSetBooleanAttributeUnsupported.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message