Author: veithen
Date: Thu Jul 21 11:08:06 2011
New Revision: 1149117
URL: http://svn.apache.org/viewvc?rev=1149117&view=rev
Log:
AXIOM-311: Refactored OMFactoryTestBase.
Added:
webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/factory/TestCreateOMElementWithNullURIAndPrefix.java
- copied, changed from r1144617,
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/OMFactoryTestBase.java
Removed:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/OMFactoryTestBase.java
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/test/java/org/apache/axiom/om/impl/dom/factory/OMFactoryTest.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/test/java/org/apache/axiom/om/impl/llom/factory/OMFactoryTest.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/OMTestSuiteBuilder.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/OMTestSuiteBuilder.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/OMTestSuiteBuilder.java?rev=1149117&r1=1149116&r2=1149117&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/OMTestSuiteBuilder.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/OMTestSuiteBuilder.java
Thu Jul 21 11:08:06 2011
@@ -163,6 +163,7 @@ public class OMTestSuiteBuilder extends
addTest(new
org.apache.axiom.ts.om.factory.TestCreateOMElementWithNonDefaultNamespace(metaFactory,
creator));
addTest(new
org.apache.axiom.ts.om.factory.TestCreateOMElementWithoutNamespace(metaFactory,
creator));
}
+ addTest(new
org.apache.axiom.ts.om.factory.TestCreateOMElementWithNullURIAndPrefix(metaFactory));
addTest(new
org.apache.axiom.ts.om.factory.TestCreateOMNamespace(metaFactory));
addTest(new
org.apache.axiom.ts.om.factory.TestCreateOMNamespaceWithNullURI(metaFactory));
addTest(new
org.apache.axiom.ts.om.factory.TestCreateOMText(metaFactory));
Copied:
webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/factory/TestCreateOMElementWithNullURIAndPrefix.java
(from r1144617,
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/OMFactoryTestBase.java)
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/factory/TestCreateOMElementWithNullURIAndPrefix.java?p2=webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/factory/TestCreateOMElementWithNullURIAndPrefix.java&p1=webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/OMFactoryTestBase.java&r1=1144617&r2=1149117&rev=1149117&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/OMFactoryTestBase.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/factory/TestCreateOMElementWithNullURIAndPrefix.java
Thu Jul 21 11:08:06 2011
@@ -16,18 +16,19 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.axiom.om;
+package org.apache.axiom.ts.om.factory;
-public class OMFactoryTestBase extends AbstractTestCase {
- protected final OMMetaFactory omMetaFactory;
+import org.apache.axiom.om.OMMetaFactory;
+import org.apache.axiom.ts.AxiomTestCase;
- public OMFactoryTestBase(OMMetaFactory omMetaFactory) {
- this.omMetaFactory = omMetaFactory;
+public class TestCreateOMElementWithNullURIAndPrefix extends AxiomTestCase {
+ public TestCreateOMElementWithNullURIAndPrefix(OMMetaFactory metaFactory) {
+ super(metaFactory);
}
- public void testCreateOMElementWithNullNamespaceURIAndPrefix() {
+ protected void runTest() {
try {
- omMetaFactory.getOMFactory().createOMElement("test", (String)null,
(String)null);
+ metaFactory.getOMFactory().createOMElement("test", (String)null,
(String)null);
fail("Expected IllegalArgumentException");
} catch (IllegalArgumentException ex) {
// Expected