ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1196335 - in /webservices/commons/trunk/modules/axiom/modules: axiom-common-impl-testsuite/src/main/java/org/apache/axiom/ts/om/navigator/ axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/ axiom-testutils/src/main/java/org/apache/axi...
Date Tue, 01 Nov 2011 22:33:35 GMT
Author: veithen
Date: Tue Nov  1 22:33:34 2011
New Revision: 1196335

URL: http://svn.apache.org/viewvc?rev=1196335&view=rev
Log:
Make the TestCaseEx#runTest method abstract to force subclasses to override it.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-common-impl-testsuite/src/main/java/org/apache/axiom/ts/om/navigator/OMNavigatorTestCase.java
    webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestCase.java
    webservices/commons/trunk/modules/axiom/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/suite/TestCaseEx.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-common-impl-testsuite/src/main/java/org/apache/axiom/ts/om/navigator/OMNavigatorTestCase.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-common-impl-testsuite/src/main/java/org/apache/axiom/ts/om/navigator/OMNavigatorTestCase.java?rev=1196335&r1=1196334&r2=1196335&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-common-impl-testsuite/src/main/java/org/apache/axiom/ts/om/navigator/OMNavigatorTestCase.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-common-impl-testsuite/src/main/java/org/apache/axiom/ts/om/navigator/OMNavigatorTestCase.java
Tue Nov  1 22:33:34 2011
@@ -28,7 +28,7 @@ import org.apache.axiom.soap.SOAPEnvelop
 import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder;
 import org.apache.axiom.ts.CommonImplTestCase;
 
-public class OMNavigatorTestCase extends CommonImplTestCase {
+public abstract class OMNavigatorTestCase extends CommonImplTestCase {
     protected SOAPEnvelope envelope;
     protected StAXSOAPModelBuilder builder;
 

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestCase.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestCase.java?rev=1196335&r1=1196334&r2=1196335&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestCase.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soap/SOAPTestCase.java
Tue Nov  1 22:33:34 2011
@@ -31,7 +31,7 @@ import org.apache.axiom.soap.SOAPHeaderB
 import org.apache.axiom.ts.AxiomTestCase;
 import org.xml.sax.InputSource;
 
-public class SOAPTestCase extends AxiomTestCase {
+public abstract class SOAPTestCase extends AxiomTestCase {
     protected static final String MESSAGE = "message.xml";
     protected static final String MESSAGE_WITHOUT_HEADER = "message_without_header.xml";
     

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/suite/TestCaseEx.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/suite/TestCaseEx.java?rev=1196335&r1=1196334&r2=1196335&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/suite/TestCaseEx.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/suite/TestCaseEx.java
Tue Nov  1 22:33:34 2011
@@ -38,4 +38,7 @@ public abstract class TestCaseEx extends
     public final Dictionary getTestProperties() {
         return properties;
     }
+
+    // Force subclasses to override the runTest method:
+    protected abstract void runTest() throws Throwable;
 }



Mime
View raw message