axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r291086 - in /webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om: AbstractTestCase.java impl/llom/OMOutputTest.java
Date Fri, 23 Sep 2005 07:04:51 GMT
Author: dims
Date: Fri Sep 23 00:04:49 2005
New Revision: 291086

URL: http://svn.apache.org/viewcvs?rev=291086&view=rev
Log:
generate temporary test files only under target

Modified:
    webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/AbstractTestCase.java
    webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/OMOutputTest.java

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/AbstractTestCase.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/AbstractTestCase.java?rev=291086&r1=291085&r2=291086&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/AbstractTestCase.java
(original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/AbstractTestCase.java
Fri Sep 23 00:04:49 2005
@@ -59,5 +59,13 @@
     public File getTestResourceFile(String relativePath) {
         return new File(testResourceDir, relativePath);
     }
+
+    public File getTempOutputFile(String filename) {
+        File f = new File(tempDir);
+        if(!f.exists()) {
+            f.mkdirs();
+        }
+        return new File(f, filename);
+    }
 }
 

Modified: webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/OMOutputTest.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/OMOutputTest.java?rev=291086&r1=291085&r2=291086&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/OMOutputTest.java
(original)
+++ webservices/axis2/trunk/java/modules/xml/test/org/apache/axis2/om/impl/llom/OMOutputTest.java
Fri Sep 23 00:04:49 2005
@@ -52,10 +52,10 @@
         Object object;
         DataHandler dataHandler;
 
-        outFileName = "mtom/OMSerializeMTOMOut.txt";
-        outBase64FileName = "mtom/OMSerializeBase64Out.xml";
-        outMTOMFile = getTestResourceFile(outFileName);
-        outBase64File = getTestResourceFile(outBase64FileName);
+        outFileName = "OMSerializeMTOMOut.txt";
+        outBase64FileName = "OMSerializeBase64Out.xml";
+        outMTOMFile = getTempOutputFile(outFileName);
+        outBase64File = getTempOutputFile(outBase64FileName);
 
         OMNamespaceImpl soap = new OMNamespaceImpl(
                 "http://schemas.xmlsoap.org/soap/envelope/", "soap");



Mime
View raw message