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 ri...@apache.org on 2002/08/04 00:35:15 UTC
cvs commit: xml-axis/java/test/functional TestAttachmentsSample.java
rineholt 2002/08/03 15:35:15
Modified: java/test/functional TestAttachmentsSample.java
Added: java/samples/attachments testrefundeploy.wsdd
Log:
Add TestRef to Fucntional test.
Revision Changes Path
1.1 xml-axis/java/samples/attachments/testrefundeploy.wsdd
Index: testrefundeploy.wsdd
===================================================================
<!-- This file can be used to deploy the echoAttachments sample -->
<!-- using this command: java org.apache.axis.client.AdminClient attachdeploy.wsdd -->
<undeployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" xmlns:ns1="urn:EchoAttachmentsService" >
<service name="urn:attachmentsTestRef" />
</undeployment>
1.9 +13 -4 xml-axis/java/test/functional/TestAttachmentsSample.java
Index: TestAttachmentsSample.java
===================================================================
RCS file: /home/cvs/xml-axis/java/test/functional/TestAttachmentsSample.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- TestAttachmentsSample.java 3 Jul 2002 18:47:08 -0000 1.8
+++ TestAttachmentsSample.java 3 Aug 2002 22:35:15 -0000 1.9
@@ -65,6 +65,7 @@
import org.apache.commons.logging.Log;
import samples.attachments.EchoAttachment;
+import samples.attachments.TestRef;
/** Test the attachments sample code.
@@ -78,8 +79,8 @@
}
public void doTestDeploy () throws Exception {
- String[] args = { "samples/attachments/attachdeploy.wsdd" };
- AdminClient.main(args);
+ AdminClient.main(new String[]{"samples/attachments/attachdeploy.wsdd" });
+ AdminClient.main(new String[]{"samples/attachments/testref.wsdd"});
}
public void doTestAttachments1() throws Exception {
@@ -105,10 +106,16 @@
boolean res = new EchoAttachment(opts).echoDir(true, "samples/attachments");
assertEquals("Didn't process attachments correctly", res, true);
}
+
+ public void doTestAttachmentsTestRef() throws Exception {
+ Options opts = new Options( new String[]{});
+ boolean res = new TestRef(opts).testit();
+ assertEquals("Didn't process attachments correctly", res, true);
+ }
public void doTestUndeploy () throws Exception {
- String[] args = { "samples/attachments/attachundeploy.wsdd" };
- AdminClient.main(args);
+ AdminClient.main(new String[]{ "samples/attachments/attachundeploy.wsdd" });
+ AdminClient.main(new String[]{ "samples/attachments/testrefundeploy.wsdd" });
}
public static void main(String args[]) throws Exception {
@@ -128,6 +135,8 @@
doTestAttachmentsD1();
log.info("Testing multiple file DIME attachments...");
doTestAttachmentsD2();
+ log.info("Testing attachment references...");
+ doTestAttachmentsTestRef();
log.info("Testing undeployment...");
doTestUndeploy();
log.info("Test complete.");