Author: veithen
Date: Wed Mar  4 09:07:16 2009
New Revision: 749946

URL: http://svn.apache.org/viewvc?rev=749946&view=rev
Log:
WSCOMMONS-419: Make sure that SOAPEnvelopeTestBase uses the right factories for 
the Axiom implementation under test.

Modified:
    
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTestBase.java

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTestBase.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTestBase.java?rev=749946&r1=749945&r2=749946&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTestBase.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPEnvelopeTestBase.java
 Wed Mar  4 09:07:16 2009
@@ -19,10 +19,8 @@
 
 package org.apache.axiom.soap;
 
-import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMMetaFactory;
 
-
 public class SOAPEnvelopeTestBase extends SOAPTestCase {
     protected SOAPEnvelope soap11Envelope;
     protected SOAPEnvelope soap12Envelope;
@@ -110,7 +108,7 @@
     }
 
     public void testRandomSOAPHeader() {
-        SOAPFactory soapFac = OMAbstractFactory.getSOAP12Factory();
+        SOAPFactory soapFac = omMetaFactory.getSOAP12Factory();
         SOAPEnvelope defaultEnvelope = soapFac.getDefaultEnvelope();
         defaultEnvelope.build();
         defaultEnvelope.getHeader().detach();
@@ -121,8 +119,7 @@
 
     // Make sure order of header/body creation doesn't matter
     public void testBodyHeaderOrder() throws Exception {
-//        SOAPFactory soapFac = new 
org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory();
-        SOAPFactory soapFac = new 
org.apache.axiom.soap.impl.dom.soap11.SOAP11Factory();
+        SOAPFactory soapFac = omMetaFactory.getSOAP11Factory();
         SOAPEnvelope env = soapFac.createSOAPEnvelope();
         SOAPBody body = soapFac.createSOAPBody(env);
         SOAPHeader header = soapFac.createSOAPHeader(env);


Reply via email to