You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/02/05 14:34:23 UTC

svn commit: r503674 - in /webservices/axis2/trunk/java/modules/saaj: pom.xml test/org/apache/axis2/saaj/SOAPMessageTest.java

Author: dims
Date: Mon Feb  5 05:34:22 2007
New Revision: 503674

URL: http://svn.apache.org/viewvc?view=rev&rev=503674
Log:
get test working with m2

Modified:
    webservices/axis2/trunk/java/modules/saaj/pom.xml
    webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPMessageTest.java

Modified: webservices/axis2/trunk/java/modules/saaj/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj/pom.xml?view=diff&rev=503674&r1=503673&r2=503674
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/pom.xml (original)
+++ webservices/axis2/trunk/java/modules/saaj/pom.xml Mon Feb  5 05:34:22 2007
@@ -57,9 +57,18 @@
         <testResources>
         	<testResource>
         		<directory>test-resources</directory>
-        		<includes><include>axis2.xml</include></includes>
+        		<includes>
+					<include>axis2.xml</include>
+				</includes>
         		<targetPath>../test-resources/saaj-repo</targetPath>
         	</testResource>
+		  <testResource>
+			<targetPath>../test-resources</targetPath>
+			<directory>test-resources</directory>
+			<includes>
+			  <include>**/*.xml</include>
+			</includes>
+		  </testResource>
         </testResources>
         <plugins>
 	      <plugin>

Modified: webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPMessageTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPMessageTest.java?view=diff&rev=503674&r1=503673&r2=503674
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPMessageTest.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SOAPMessageTest.java Mon Feb  5 05:34:22 2007
@@ -92,15 +92,15 @@
 			SOAPFault sf = body.addFault();
 
 
-			InputStream in1 = new FileInputStream(new File(System.getProperty("basedir",".") + "/test-resources" + File.separator + "attach.xml"));
+			InputStream in1 = new FileInputStream(new File(System.getProperty("basedir",".") + "/target/test-resources" + File.separator + "attach.xml"));
 			ap1 = msg.createAttachmentPart(in1, "text/xml");
 			msg.addAttachmentPart(ap1);
 
-			InputStream in2 = new FileInputStream(new File(System.getProperty("basedir",".") + "/test-resources" + File.separator + "axis2.xml"));
+			InputStream in2 = new FileInputStream(new File(System.getProperty("basedir",".") + "/target/test-resources" + File.separator + "axis2.xml"));
 			ap2 = msg.createAttachmentPart(in2, "text/xml");
 			msg.addAttachmentPart(ap2);
 
-			InputStream in3 = new FileInputStream(new File(System.getProperty("basedir",".") + "/test-resources" + File.separator + "axis2.xml"));
+			InputStream in3 = new FileInputStream(new File(System.getProperty("basedir",".") + "/target/test-resources" + File.separator + "axis2.xml"));
 			ap3 = msg.createAttachmentPart(in3, "text/plain");
 			msg.addAttachmentPart(ap3);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org