Author: jim.ma
Date: 2010-12-29 01:40:30 -0500 (Wed, 29 Dec 2010)
New Revision: 13533
Modified:
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerTestCase.java
Log:
[JBPAPP-5220]:Added test case
Modified:
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java
===================================================================
---
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java 2010-12-29
06:39:32 UTC (rev 13532)
+++
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerPlugin.java 2010-12-29
06:40:30 UTC (rev 13533)
@@ -154,7 +154,24 @@
File sei = new File(workDirectory,
"wsconsumeSource/java/org/jboss/test/ws/tools/testSourceDirectory/EndpointInterface.java");
assertTrue("Source directory switch ignored", sei.exists());
}
+
+ public void testNocompileNoKeep() throws Exception
+ {
+ File sourceDir = new File(workDirectory,
"wsconsumeNoCPNOKeepsource/java/");
+ File outputDir = new File(workDirectory,
"wsconsumeNoCPNOKeepOutput/java/");
+
consumer.setTargetPackage("org.jboss.test.ws.tools.testSourceDirectory");
+ consumer.setSourceDirectory(sourceDir);
+ consumer.setOutputDirectory(outputDir);
+
consumer.consume(getResourceFile("jaxws/smoke/tools/wsdl/TestService.wsdl").getCanonicalPath());
+
+ File sei = new File(workDirectory,
"wsconsumeNoCPNOKeepOutput/java/org/jboss/test/ws/tools/testSourceDirectory/EndpointInterface.java");
+ assertTrue("Expected sei not generated in the expected directory " +
outputDir.getPath() , sei.exists());
+
+ File notExistSei = new File(workDirectory,
"wsconsumeNoCPNOKeepsource/java/org/jboss/test/ws/tools/testSourceDirectory/EndpointInterface.java");
+ assertFalse("Directory " + sourceDir.getPath() + " is expected to
empty", notExistSei.exists());
+ }
+
/**
* Enables/Disables Java source generation.
*
Modified:
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerTestCase.java
===================================================================
---
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerTestCase.java 2010-12-29
06:39:32 UTC (rev 13532)
+++
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerTestCase.java 2010-12-29
06:40:30 UTC (rev 13533)
@@ -89,6 +89,16 @@
{
dispatch("testSourceDirectory");
}
+
+ /**
+ *JBWS-3193
+ * If there are "-n" and "-s" flag, without "-k", the
generated
+ * artifacts should be placed in output directory
+ */
+ public void testNocompileNoKeep() throws Exception
+ {
+ dispatch("testNocompileNoKeep");
+ }
/**
* Enables/Disables Java source generation.
Show replies by date