Author: Grid.Qian
Date: 2010-04-07 02:38:22 -0400 (Wed, 07 Apr 2010)
New Revision: 21296
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.classpath
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.project
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.settings/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.settings/org.eclipse.jdt.core.prefs
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/META-INF/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/META-INF/MANIFEST.MF
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/bin/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/build.properties
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/plugin.properties
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.classpath
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.project
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/.jsdtscope
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.jdt.core.prefs
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.jst.common.project.facet.core.prefs
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.common.component
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/WebContent/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/WebContent/META-INF/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/WebContent/META-INF/MANIFEST.MF
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/WebContent/WEB-INF/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/WebContent/WEB-INF/lib/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/WebContent/WEB-INF/web.xml
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/HelloWorld.class
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/HelloWorldService.class
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/ObjectFactory.class
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/SayHello.class
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/SayHello2.class
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/SayHello2Response.class
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/SayHelloResponse.class
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/clientsample/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/clientsample/ClientSample.class
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/package-info.class
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/HelloWorld.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/HelloWorldService.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/ObjectFactory.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHello.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHello2.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHello2Response.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHelloResponse.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/clientsample/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/clientsample/ClientSample.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/package-info.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.classpath
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.project
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.jdt.core.prefs
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.jst.common.project.facet.core.prefs
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.wst.common.component
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/WebContent/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/WebContent/META-INF/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/WebContent/META-INF/MANIFEST.MF
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/WebContent/WEB-INF/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/WebContent/WEB-INF/lib/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/WebContent/WEB-INF/web.xml
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/build/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/build/classes/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/hello_world.wsdl
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/src/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.classpath
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.project
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/org.eclipse.jst.common.project.facet.core.prefs
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/org.eclipse.wst.common.component
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/WebContent/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/WebContent/META-INF/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/WebContent/META-INF/MANIFEST.MF
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/WebContent/WEB-INF/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/WebContent/WEB-INF/lib/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/WebContent/WEB-INF/web.xml
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/build/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/build/classes/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/build/classes/org/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/build/classes/org/example/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/build/classes/org/example/www/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/build/classes/org/example/www/helloworld/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/build/classes/org/example/www/helloworld/HelloWorld.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/src/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/src/org/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/src/org/example/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/src/org/example/www/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/src/org/example/www/helloworld/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/src/org/example/www/helloworld/HelloWorld.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/Activator.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/JBossWSCreationCoreTests.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/AbstractJBossWSCommandTest.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/JBossWSClientCommandTest.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/JBossWSJavaFirstCommandTest.java
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/JBossWSTopDownCommandTest.java
Removed:
trunk/ws/tests/org.jboss.tools.ws.core.test/projects/
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/
Modified:
trunk/ws/tests/org.jboss.tools.ws.core.test/META-INF/MANIFEST.MF
trunk/ws/tests/org.jboss.tools.ws.core.test/build.properties
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/JBossWSCoreAllTests.java
Log:
JBIDE-6155: add a new test plugin
Modified: trunk/ws/tests/org.jboss.tools.ws.core.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.core.test/META-INF/MANIFEST.MF 2010-04-06 20:50:12
UTC (rev 21295)
+++ trunk/ws/tests/org.jboss.tools.ws.core.test/META-INF/MANIFEST.MF 2010-04-07 06:38:22
UTC (rev 21296)
@@ -34,8 +34,7 @@
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: ws-core-test.jar
Export-Package: org.jboss.tools.ws.core.test,
- org.jboss.tools.ws.core.test.classpath,
- org.jboss.tools.ws.core.test.command
+ org.jboss.tools.ws.core.test.classpath
Bundle-Vendor: %Bundle-Vendor.0
Bundle-Localization: plugin
Import-Package: org.eclipse.jdt.launching
Modified: trunk/ws/tests/org.jboss.tools.ws.core.test/build.properties
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.core.test/build.properties 2010-04-06 20:50:12 UTC
(rev 21295)
+++ trunk/ws/tests/org.jboss.tools.ws.core.test/build.properties 2010-04-07 06:38:22 UTC
(rev 21296)
@@ -2,6 +2,4 @@
output.ws-core-test.jar = bin/
bin.includes = META-INF/,\
ws-core-test.jar,\
- projects/,\
plugin.properties
-source.ws-core-test.jar = src/
Modified:
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/JBossWSCoreAllTests.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/JBossWSCoreAllTests.java 2010-04-06
20:50:12 UTC (rev 21295)
+++
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/JBossWSCoreAllTests.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -16,19 +16,13 @@
import junit.framework.TestSuite;
import org.jboss.tools.ws.core.test.classpath.JBossWSRuntimeManagerTest;
-import org.jboss.tools.ws.core.test.command.JBossWSJavaFirstCommandTest;
-import org.jboss.tools.ws.core.test.command.JBossWSClientCommandTest;
-import org.jboss.tools.ws.core.test.command.JBossWSTopDownCommandTest;
public class JBossWSCoreAllTests extends TestCase {
- public static final String PLUGIN_ID = "org.jboss.tools.common.test";
+ public static final String PLUGIN_ID =
"org.jboss.tools.ws.creation.core.test";
public static Test suite ()
{
TestSuite suite = new TestSuite(JBossWSCoreAllTests.class.getName());
suite.addTestSuite(JBossWSRuntimeManagerTest.class);
- suite.addTestSuite(JBossWSJavaFirstCommandTest.class);
- suite.addTestSuite(JBossWSClientCommandTest.class);
- suite.addTestSuite(JBossWSTopDownCommandTest.class);
return suite;
}
}
\ No newline at end of file
Added: trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.classpath
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.classpath
(rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.classpath 2010-04-07 06:38:22
UTC (rev 21296)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.project
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.project
(rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.project 2010-04-07 06:38:22 UTC
(rev 21296)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.ws.creation.core.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/.settings/org.eclipse.jdt.core.prefs 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,8 @@
+#Tue Apr 06 17:31:09 CST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added: trunk/ws/tests/org.jboss.tools.ws.creation.core.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.creation.core.test/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.creation.core.test/META-INF/MANIFEST.MF 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,42 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name.0
+Bundle-SymbolicName: org.jboss.tools.ws.creation.core.test
+Bundle-Version: 1.0.0
+Bundle-Activator: org.jboss.tools.ws.creation.core.test.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.junit,
+ org.jboss.tools.tests,
+ org.jboss.tools.ws.core,
+ org.eclipse.core.resources,
+ org.eclipse.wst.common.project.facet.core,
+ org.eclipse.wst.common.frameworks,
+ org.eclipse.ui.ide,
+ org.jboss.tools.common.test,
+ org.jboss.tools.ws.creation.core,
+ org.eclipse.wst.command.env.ui,
+ org.eclipse.wst.ws,
+ org.jboss.tools.ws.creation.ui,
+ org.eclipse.jst.j2ee,
+ org.eclipse.jst.j2ee.core,
+ org.eclipse.emf.common,
+ org.eclipse.jem,
+ org.eclipse.emf.ecore,
+ org.eclipse.wst.server.core,
+ org.eclipse.debug.core,
+ org.jboss.tools.common,
+ org.jboss.ide.eclipse.as.core,
+ org.eclipse.jdt.core,
+ org.eclipse.ui.console,
+ org.eclipse.jface.text,
+ org.jboss.ide.eclipse.as.classpath.core
+Bundle-ActivationPolicy: lazy
+Bundle-ClassPath: ws-creation-core-test.jar
+Export-Package: org.jboss.tools.ws.creation.core.test,
+ org.jboss.tools.ws.creation.core.test.command
+Bundle-Vendor: %Bundle-Vendor.0
+Bundle-Localization: plugin
+Import-Package: org.eclipse.jdt.launching
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+
Added: trunk/ws/tests/org.jboss.tools.ws.creation.core.test/build.properties
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.creation.core.test/build.properties
(rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.creation.core.test/build.properties 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,6 @@
+source.ws-creation-core-test.jar = src/
+output.ws-creation-core-test.jar = bin/
+bin.includes = META-INF/,\
+ ws-creation-core-test.jar,\
+ projects/,\
+ plugin.properties
Added: trunk/ws/tests/org.jboss.tools.ws.creation.core.test/plugin.properties
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.creation.core.test/plugin.properties
(rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.creation.core.test/plugin.properties 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,3 @@
+#Properties file for org.jboss.tools.ws.creation.core.test
+Bundle-Vendor.0 = JBoss by Red Hat
+Bundle-Name.0 = WS Test Plug-in
\ No newline at end of file
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.classpath
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.classpath
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.classpath 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con"
path="JBossWS_Runtime/testjbosswsruntime"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Added: trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.project
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.project
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.project 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>ClientTest</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/.jsdtscope
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/.jsdtscope
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/.jsdtscope 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.wst.jsdt.launching.WebProject"/>
+ <classpathentry kind="con"
path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.jdt.core.prefs 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,12 @@
+#Wed Jun 25 17:14:18 CST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.jst.common.project.facet.core.prefs
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.jst.common.project.facet.core.prefs
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.jst.common.project.facet.core.prefs 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,3 @@
+#Wed Jun 25 17:15:07 CST 2008
+classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER\:\:org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType\:\:JAVA1.5/owners=jst.java\:5.0
+eclipse.preferences.version=1
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.common.component
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.common.component 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="ClientTest">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src"/>
+<property name="context-root" value="ClientTest"/>
+<property name="java-output-path"/>
+</wb-module>
+</project-modules>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.common.project.facet.core.xml 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="org.jboss.ide.eclipse.as.runtime.42"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <installed facet="jst.web" version="2.4"/>
+ <installed facet="jbossws.core" version="2.0"/>
+ <installed facet="jst.java" version="5.0"/>
+</faceted-project>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.jsdt.ui.superType.container
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.jsdt.ui.superType.container 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.jsdt.ui.superType.name
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/.settings/org.eclipse.wst.jsdt.ui.superType.name 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/WebContent/META-INF/MANIFEST.MF
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/WebContent/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/WebContent/META-INF/MANIFEST.MF 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/WebContent/WEB-INF/web.xml
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/WebContent/WEB-INF/web.xml
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/WebContent/WEB-INF/web.xml 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>
+ ClientTest</display-name>
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ <welcome-file>index.htm</welcome-file>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>default.html</welcome-file>
+ <welcome-file>default.htm</welcome-file>
+ <welcome-file>default.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/HelloWorld.class
===================================================================
(Binary files differ)
Property changes on:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/HelloWorld.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/HelloWorldService.class
===================================================================
(Binary files differ)
Property changes on:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/HelloWorldService.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/ObjectFactory.class
===================================================================
(Binary files differ)
Property changes on:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/ObjectFactory.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/SayHello.class
===================================================================
(Binary files differ)
Property changes on:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/SayHello.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/SayHello2.class
===================================================================
(Binary files differ)
Property changes on:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/SayHello2.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/SayHello2Response.class
===================================================================
(Binary files differ)
Property changes on:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/SayHello2Response.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/SayHelloResponse.class
===================================================================
(Binary files differ)
Property changes on:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/SayHelloResponse.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/clientsample/ClientSample.class
===================================================================
(Binary files differ)
Property changes on:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/clientsample/ClientSample.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/package-info.class
===================================================================
(Binary files differ)
Property changes on:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/build/classes/org/example/www/helloworld/package-info.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/HelloWorld.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/HelloWorld.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/HelloWorld.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,50 @@
+
+package org.example.www.helloworld;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "HelloWorld", targetNamespace =
"http://www.example.org/HelloWorld")
+public interface HelloWorld {
+
+
+ /**
+ *
+ * @param sayHelloRequest
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod(action = "http://www.example.org/HelloWorld/sayHello")
+ @WebResult(name = "sayHelloResponse", targetNamespace = "")
+ @RequestWrapper(localName = "sayHello", targetNamespace =
"http://www.example.org/HelloWorld", className =
"org.example.www.helloworld.SayHello")
+ @ResponseWrapper(localName = "sayHelloResponse", targetNamespace =
"http://www.example.org/HelloWorld", className =
"org.example.www.helloworld.SayHelloResponse")
+ public String sayHello(
+ @WebParam(name = "sayHelloRequest", targetNamespace = "")
+ String sayHelloRequest);
+
+ /**
+ *
+ * @param sayHelloRequest2
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod(action = "http://www.example.org/HelloWorld/sayHello2")
+ @WebResult(name = "sayHelloResponse2", targetNamespace = "")
+ @RequestWrapper(localName = "sayHello2", targetNamespace =
"http://www.example.org/HelloWorld", className =
"org.example.www.helloworld.SayHello2")
+ @ResponseWrapper(localName = "sayHello2Response", targetNamespace =
"http://www.example.org/HelloWorld", className =
"org.example.www.helloworld.SayHello2Response")
+ public String sayHello2(
+ @WebParam(name = "sayHelloRequest2", targetNamespace = "")
+ String sayHelloRequest2);
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/HelloWorldService.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/HelloWorldService.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/HelloWorldService.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,53 @@
+
+package org.example.www.helloworld;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.1-b03-
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "HelloWorldService", targetNamespace =
"http://www.example.org/HelloWorld", wsdlLocation =
"http://localhost:8080/JavaFirstTestProject/HelloWorld?wsdl")
+public class HelloWorldService
+ extends Service
+{
+
+ private final static URL HELLOWORLDSERVICE_WSDL_LOCATION;
+
+ static {
+ URL url = null;
+ try {
+ url = new
URL("http://localhost:8080/JavaFirstTestProject/HelloWorld?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ HELLOWORLDSERVICE_WSDL_LOCATION = url;
+ }
+
+ public HelloWorldService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public HelloWorldService() {
+ super(HELLOWORLDSERVICE_WSDL_LOCATION, new
QName("http://www.example.org/HelloWorld", "HelloWorldService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns HelloWorld
+ */
+ @WebEndpoint(name = "HelloWorldPort")
+ public HelloWorld getHelloWorldPort() {
+ return (HelloWorld)super.getPort(new
QName("http://www.example.org/HelloWorld", "HelloWorldPort"),
HelloWorld.class);
+ }
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/ObjectFactory.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/ObjectFactory.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/ObjectFactory.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,107 @@
+
+package org.example.www.helloworld;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.example.www.helloworld package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _SayHello2_QNAME = new
QName("http://www.example.org/HelloWorld", "sayHello2");
+ private final static QName _SayHello_QNAME = new
QName("http://www.example.org/HelloWorld", "sayHello");
+ private final static QName _SayHello2Response_QNAME = new
QName("http://www.example.org/HelloWorld", "sayHello2Response");
+ private final static QName _SayHelloResponse_QNAME = new
QName("http://www.example.org/HelloWorld", "sayHelloResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema
derived classes for package: org.example.www.helloworld
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link SayHello2Response }
+ *
+ */
+ public SayHello2Response createSayHello2Response() {
+ return new SayHello2Response();
+ }
+
+ /**
+ * Create an instance of {@link SayHello }
+ *
+ */
+ public SayHello createSayHello() {
+ return new SayHello();
+ }
+
+ /**
+ * Create an instance of {@link SayHelloResponse }
+ *
+ */
+ public SayHelloResponse createSayHelloResponse() {
+ return new SayHelloResponse();
+ }
+
+ /**
+ * Create an instance of {@link SayHello2 }
+ *
+ */
+ public SayHello2 createSayHello2() {
+ return new SayHello2();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link SayHello2 }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.example.org/HelloWorld", name =
"sayHello2")
+ public JAXBElement<SayHello2> createSayHello2(SayHello2 value) {
+ return new JAXBElement<SayHello2>(_SayHello2_QNAME, SayHello2 .class, null,
value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link SayHello }{@code
>}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.example.org/HelloWorld", name =
"sayHello")
+ public JAXBElement<SayHello> createSayHello(SayHello value) {
+ return new JAXBElement<SayHello>(_SayHello_QNAME, SayHello.class, null,
value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link SayHello2Response
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.example.org/HelloWorld", name =
"sayHello2Response")
+ public JAXBElement<SayHello2Response> createSayHello2Response(SayHello2Response
value) {
+ return new JAXBElement<SayHello2Response>(_SayHello2Response_QNAME,
SayHello2Response.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link SayHelloResponse
}{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.example.org/HelloWorld", name =
"sayHelloResponse")
+ public JAXBElement<SayHelloResponse> createSayHelloResponse(SayHelloResponse
value) {
+ return new JAXBElement<SayHelloResponse>(_SayHelloResponse_QNAME,
SayHelloResponse.class, null, value);
+ }
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHello.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHello.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHello.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,60 @@
+
+package org.example.www.helloworld;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for sayHello complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="sayHello">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="sayHelloRequest"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "sayHello", propOrder = {
+ "sayHelloRequest"
+})
+public class SayHello {
+
+ protected String sayHelloRequest;
+
+ /**
+ * Gets the value of the sayHelloRequest property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getSayHelloRequest() {
+ return sayHelloRequest;
+ }
+
+ /**
+ * Sets the value of the sayHelloRequest property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSayHelloRequest(String value) {
+ this.sayHelloRequest = value;
+ }
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHello2.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHello2.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHello2.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,60 @@
+
+package org.example.www.helloworld;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for sayHello2 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="sayHello2">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="sayHelloRequest2"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "sayHello2", propOrder = {
+ "sayHelloRequest2"
+})
+public class SayHello2 {
+
+ protected String sayHelloRequest2;
+
+ /**
+ * Gets the value of the sayHelloRequest2 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getSayHelloRequest2() {
+ return sayHelloRequest2;
+ }
+
+ /**
+ * Sets the value of the sayHelloRequest2 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSayHelloRequest2(String value) {
+ this.sayHelloRequest2 = value;
+ }
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHello2Response.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHello2Response.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHello2Response.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,60 @@
+
+package org.example.www.helloworld;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for sayHello2Response complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="sayHello2Response">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="sayHelloResponse2"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "sayHello2Response", propOrder = {
+ "sayHelloResponse2"
+})
+public class SayHello2Response {
+
+ protected String sayHelloResponse2;
+
+ /**
+ * Gets the value of the sayHelloResponse2 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getSayHelloResponse2() {
+ return sayHelloResponse2;
+ }
+
+ /**
+ * Sets the value of the sayHelloResponse2 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSayHelloResponse2(String value) {
+ this.sayHelloResponse2 = value;
+ }
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHelloResponse.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHelloResponse.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/SayHelloResponse.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,60 @@
+
+package org.example.www.helloworld;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for sayHelloResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within
this class.
+ *
+ * <pre>
+ * <complexType name="sayHelloResponse">
+ * <complexContent>
+ * <restriction
base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="sayHelloResponse"
type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "sayHelloResponse", propOrder = {
+ "sayHelloResponse"
+})
+public class SayHelloResponse {
+
+ protected String sayHelloResponse;
+
+ /**
+ * Gets the value of the sayHelloResponse property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getSayHelloResponse() {
+ return sayHelloResponse;
+ }
+
+ /**
+ * Sets the value of the sayHelloResponse property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setSayHelloResponse(String value) {
+ this.sayHelloResponse = value;
+ }
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/clientsample/ClientSample.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/clientsample/ClientSample.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/clientsample/ClientSample.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,19 @@
+package org.example.www.helloworld.clientsample;
+
+import org.example.www.helloworld.*;
+
+public class ClientSample {
+
+ public static void main(String[] args) {
+ System.out.println("***********************");
+ System.out.println("Create Web Service Client...");
+ HelloWorldService service1 = new HelloWorldService();
+ System.out.println("Create Web Service...");
+ HelloWorld port1 = service1.getHelloWorldPort();
+ System.out.println("Create Web Service Operation...");
+ System.out.println("Server said: " + port1.sayHello(args[0]));
+ System.out.println("Server said: " + port1.sayHello2(args[0]));
+ System.out.println("***********************");
+ System.out.println("Call Over!");
+ }
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/package-info.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/package-info.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/ClientTest/src/org/example/www/helloworld/package-info.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,2 @@
+(a)javax.xml.bind.annotation.XmlSchema(namespace =
"http://www.example.org/HelloWorld")
+package org.example.www.helloworld;
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.classpath
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.classpath
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.classpath 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.project
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.project
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.project 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>JBossWSTestProject</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.jdt.core.prefs 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,7 @@
+#Wed Jun 18 13:25:53 CST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.jst.common.project.facet.core.prefs
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.jst.common.project.facet.core.prefs
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.jst.common.project.facet.core.prefs 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,3 @@
+#Wed Jun 18 13:25:53 CST 2008
+classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER\:\:org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType\:\:jdk1.5.0_15/owners=jst.java\:5.0
+eclipse.preferences.version=1
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.wst.common.component
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.wst.common.component 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="JBossWSTestProject">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src"/>
+<property name="context-root" value="JBossWSTestProject"/>
+<property name="java-output-path" value="build/classes"/>
+</wb-module>
+</project-modules>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/.settings/org.eclipse.wst.common.project.facet.core.xml 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <fixed facet="jst.web"/>
+ <fixed facet="jst.java"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.web" version="2.4"/>
+</faceted-project>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/WebContent/META-INF/MANIFEST.MF
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/WebContent/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/WebContent/META-INF/MANIFEST.MF 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/WebContent/WEB-INF/web.xml
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/WebContent/WEB-INF/web.xml
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/WebContent/WEB-INF/web.xml 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>
+ JBossWSTestProject</display-name>
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ <welcome-file>index.htm</welcome-file>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>default.html</welcome-file>
+ <welcome-file>default.htm</welcome-file>
+ <welcome-file>default.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/hello_world.wsdl
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/hello_world.wsdl
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JBossWSTestProject/hello_world.wsdl 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,181 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+
http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<wsdl:definitions name="HelloWorld"
targetNamespace="http://apache.org/hello_world_soap_http"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns:tns="http://apache.org/hello_world_soap_http"
+
xmlns:x1="http://apache.org/hello_world_soap_http/types"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:types>
+ <schema
targetNamespace="http://apache.org/hello_world_soap_http/types"
+
xmlns="http://www.w3.org/2001/XMLSchema"
+
xmlns:tns="http://apache.org/hello_world_soap_http/types"
+ elementFormDefault="qualified">
+ <simpleType name="MyStringType">
+ <restriction base="string">
+ <maxLength value="30" />
+ </restriction>
+ </simpleType>
+
+ <element name="sayHi">
+ <complexType/>
+ </element>
+ <element name="sayHiResponse">
+ <complexType>
+ <sequence>
+ <element name="responseType"
type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="greetMe">
+ <complexType>
+ <sequence>
+ <element name="requestType"
type="tns:MyStringType"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="greetMeResponse">
+ <complexType>
+ <sequence>
+ <element name="responseType"
type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="greetMeOneWay">
+ <complexType>
+ <sequence>
+ <element name="requestType"
type="string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="pingMe">
+ <complexType/>
+ </element>
+ <element name="pingMeResponse">
+ <complexType/>
+ </element>
+ <element name="faultDetail">
+ <complexType>
+ <sequence>
+ <element name="minor" type="short"/>
+ <element name="major" type="short"/>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </wsdl:types>
+ <wsdl:message name="sayHiRequest">
+ <wsdl:part element="x1:sayHi" name="in"/>
+ </wsdl:message>
+ <wsdl:message name="sayHiResponse">
+ <wsdl:part element="x1:sayHiResponse" name="out"/>
+ </wsdl:message>
+ <wsdl:message name="greetMeRequest">
+ <wsdl:part element="x1:greetMe" name="in"/>
+ </wsdl:message>
+ <wsdl:message name="greetMeResponse">
+ <wsdl:part element="x1:greetMeResponse" name="out"/>
+ </wsdl:message>
+ <wsdl:message name="greetMeOneWayRequest">
+ <wsdl:part element="x1:greetMeOneWay" name="in"/>
+ </wsdl:message>
+ <wsdl:message name="pingMeRequest">
+ <wsdl:part name="in" element="x1:pingMe"/>
+ </wsdl:message>
+ <wsdl:message name="pingMeResponse">
+ <wsdl:part name="out" element="x1:pingMeResponse"/>
+ </wsdl:message>
+ <wsdl:message name="pingMeFault">
+ <wsdl:part name="faultDetail"
element="x1:faultDetail"/>
+ </wsdl:message>
+
+ <wsdl:portType name="Greeter">
+ <wsdl:operation name="sayHi">
+ <wsdl:input message="tns:sayHiRequest"
name="sayHiRequest"/>
+ <wsdl:output message="tns:sayHiResponse"
name="sayHiResponse"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="greetMe">
+ <wsdl:input message="tns:greetMeRequest"
name="greetMeRequest"/>
+ <wsdl:output message="tns:greetMeResponse"
name="greetMeResponse"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="greetMeOneWay">
+ <wsdl:input message="tns:greetMeOneWayRequest"
name="greetMeOneWayRequest"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="pingMe">
+ <wsdl:input name="pingMeRequest"
message="tns:pingMeRequest"/>
+ <wsdl:output name="pingMeResponse"
message="tns:pingMeResponse"/>
+ <wsdl:fault name="pingMeFault"
message="tns:pingMeFault"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="Greeter_SOAPBinding"
type="tns:Greeter">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="sayHi">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="sayHiRequest">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="sayHiResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+
+ <wsdl:operation name="greetMe">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="greetMeRequest">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="greetMeResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+
+ <wsdl:operation name="greetMeOneWay">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="greetMeOneWayRequest">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+
+ <wsdl:operation name="pingMe">
+ <soap:operation style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="pingMeFault">
+ <soap:fault name="pingMeFault" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+
+ </wsdl:binding>
+ <wsdl:service name="SOAPService">
+ <wsdl:port binding="tns:Greeter_SOAPBinding"
name="SoapPort">
+ <soap:address
location="http://localhost:9000/SoapContext/SoapPort"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
+
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.classpath
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.classpath
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.classpath 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.project
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.project
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.project 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>JavaFirstTestProject</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/org.eclipse.jst.common.project.facet.core.prefs
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/org.eclipse.jst.common.project.facet.core.prefs
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/org.eclipse.jst.common.project.facet.core.prefs 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,4 @@
+#Tue Jun 24 15:57:11 CST 2008
+classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER\:\:org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType\:\:JAVA1.5/owners=jst.java\:5.0
+classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER\:\:org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType\:\:jdk1.5.0_15/owners=jst.java\:5.0
+eclipse.preferences.version=1
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/org.eclipse.wst.common.component
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/org.eclipse.wst.common.component 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="JavaFirstTestProject">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src"/>
+<property name="context-root" value="JavaFirstTestProject"/>
+<property name="java-output-path" value="build/classes"/>
+</wb-module>
+</project-modules>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/.settings/org.eclipse.wst.common.project.facet.core.xml 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.web" version="2.4"/>
+</faceted-project>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/WebContent/META-INF/MANIFEST.MF
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/WebContent/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/WebContent/META-INF/MANIFEST.MF 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/WebContent/WEB-INF/web.xml
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/WebContent/WEB-INF/web.xml
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/WebContent/WEB-INF/web.xml 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>
+ JavaFirstTestProject</display-name>
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ <welcome-file>index.htm</welcome-file>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>default.html</welcome-file>
+ <welcome-file>default.htm</welcome-file>
+ <welcome-file>default.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/build/classes/org/example/www/helloworld/HelloWorld.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/build/classes/org/example/www/helloworld/HelloWorld.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/build/classes/org/example/www/helloworld/HelloWorld.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,25 @@
+
+package org.example.www.helloworld;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+
+@WebService(name = "HelloWorld", targetNamespace =
"http://www.example.org/HelloWorld")
+public class HelloWorld{
+
+
+ @WebMethod(action = "http://www.example.org/HelloWorld/sayHello")
+ @WebResult(name = "sayHelloResponse", partName =
"sayHelloResponse")
+ public String sayHello(@WebParam(name = "sayHelloRequest", partName =
"sayHelloRequest") String str){
+ return "Hello World";
+ }
+
+ @WebMethod(action = "http://www.example.org/HelloWorld/sayHello2")
+ @WebResult(name = "sayHelloResponse2", partName =
"sayHelloResponse2")
+ public String sayHello2(@WebParam(name = "sayHelloRequest2", partName =
"sayHelloRequest2") String str){
+ return "Hello qq";
+ }
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/src/org/example/www/helloworld/HelloWorld.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/src/org/example/www/helloworld/HelloWorld.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/projects/JavaFirstTestProject/src/org/example/www/helloworld/HelloWorld.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,25 @@
+
+package org.example.www.helloworld;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+
+@WebService(name = "HelloWorld", targetNamespace =
"http://www.example.org/HelloWorld")
+public class HelloWorld{
+
+
+ @WebMethod(action = "http://www.example.org/HelloWorld/sayHello")
+ @WebResult(name = "sayHelloResponse", partName =
"sayHelloResponse")
+ public String sayHello(@WebParam(name = "sayHelloRequest", partName =
"sayHelloRequest") String str){
+ return "Hello World";
+ }
+
+ @WebMethod(action = "http://www.example.org/HelloWorld/sayHello2")
+ @WebResult(name = "sayHelloResponse2", partName =
"sayHelloResponse2")
+ public String sayHello2(@WebParam(name = "sayHelloRequest2", partName =
"sayHelloRequest2") String str){
+ return "Hello qq";
+ }
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/Activator.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/Activator.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/Activator.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,50 @@
+package org.jboss.tools.ws.creation.core.test;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID =
"org.jboss.tools.ws.creation.core.test";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/JBossWSCreationCoreTests.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/JBossWSCreationCoreTests.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/JBossWSCreationCoreTests.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.ws.creation.core.test;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import org.jboss.tools.ws.creation.core.test.command.JBossWSClientCommandTest;
+import org.jboss.tools.ws.creation.core.test.command.JBossWSJavaFirstCommandTest;
+import org.jboss.tools.ws.creation.core.test.command.JBossWSTopDownCommandTest;
+
+public class JBossWSCreationCoreTests extends TestCase {
+ public static final String PLUGIN_ID =
"org.jboss.tools.ws.creation.core.test";
+ public static Test suite ()
+ {
+ TestSuite suite = new TestSuite(JBossWSCreationCoreTests.class.getName());
+ suite.addTestSuite(JBossWSTopDownCommandTest.class);
+ suite.addTestSuite(JBossWSJavaFirstCommandTest.class);
+ suite.addTestSuite(JBossWSClientCommandTest.class);
+ return suite;
+ }
+}
\ No newline at end of file
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/AbstractJBossWSCommandTest.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/AbstractJBossWSCommandTest.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/AbstractJBossWSCommandTest.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,467 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.ws.creation.core.test.command;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.Set;
+
+import junit.framework.AssertionFailedError;
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.debug.core.ILaunchManager;
+import org.eclipse.debug.core.IStreamListener;
+import org.eclipse.debug.core.model.IStreamMonitor;
+import org.eclipse.jdt.launching.IVMInstall;
+import org.eclipse.jdt.launching.JavaRuntime;
+import org.eclipse.swt.SWTException;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.common.project.facet.core.IFacetedProject;
+import org.eclipse.wst.common.project.facet.core.IProjectFacet;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
+import org.eclipse.wst.server.core.IModule;
+import org.eclipse.wst.server.core.IRuntime;
+import org.eclipse.wst.server.core.IRuntimeType;
+import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.IServerListener;
+import org.eclipse.wst.server.core.IServerType;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+import org.eclipse.wst.server.core.ServerCore;
+import org.eclipse.wst.server.core.ServerEvent;
+import org.eclipse.wst.server.core.ServerUtil;
+import org.eclipse.wst.server.core.IServer.IOperationListener;
+import org.eclipse.wst.server.core.internal.RuntimeWorkingCopy;
+import org.eclipse.wst.server.core.internal.ServerWorkingCopy;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
+import org.jboss.ide.eclipse.as.core.server.internal.DeployableServer;
+import org.jboss.ide.eclipse.as.core.server.internal.JBossServerBehavior;
+import org.jboss.tools.common.test.util.TestProjectProvider;
+import org.jboss.tools.test.util.JobUtils;
+import org.jboss.tools.test.util.ResourcesUtils;
+import org.jboss.tools.ws.creation.core.data.ServiceModel;
+
+@SuppressWarnings("restriction")
+public abstract class AbstractJBossWSCommandTest extends TestCase {
+ public static final IVMInstall VM_INSTALL = JavaRuntime
+ .getDefaultVMInstall();
+ protected static final IWorkspace ws = ResourcesPlugin.getWorkspace();
+ protected static final IWorkbench wb = PlatformUI.getWorkbench();
+
+ protected static final int DEFAULT_STARTUP_TIME = 150000;
+ protected static final int DEFAULT_SHUTDOWN_TIME = 90000;
+
+ protected static final String JBOSSWS_HOME_DEFAULT =
"D:/softinstall/jboss-4.2.3GA/jboss-4.2.3.GA";
+ public static final String JBOSSWS_42_HOME =
"jbosstools.test.jboss.home.4.2";
+ public static final String JBOSS_RUNTIME_42 =
"org.jboss.ide.eclipse.as.runtime.42";
+ public static final String JBOSS_AS_42_HOME = System.getProperty(
+ JBOSSWS_42_HOME, JBOSSWS_HOME_DEFAULT);
+ public static final String JBOSS_SERVER_42 = "org.jboss.ide.eclipse.as.42";
+
+ protected final Set<IResource> resourcesToCleanup = new
HashSet<IResource>();
+
+ protected static final IProjectFacetVersion dynamicWebVersion;
+ protected static final IProjectFacetVersion javaVersion;
+ protected static final IProjectFacetVersion jbosswsFacetVersion;
+ private static final IProjectFacet jbosswsFacet;
+
+ static String wsdlFileName = "hello_world.wsdl";
+ static String BUNDLE = "org.jboss.tools.ws.creation.core.test";
+
+ IFacetedProject fproject;
+ protected IRuntime currentRuntime;
+ protected IServer currentServer;
+ protected ServerStateListener stateListener;
+
+ static {
+ javaVersion = ProjectFacetsManager.getProjectFacet("jst.java")
+ .getVersion("5.0");
+ dynamicWebVersion = ProjectFacetsManager.getProjectFacet("jst.web")
+ .getVersion("2.5");
+ jbosswsFacet = ProjectFacetsManager.getProjectFacet("jbossws.core");
+ jbosswsFacetVersion = jbosswsFacet.getVersion("2.0");
+
+ }
+
+ public AbstractJBossWSCommandTest() {
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp();
+
+ // create jbossws web project
+
+ createServer(JBOSS_RUNTIME_42, JBOSS_SERVER_42, JBOSS_AS_42_HOME,
+ "default");
+ // first thing's first. Let's add a server state listener
+ stateListener = new ServerStateListener();
+ currentServer.addServerListener(stateListener);
+
+ JobUtils.delay(3000);
+ }
+
+ public IProject createProject(String prjName) throws CoreException {
+ TestProjectProvider provider = new TestProjectProvider(BUNDLE, "/projects/" +
prjName,
+ prjName, true);
+ IProject prj = provider.getProject();
+ return prj;
+ }
+
+ protected void tearDown() throws Exception {
+ // Wait until all jobs is finished to avoid delete project problems
+
+ undeployWebProject();
+
+ boolean oldAutoBuilding = ResourcesUtils.setBuildAutomatically(false);
+ Exception last = null;
+
+ try {
+ JobUtils.delay(500);
+ for (IResource r : this.resourcesToCleanup) {
+ try {
+ System.out.println("Deleting " + r);
+ r.delete(true, null);
+ JobUtils.delay(500);
+ } catch (Exception e) {
+ System.out.println("Error deleting " + r);
+ e.printStackTrace();
+ last = e;
+ }
+ }
+ } finally {
+ ResourcesUtils.setBuildAutomatically(oldAutoBuilding);
+ }
+
+ if (last != null)
+ throw last;
+
+ resourcesToCleanup.clear();
+ // cleanProjectFromServer() ;
+ shutdown();
+ currentServer.removeServerListener(stateListener);
+ currentRuntime.delete();
+ currentServer.delete();
+
+ super.tearDown();
+ }
+
+ protected void createServer(String runtimeID, String serverID,
+ String location, String configuration) throws CoreException {
+ // if file doesnt exist, abort immediately.
+ assertTrue(new Path(location).toFile().exists());
+
+ currentRuntime = createRuntime(runtimeID, location, configuration);
+ IServerType serverType = ServerCore.findServerType(serverID);
+ IServerWorkingCopy serverWC = serverType.createServer(null, null,
+ new NullProgressMonitor());
+ serverWC.setRuntime(currentRuntime);
+ serverWC.setName(serverID);
+ serverWC.setServerConfiguration(null);
+ IPath path = new Path(location).append("server").append("default")
+ .append("deploy");
+ ((ServerWorkingCopy) serverWC).setAttribute(
+ DeployableServer.DEPLOY_DIRECTORY, path.toOSString());
+ currentServer = serverWC.save(true, new NullProgressMonitor());
+
+ }
+
+ private IRuntime createRuntime(String runtimeId, String homeDir,
+ String config) throws CoreException {
+ IRuntimeType[] runtimeTypes = ServerUtil.getRuntimeTypes(null, null,
+ runtimeId);
+ assertEquals("expects only one runtime type", runtimeTypes.length, 1);
+ IRuntimeType runtimeType = runtimeTypes[0];
+ IRuntimeWorkingCopy runtimeWC = runtimeType.createRuntime(null,
+ new NullProgressMonitor());
+ runtimeWC.setName(runtimeId);
+ runtimeWC.setLocation(new Path(homeDir));
+ ((RuntimeWorkingCopy) runtimeWC).setAttribute(
+ IJBossServerRuntime.PROPERTY_VM_ID, VM_INSTALL.getId());
+ ((RuntimeWorkingCopy) runtimeWC).setAttribute(
+ IJBossServerRuntime.PROPERTY_VM_TYPE_ID, VM_INSTALL
+ .getVMInstallType().getId());
+ ((RuntimeWorkingCopy) runtimeWC).setAttribute(
+ IJBossServerRuntime.PROPERTY_CONFIGURATION_NAME, config);
+ IRuntime savedRuntime = runtimeWC.save(true, new NullProgressMonitor());
+ return savedRuntime;
+ }
+
+ protected ServiceModel createServiceModel() {
+ ServiceModel model = new ServiceModel();
+ model.setWebProjectName(fproject.getProject().getName());
+ IFile wsdlFile = fproject.getProject().getFile(wsdlFileName);
+ model.setWsdlURI(wsdlFile.getLocation().toOSString());
+ model.addServiceName("SOAPService");
+ model.addPortTypes("Greeter");
+ model.setCustomPackage("org.apache.hello_world_soap_http");
+
+ return model;
+
+ }
+
+ protected void publishWebProject() throws CoreException {
+ IModule[] modules = ServerUtil.getModules(currentServer.getServerType()
+ .getRuntimeType().getModuleTypes());
+ IServerWorkingCopy serverWC = currentServer.createWorkingCopy();
+ serverWC.modifyModules(modules, null, null);
+ serverWC.save(true, null).publish(0, null);
+ currentServer.publish(IServer.PUBLISH_FULL, null);
+
+ }
+
+ protected void undeployWebProject() throws CoreException {
+ IModule[] modules = ServerUtil.getModules(currentServer.getServerType()
+ .getRuntimeType().getModuleTypes());
+ IServerWorkingCopy serverWC = currentServer.createWorkingCopy();
+ serverWC.modifyModules(null, modules, null);
+ serverWC.save(true, null).publish(0, null);
+ currentServer.publish(IServer.PUBLISH_FULL, null);
+
+ }
+
+ protected void cleanProjectFromServer() throws CoreException {
+ IModule[] modules = ServerUtil.getModules(currentServer.getServerType()
+ .getRuntimeType().getModuleTypes());
+ IServerWorkingCopy serverWC = currentServer.createWorkingCopy();
+ serverWC.modifyModules(null, modules, null);
+ currentServer.publish(0, null);
+ currentServer.stop(true);
+
+ }
+
+ protected boolean isServerSupplied() {
+ return false;
+ }
+
+ protected IFacetedProject createJBossWSProject(String baseProjectName,
+ boolean isServerSupplied) throws CoreException {
+ IProject project = createProject(baseProjectName);
+ final IFacetedProject fproj = ProjectFacetsManager.create(project);
+
+ // installDependentFacets(fproj);
+ fproj.installProjectFacet(jbosswsFacetVersion,
+ createJBossWSDataModel(isServerSupplied), null);
+
+ assertNotNull(project);
+
+ this.addResourceToCleanup(project);
+
+ return fproj;
+ }
+
+ abstract IDataModel createJBossWSDataModel(boolean isServerSupplied);
+
+ protected final void addResourceToCleanup(final IResource resource) {
+ this.resourcesToCleanup.add(resource);
+ }
+
+ protected File getJBossWSHomeFolder() {
+
+ String jbosshome = System.getProperty(JBOSSWS_42_HOME,
+ JBOSSWS_HOME_DEFAULT);
+ File runtimelocation = new File(jbosshome);
+ assertTrue("Please set JBoss EAP Home in system property:"
+ + JBOSSWS_42_HOME, runtimelocation.exists());
+
+ String cmdFileLocation = jbosshome + File.separator + "bin"
+ + File.separator + "wsconsume.sh";
+ assertTrue(jbosshome + " is not a valid jboss EAP home", new File(
+ cmdFileLocation).exists());
+ return runtimelocation;
+ }
+
+ protected void startup() {
+ startup(DEFAULT_STARTUP_TIME);
+ }
+
+ protected void startup(int maxWait) {
+ long finishTime = new Date().getTime() + maxWait;
+
+ // operation listener, which is only alerted when the startup is *done*
+ final StatusWrapper opWrapper = new StatusWrapper();
+ final IOperationListener listener = new IOperationListener() {
+ public void done(IStatus result) {
+ opWrapper.setStatus(result);
+ }
+ };
+
+ // a stream listener to listen for errors
+ ErrorStreamListener streamListener = new ErrorStreamListener();
+
+ // the thread to actually start the server
+ Thread startThread = new Thread() {
+ public void run() {
+ currentServer.start(ILaunchManager.RUN_MODE, listener);
+ }
+ };
+
+ startThread.start();
+
+ boolean addedStream = false;
+ while (finishTime > new Date().getTime()
+ && opWrapper.getStatus() == null) {
+ // we're waiting for startup to finish
+ if (!addedStream) {
+ IStreamMonitor mon = getStreamMonitor();
+ if (mon != null) {
+ mon.addListener(streamListener);
+ addedStream = true;
+ }
+ }
+ try {
+ Display.getDefault().readAndDispatch();
+ } catch (SWTException swte) {
+ }
+ }
+
+ try {
+ assertTrue(
+ "Startup has taken longer than what is expected for a default startup",
+ finishTime >= new Date().getTime());
+ assertFalse("Startup had System.error output", streamListener
+ .hasError());
+ } catch (AssertionFailedError afe) {
+ // cleanup
+ currentServer.stop(true);
+ // rethrow
+ throw afe;
+ }
+ getStreamMonitor().removeListener(streamListener);
+ }
+
+ protected void shutdown() {
+ shutdown(DEFAULT_SHUTDOWN_TIME);
+ }
+
+ protected void shutdown(int maxWait) {
+ long finishTime = new Date().getTime() + maxWait;
+
+ // operation listener, which is only alerted when the startup is *done*
+ final StatusWrapper opWrapper = new StatusWrapper();
+ final IOperationListener listener = new IOperationListener() {
+ public void done(IStatus result) {
+ opWrapper.setStatus(result);
+ }
+ };
+
+ // a stream listener to listen for errors
+ ErrorStreamListener streamListener = new ErrorStreamListener();
+ if (getStreamMonitor() != null)
+ getStreamMonitor().addListener(streamListener);
+
+ // the thread to actually start the server
+ Thread stopThread = new Thread() {
+ public void run() {
+ currentServer.stop(false, listener);
+ }
+ };
+
+ stopThread.start();
+
+ while (finishTime > new Date().getTime()
+ && opWrapper.getStatus() == null) {
+ // we're waiting for startup to finish
+ try {
+ Display.getDefault().readAndDispatch();
+ } catch (SWTException swte) {
+ }
+ }
+
+ try {
+ assertTrue(
+ "Startup has taken longer than what is expected for a default startup",
+ finishTime >= new Date().getTime());
+ assertFalse("Startup had System.error output", streamListener
+ .hasError());
+ } catch (AssertionFailedError afe) {
+ // cleanup
+ currentServer.stop(true);
+ // rethrow
+ throw afe;
+ }
+ }
+
+ protected IStreamMonitor getStreamMonitor() {
+ JBossServerBehavior behavior = (JBossServerBehavior) currentServer
+ .loadAdapter(JBossServerBehavior.class, null);
+ if (behavior != null) {
+ if (behavior.getProcess() != null) {
+ return behavior.getProcess().getStreamsProxy()
+ .getOutputStreamMonitor();
+ }
+ }
+ return null;
+ }
+
+ protected class ServerStateListener implements IServerListener {
+ private ArrayList<Integer> stateChanges;
+
+ public ServerStateListener() {
+ this.stateChanges = new ArrayList<Integer>();
+ }
+
+ public ArrayList<Integer> getStateChanges() {
+ return stateChanges;
+ }
+
+ public void serverChanged(ServerEvent event) {
+ if ((event.getKind() & ServerEvent.SERVER_CHANGE) != 0) {
+ if ((event.getKind() & ServerEvent.STATE_CHANGE) != 0) {
+ if (event.getState() != IServer.STATE_STOPPED)
+ stateChanges.add(new Integer(event.getState()));
+ }
+ }
+ }
+ }
+
+ protected class ErrorStreamListener implements IStreamListener {
+ protected boolean errorFound = false;
+ String entireLog = "";
+
+ public void streamAppended(String text, IStreamMonitor monitor) {
+ entireLog += text;
+ }
+
+ // will need to be fixed or decided how to figure out errors
+ public boolean hasError() {
+ return errorFound;
+ }
+ }
+
+ public class StatusWrapper {
+ protected IStatus status;
+
+ public IStatus getStatus() {
+ return this.status;
+ }
+
+ public void setStatus(IStatus s) {
+ this.status = s;
+ }
+ }
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/JBossWSClientCommandTest.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/JBossWSClientCommandTest.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/JBossWSClientCommandTest.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,206 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.ws.creation.core.test.command;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jdt.core.IClasspathContainer;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaModel;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.ws.internal.wsrt.IWebServiceClient;
+import org.eclipse.wst.ws.internal.wsrt.WebServiceClientInfo;
+import org.eclipse.wst.ws.internal.wsrt.WebServiceScenario;
+import org.jboss.tools.ws.core.classpath.JBossWSRuntime;
+import org.jboss.tools.ws.core.classpath.JBossWSRuntimeManager;
+import
org.jboss.tools.ws.core.classpath.JBossWSRuntimeClassPathInitializer.JBossWSRuntimeClasspathContainer;
+import org.jboss.tools.ws.core.facet.delegate.IJBossWSFacetDataModelProperties;
+import org.jboss.tools.ws.core.facet.delegate.JBossWSFacetInstallDataModelProvider;
+import org.jboss.tools.ws.creation.core.JBossWSCreationCorePlugin;
+import org.jboss.tools.ws.creation.core.commands.ClientSampleCreationCommand;
+import org.jboss.tools.ws.creation.core.commands.InitialClientCommand;
+import org.jboss.tools.ws.creation.core.commands.RemoveClientJarsCommand;
+import org.jboss.tools.ws.creation.core.commands.WSDL2JavaCommand;
+import org.jboss.tools.ws.creation.core.data.ServiceModel;
+import org.jboss.tools.ws.creation.ui.wsrt.JBossWebServiceClient;
+
+/**
+ * @author Grid Qian
+ */
+@SuppressWarnings("restriction")
+public class JBossWSClientCommandTest extends AbstractJBossWSCommandTest {
+
+ private static final String RuntimeName;
+ private static final boolean isDeployed;
+
+ static {
+ RuntimeName = "testjbosswsruntime";
+ isDeployed = false;
+ }
+
+ public JBossWSClientCommandTest() {
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ JBossWSRuntimeManager.getInstance().addRuntime(RuntimeName,
+ getJBossWSHomeFolder().toString(), "", true);
+
+ // create jbossws web project
+ fproject = createJBossWSProject("JBossWSTestProject",
+ isServerSupplied());
+ IFile wsdlFile = fproject.getProject().getFile(wsdlFileName);
+
+ assertTrue(wsdlFile.exists());
+ }
+
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ resourcesToCleanup.clear();
+ JBossWSRuntime runtime = JBossWSRuntimeManager.getInstance()
+ .findRuntimeByName(RuntimeName);
+ JBossWSRuntimeManager.getInstance().removeRuntime(runtime);
+ }
+
+ public void testInitialClientCommand() throws CoreException,
+ ExecutionException {
+
+ IFile wsdlFile = fproject.getProject().getFile(wsdlFileName);
+ ServiceModel model = new ServiceModel();
+ model.setWebProjectName(fproject.getProject().getName());
+ // model.setWsdlURI(wsdlFile.getLocation().toOSString());
+
+ WebServiceClientInfo info = new WebServiceClientInfo();
+ info.setWsdlURL(wsdlFile.getLocation().toOSString());
+ IWebServiceClient ws = new JBossWebServiceClient(info);
+
+ // test initial command
+ InitialClientCommand cmdInitial = new InitialClientCommand(model, ws,
+ WebServiceScenario.CLIENT);
+ IStatus status = cmdInitial.execute(null, null);
+ assertTrue(status.getMessage(), status.isOK());
+
+ assertTrue(model.getServiceNames().contains("SOAPService"));
+ assertEquals(wsdlFile.getLocation().toOSString(), model.getWsdlURI());
+ assertTrue(model.getPortTypes().contains("Greeter"));
+ assertEquals("org.apache.hello_world_soap_http", model
+ .getCustomPackage());
+
+ }
+
+ public void testClientCodeGenerationCommand() throws ExecutionException {
+
+ ServiceModel model = createServiceModel();
+ IProject project = fproject.getProject();
+ // test wsdl2Javacommand
+ WSDL2JavaCommand cmdW2j = new WSDL2JavaCommand(model);
+ IStatus status = cmdW2j.execute(null, null);
+ assertFalse(status.getMessage(), Status.ERROR == status.getSeverity());
+ assertTrue(project.getFile(
+ "src/org/apache/hello_world_soap_http/Greeter.java").exists());
+
+ // test ClientSampleCreationCommand
+ ClientSampleCreationCommand cmdImpl = new ClientSampleCreationCommand(
+ model);
+ status = cmdImpl.execute(null, null);
+ assertTrue(status.getMessage(), status.isOK());
+ assertTrue(
+ "failed to generate sample class",
+ project
+ .getFile(
+ "src/org/apache/hello_world_soap_http/clientsample/ClientSample.java")
+ .exists());
+
+ }
+
+ public void testRemoveClientJarsCommand() throws ExecutionException {
+
+ ServiceModel model = new ServiceModel();
+ model.setWebProjectName(fproject.getProject().getName());
+
+ RemoveClientJarsCommand command = new RemoveClientJarsCommand(model);
+ IStatus status = command.execute(null, null);
+ assertTrue(status.getMessage(), status.isOK());
+ try {
+ IClasspathEntry[] entries = getJavaProjectByName(
+ fproject.getProject().getName()).getRawClasspath();
+
+ for (IClasspathEntry entry : entries) {
+ IClasspathContainer container = JavaCore.getClasspathContainer(
+ entry.getPath(), getJavaProjectByName(fproject
+ .getProject().getName()));
+ if (container instanceof JBossWSRuntimeClasspathContainer) {
+ boolean nojar = true;
+ for (IClasspathEntry jar : ((JBossWSRuntimeClasspathContainer) container)
+ .getClasspathEntries()) {
+ if (jar.getPath().toString().contains("jaxws-rt.jar")) {
+ nojar = false;
+ }
+ }
+ assertTrue(nojar);
+ }
+ }
+ } catch (JavaModelException e) {
+ JBossWSCreationCorePlugin.getDefault().logError(e);
+ }
+
+ }
+
+ public static IJavaProject getJavaProjectByName(String projectName)
+ throws JavaModelException {
+
+ IJavaModel model = JavaCore.create(ResourcesPlugin.getWorkspace()
+ .getRoot());
+ model.open(null);
+
+ IJavaProject[] projects = model.getJavaProjects();
+
+ for (IJavaProject proj : projects) {
+ if (proj.getProject().getName().equals(projectName)) {
+ return proj;
+ }
+ }
+
+ return null;
+ }
+
+ @Override
+ IDataModel createJBossWSDataModel(boolean isServerSupplied) {
+ IDataModel config = (IDataModel) new JBossWSFacetInstallDataModelProvider()
+ .create();
+ if (isServerSupplied) {
+ config
+ .setBooleanProperty(
+ IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_IS_SERVER_SUPPLIED,
+ true);
+ } else {
+ config.setBooleanProperty(
+ IJBossWSFacetDataModelProperties.JBOSS_WS_DEPLOY,
+ isDeployed);
+ config.setStringProperty(
+ IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_ID,
+ RuntimeName);
+ config.setStringProperty(
+ IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_HOME,
+ getJBossWSHomeFolder().toString());
+ }
+ return config;
+ }
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/JBossWSJavaFirstCommandTest.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/JBossWSJavaFirstCommandTest.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/JBossWSJavaFirstCommandTest.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,319 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.ws.creation.core.test.command;
+
+import java.io.IOException;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.net.URLConnection;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.debug.core.DebugPlugin;
+import org.eclipse.debug.core.ILaunchConfigurationType;
+import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
+import org.eclipse.debug.core.ILaunchManager;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.console.AbstractConsole;
+import org.eclipse.ui.console.ConsolePlugin;
+import org.eclipse.ui.console.IConsole;
+import org.eclipse.ui.console.IConsoleListener;
+import org.eclipse.ui.console.IConsoleManager;
+import org.eclipse.ui.console.TextConsole;
+import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.ws.internal.wsrt.IWebService;
+import org.eclipse.wst.ws.internal.wsrt.WebServiceInfo;
+import org.eclipse.wst.ws.internal.wsrt.WebServiceScenario;
+import org.jboss.tools.ws.core.classpath.JBossWSRuntime;
+import org.jboss.tools.ws.core.classpath.JBossWSRuntimeManager;
+import org.jboss.tools.ws.core.facet.delegate.IJBossWSFacetDataModelProperties;
+import org.jboss.tools.ws.core.facet.delegate.JBossWSFacetInstallDataModelProvider;
+import org.jboss.tools.ws.creation.core.commands.InitialCommand;
+import org.jboss.tools.ws.creation.core.commands.MergeWebXMLCommand;
+import org.jboss.tools.ws.creation.core.commands.RemoveClientJarsCommand;
+import org.jboss.tools.ws.creation.core.commands.ValidateWSImplCommand;
+import org.jboss.tools.ws.creation.core.commands.Java2WSCommand;
+import org.jboss.tools.ws.creation.core.data.ServiceModel;
+import org.jboss.tools.ws.creation.core.messages.JBossWSCreationCoreMessages;
+import org.jboss.tools.ws.creation.ui.wsrt.JBossWebService;
+
+/**
+ * @author Grid Qian
+ */
+@SuppressWarnings("restriction")
+public class JBossWSJavaFirstCommandTest extends AbstractJBossWSCommandTest {
+ protected static final IWorkspace ws = ResourcesPlugin.getWorkspace();
+ protected static final IWorkbench wb = PlatformUI.getWorkbench();
+
+ private static final String RuntimeName;
+ private static final boolean isDeployed;
+ private IProject clientProject;
+
+ static {
+ RuntimeName = "testjbosswsruntime";
+ isDeployed = false;
+ }
+
+ public JBossWSJavaFirstCommandTest() {
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp();
+
+ JBossWSRuntimeManager.getInstance().addRuntime(RuntimeName,
+ getJBossWSHomeFolder().toString(), "", true);
+ // create jbossws web project
+ fproject = createJBossWSProject("JavaFirstTestProject",
+ isServerSupplied());
+
+ if (!ResourcesPlugin.getWorkspace().getRoot().getProject("ClientTest")
+ .exists()) {
+ createProject("ClientTest");
+ // this.addResourceToCleanup(clientProject);
+ }
+
+ }
+
+ protected void tearDown() throws Exception {
+ super.tearDown();
+
+ resourcesToCleanup.clear();
+ JBossWSRuntime runtime = JBossWSRuntimeManager.getInstance()
+ .findRuntimeByName(RuntimeName);
+ JBossWSRuntimeManager.getInstance().removeRuntime(runtime);
+ }
+
+ public void testInitialCommand() throws CoreException, ExecutionException {
+
+ ServiceModel model = new ServiceModel();
+ model.setWebProjectName(fproject.getProject().getName());
+ WebServiceInfo info = new WebServiceInfo();
+ info.setImplURL("org.example.www.helloworld.HelloWorld");
+ IWebService ws = new JBossWebService(info);
+
+ // test initial command
+ InitialCommand cmdInitial = new InitialCommand(model, ws,
+ WebServiceScenario.BOTTOMUP);
+ IStatus status = cmdInitial.execute(null, null);
+
+ assertTrue(status.getMessage(), status.isOK());
+ assertTrue(model.getServiceClasses().get(0).equals(
+ "org.example.www.helloworld.HelloWorld"));
+ }
+
+ public void testValidateWSImplCommand() throws ExecutionException {
+
+ ServiceModel model = new ServiceModel();
+ model.setWebProjectName(fproject.getProject().getName());
+ model.addServiceClasses("org.example.www.helloworld.HelloWorld");
+
+ ValidateWSImplCommand command = new ValidateWSImplCommand(model);
+ IStatus status = command.execute(null, null);
+
+ assertTrue(status.getMessage(), status.isOK());
+
+ }
+
+ public void testJava2WSCommand() throws ExecutionException, CoreException {
+
+ ServiceModel model = new ServiceModel();
+ model.setWebProjectName(fproject.getProject().getName());
+ model.addServiceClasses("org.example.www.helloworld.HelloWorld");
+ model.setGenWSDL(true);
+ IProject project = fproject.getProject();
+
+ fproject.getProject().refreshLocal(IResource.DEPTH_INFINITE, null);
+ fproject.getProject().build(IncrementalProjectBuilder.FULL_BUILD, null);
+
+ Java2WSCommand command = new Java2WSCommand(model);
+ IStatus status = command.execute(null, null);
+
+ assertFalse(status.getMessage(), Status.ERROR == status.getSeverity());
+ assertTrue(project.getFile(
+ "src/org/example/www/helloworld/jaxws/SayHello.java").exists());
+ assertTrue(project.getFile("wsdl/HelloWorldService.wsdl").exists());
+ }
+
+ public void testDeployResult() throws ExecutionException, CoreException,
+ IOException {
+
+ ServiceModel model = new ServiceModel();
+ model.setWebProjectName(fproject.getProject().getName());
+
+ WebServiceInfo info = new WebServiceInfo();
+ info.setImplURL("org.example.www.helloworld.HelloWorld");
+ IWebService ws = new JBossWebService(info);
+
+ // test initial command
+ AbstractDataModelOperation cmd = new InitialCommand(model, ws,
+ WebServiceScenario.BOTTOMUP);
+ IStatus status = cmd.execute(null, null);
+ assertTrue(status.getMessage(), status.isOK());
+
+ fproject.getProject().refreshLocal(IResource.DEPTH_INFINITE, null);
+ fproject.getProject().build(IncrementalProjectBuilder.FULL_BUILD, null);
+
+ cmd = new Java2WSCommand(model);
+ status = cmd.execute(null, null);
+ assertTrue(status.getMessage(), status.isOK());
+
+ cmd = new MergeWebXMLCommand(model);
+ status = cmd.execute(null, null);
+ assertTrue(status.getMessage(), status.isOK());
+
+ fproject.getProject().refreshLocal(IResource.DEPTH_INFINITE, null);
+ fproject.getProject().build(IncrementalProjectBuilder.FULL_BUILD, null);
+ publishWebProject();
+
+ assertTrue(currentServer.getModules().length > 0);
+ String webServiceUrl =
"http://localhost:8080/JavaFirstTestProject/HelloWorld?wsdl";
+ URL url = new URL(webServiceUrl);
+ URLConnection conn = url.openConnection();
+
+ startup();
+
+ assertEquals("unable to start JBoss server", IServer.STATE_STARTED,
+ currentServer.getServerState());
+
+ conn.connect();
+ assertFalse("The url connection's status is "
+ + ((HttpURLConnection) conn).getResponseMessage(), "Ok"
+ .equals(((HttpURLConnection) conn).getResponseMessage()));
+
+ model = new ServiceModel();
+ model.setWebProjectName("ClientTest");
+
+ cmd = new RemoveClientJarsCommand(model);
+ status = cmd.execute(null, null);
+ assertTrue(status.getMessage(), status.isOK());
+
+ clientProject = ResourcesPlugin.getWorkspace().getRoot().getProject(
+ "ClientTest");
+ clientProject.open(null);
+ clientProject.refreshLocal(IResource.DEPTH_INFINITE, null);
+
+ ILaunchManager launchManager = DebugPlugin.getDefault()
+ .getLaunchManager();
+ ILaunchConfigurationType launchConfigurationType = launchManager
+ .getLaunchConfigurationType("org.eclipse.jdt.launching.localJavaApplication");
+ ILaunchConfigurationWorkingCopy wc = launchConfigurationType
+ .newInstance(null, "ClientSample");
+ wc.setAttribute("org.eclipse.debug.core.MAPPED_RESOURCE_TYPES",
"1");
+ wc.setAttribute("org.eclipse.jdt.launching.MAIN_TYPE",
+ "org.example.www.helloworld.clientsample.ClientSample");
+ wc.setAttribute("org.eclipse.jdt.launching.PROGRAM_ARGUMENTS",
"Test");
+ wc.setAttribute("org.eclipse.jdt.launching.PROJECT_ATTR",
"ClientTest");
+ wc.doSave();
+ wc.launch(ILaunchManager.RUN_MODE, null);
+ IConsoleManager consolemanager = getConsoleManager();
+ checkText(consolemanager.getConsoles());
+ }
+
+ private void checkText(IConsole[] consoles) {
+ // test run result
+ for (IConsole console : consoles) {
+ if (console.getName().contains("ClientSample")) {
+ int i = 0;
+ while (i < 30
+ && !isContainString(
+ console,
+ JBossWSCreationCoreMessages.Client_Sample_Run_Over)) {
+ delay(1000);
+ i++;
+ }
+ assertTrue(
+ ((TextConsole) console).getDocument().get(),
+ isContainString(
+ console,
+ JBossWSCreationCoreMessages.Client_Sample_Run_Over));
+ }
+ }
+ }
+
+ public static boolean isContainString(IConsole console, String str) {
+ return ((TextConsole) console).getDocument().get().contains(str);
+ }
+
+ public static void delay(long durationInMilliseconds) {
+ Display display = Display.getCurrent();
+ if (display != null) {
+ long t2 = System.currentTimeMillis() + durationInMilliseconds;
+ while (System.currentTimeMillis() < t2) {
+ if (!display.readAndDispatch()) {
+ display.sleep();
+ }
+ }
+ display.update();
+ } else {
+ try {
+ Thread.sleep(durationInMilliseconds);
+ } catch (InterruptedException e) {
+ }
+ }
+ }
+
+ public static IConsoleManager getConsoleManager() {
+ IConsoleManager consolemanager = ConsolePlugin.getDefault()
+ .getConsoleManager();
+
+ consolemanager.addConsoleListener(new IConsoleListener() {
+ public void consolesAdded(IConsole[] consoles) {
+ for (int i = 0; i < consoles.length; i++) {
+ ((AbstractConsole) consoles[i]).activate();
+ }
+
+ }
+
+ public void consolesRemoved(IConsole[] consoles) {
+ for (int i = 0; i < consoles.length; i++) {
+ ((AbstractConsole) consoles[i]).destroy();
+ }
+
+ }
+ });
+ return consolemanager;
+ }
+
+ @Override
+ IDataModel createJBossWSDataModel(boolean isServerSupplied) {
+ IDataModel config = (IDataModel) new JBossWSFacetInstallDataModelProvider()
+ .create();
+ if (isServerSupplied) {
+ config
+ .setBooleanProperty(
+ IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_IS_SERVER_SUPPLIED,
+ true);
+ } else {
+ config.setBooleanProperty(
+ IJBossWSFacetDataModelProperties.JBOSS_WS_DEPLOY,
+ isDeployed);
+ config.setStringProperty(
+ IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_ID,
+ RuntimeName);
+ config.setStringProperty(
+ IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_HOME,
+ getJBossWSHomeFolder().toString());
+ }
+ return config;
+ }
+
+}
Added:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/JBossWSTopDownCommandTest.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/JBossWSTopDownCommandTest.java
(rev 0)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/JBossWSTopDownCommandTest.java 2010-04-07
06:38:22 UTC (rev 21296)
@@ -0,0 +1,277 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.ws.creation.core.test.command;
+
+import java.io.IOException;
+import java.net.URL;
+import java.net.URLConnection;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jst.j2ee.model.IModelProvider;
+import org.eclipse.jst.j2ee.model.ModelProviderManager;
+import org.eclipse.jst.j2ee.webapplication.ServletType;
+import org.eclipse.jst.javaee.web.Servlet;
+import org.eclipse.jst.javaee.web.ServletMapping;
+import org.eclipse.jst.javaee.web.WebApp;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.ws.internal.wsrt.IWebService;
+import org.eclipse.wst.ws.internal.wsrt.WebServiceInfo;
+import org.eclipse.wst.ws.internal.wsrt.WebServiceScenario;
+import org.jboss.tools.ws.core.classpath.JBossWSRuntime;
+import org.jboss.tools.ws.core.classpath.JBossWSRuntimeManager;
+import org.jboss.tools.ws.core.facet.delegate.IJBossWSFacetDataModelProperties;
+import org.jboss.tools.ws.core.facet.delegate.JBossWSFacetInstallDataModelProvider;
+import org.jboss.tools.ws.creation.core.commands.ImplementationClassCreationCommand;
+import org.jboss.tools.ws.creation.core.commands.InitialCommand;
+import org.jboss.tools.ws.creation.core.commands.MergeWebXMLCommand;
+import org.jboss.tools.ws.creation.core.commands.WSDL2JavaCommand;
+import org.jboss.tools.ws.creation.core.data.ServiceModel;
+import org.jboss.tools.ws.creation.ui.wsrt.JBossWebService;
+
+@SuppressWarnings("restriction")
+public class JBossWSTopDownCommandTest extends AbstractJBossWSCommandTest {
+ protected static final IWorkspace ws = ResourcesPlugin.getWorkspace();
+ protected static final IWorkbench wb = PlatformUI.getWorkbench();
+
+
+
+ private static final String RuntimeName;
+ private static final boolean isDeployed;
+
+ static String wsdlFileName = "hello_world.wsdl";
+
+ static {
+ RuntimeName = "testjbosswsruntime";
+ isDeployed = false;
+ }
+
+ public JBossWSTopDownCommandTest() {
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ JBossWSRuntimeManager.getInstance().addRuntime(RuntimeName,
getJBossWSHomeFolder().toString(), "", true);
+
+ //create jbossws web project
+ fproject = createJBossWSProject("JBossWSTestProject", isServerSupplied());
+ IFile wsdlFile = fproject.getProject().getFile(wsdlFileName);
+
+ assertTrue(wsdlFile.exists());
+ }
+
+
+
+ protected void tearDown() throws Exception {
+ // Wait until all jobs is finished to avoid delete project problems
+ super.tearDown();
+ resourcesToCleanup.clear();
+ JBossWSRuntime runtime =
JBossWSRuntimeManager.getInstance().findRuntimeByName(RuntimeName);
+ JBossWSRuntimeManager.getInstance().removeRuntime(runtime);
+ }
+
+
+ public void testInitialCommand() throws CoreException, ExecutionException{
+
+ IFile wsdlFile = fproject.getProject().getFile(wsdlFileName);
+ ServiceModel model = new ServiceModel();
+ model.setWebProjectName(fproject.getProject().getName());
+ //model.setWsdlURI(wsdlFile.getLocation().toOSString());
+
+
+ WebServiceInfo info = new WebServiceInfo();
+ info.setWsdlURL(wsdlFile.getLocation().toOSString());
+ IWebService ws = new JBossWebService(info);
+
+ //test initial command
+ InitialCommand cmdInitial = new InitialCommand(model, ws, WebServiceScenario.TOPDOWN);
+ IStatus status = cmdInitial.execute(null, null);
+ assertTrue(status.getMessage(), status.isOK());
+
+ assertTrue(model.getServiceNames().contains("SOAPService"));
+ assertEquals(wsdlFile.getLocation().toOSString(), model.getWsdlURI());
+ assertTrue(model.getPortTypes().contains("Greeter"));
+ assertEquals("org.apache.hello_world_soap_http", model.getCustomPackage());
+
+ }
+
+
+ public void testCodeGenerationCommand() throws ExecutionException{
+
+ ServiceModel model = createServiceModel();
+ IProject project = fproject.getProject();
+ //test wsdl2Javacommand
+ WSDL2JavaCommand cmdW2j = new WSDL2JavaCommand(model);
+ IStatus status = cmdW2j.execute(null, null);
+ assertTrue(status.getMessage(), status.getSeverity() != Status.ERROR);
+
+ assertTrue(project.getFile("src/org/apache/hello_world_soap_http/Greeter.java").exists());
+
+ // test ImplementationClassCreationCommand
+ model.setGenerateImplementatoin(false);
+ ImplementationClassCreationCommand cmdImpl = new
ImplementationClassCreationCommand(model);
+ status = cmdImpl.execute(null, null);
+ assertTrue(status.getMessage(), status.getSeverity() != Status.ERROR);
+ assertFalse(project.getFile("src/org/apache/hello_world_soap_http/GreeterImpl.java").exists());
+
+ model.setGenerateImplementatoin(true);
+ cmdImpl = new ImplementationClassCreationCommand(model);
+ status = cmdImpl.execute(null, null);
+ assertTrue(status.getMessage(), status.getSeverity() != Status.ERROR);
+ assertTrue("failed to generate implemenatation class",
project.getFile("src/org/apache/hello_world_soap_http/GreeterImpl.java").exists());
+
+
+ }
+
+ public void testMergeWebXMLCommand() throws ExecutionException{
+ ServiceModel model = createServiceModel();
+ model.setGenerateImplementatoin(true);
+ model.setUpdateWebxml(true);
+ model.setWebProjectName(fproject.getProject().getName());
+ model.addServiceClasses("org.apache.hello_world_soap_http.GreeterImpl");
+ MergeWebXMLCommand cmdweb = new MergeWebXMLCommand(model);
+ IStatus status = cmdweb.execute(null, null);
+ assertTrue(status.getMessage(), status.isOK());
+
+ IProject project = fproject.getProject();
+ IFile webxml = project.getFile("WebContent/WEB-INF/web.xml");
+ assertTrue(webxml.exists());
+ IModelProvider provider = ModelProviderManager
+ .getModelProvider(project);
+ Object object = provider.getModelObject();
+ if (object instanceof WebApp) {
+ WebApp webApp = (WebApp) object;
+ assertTrue("failed to update web.xml ", webApp.getServlets().size() >
0);
+ Servlet servlet = (Servlet)webApp.getServlets().get(0);
+ assertEquals("the servlet with the name 'Greeger' was not created",
servlet.getServletName(), "Greeter");
+ assertTrue("the servlet display names should contain 'Greeter'",
servlet.getDisplayNames().contains("Greeter"));
+ assertEquals("org.apache.hello_world_soap_http.GreeterImpl",
servlet.getServletClass());
+
+ ServletMapping mapping = (ServletMapping)webApp.getServletMappings().get(0);
+ assertTrue("url patterns should contain '/Greeter'",
mapping.getUrlPatterns().contains("/Greeter"));
+ assertEquals("Greeter", mapping.getServletName());
+ }else if(object instanceof org.eclipse.jst.j2ee.webapplication.WebApp){
+ org.eclipse.jst.j2ee.webapplication.WebApp webApp =
(org.eclipse.jst.j2ee.webapplication.WebApp) object;
+ assertTrue("failed to update web.xml ", webApp.getServlets().size() >
0);
+ org.eclipse.jst.j2ee.webapplication.Servlet servlet =
(org.eclipse.jst.j2ee.webapplication.Servlet)webApp.getServlets().get(0);
+ assertEquals("a servlet with the name 'Greeger' should be created",
servlet.getServletName(), "Greeter");
+ assertEquals("servlet display name:","Greeter",
servlet.getDisplayName());
+ if(servlet.getWebType() instanceof ServletType){
+ ServletType webtype = (ServletType)servlet.getWebType();
+ assertEquals("org.apache.hello_world_soap_http.GreeterImpl",
webtype.getClassName());
+ }
+
+ org.eclipse.jst.j2ee.webapplication.ServletMapping mapping =
(org.eclipse.jst.j2ee.webapplication.ServletMapping)webApp.getServletMappings().get(0);
+ assertEquals("url pattern: ","/Greeter",
mapping.getUrlPattern());
+ assertEquals("Greeter", mapping.getServlet().getServletName());
+ }
+ //ServerType d; d.createServer(id, file, monitor)
+
+ }
+
+ public void testDeployResult() throws ExecutionException, CoreException, IOException{
+
+ //currentServer.start(ILaunchManager.RUN_MODE, new NullProgressMonitor());
+ IFile wsdlFile = fproject.getProject().getFile(wsdlFileName);
+ ServiceModel model = new ServiceModel();
+ model.setWebProjectName(fproject.getProject().getName());
+ //model.setWsdlURI(wsdlFile.getLocation().toOSString());
+
+
+ WebServiceInfo info = new WebServiceInfo();
+ info.setWsdlURL(wsdlFile.getLocation().toOSString());
+ IWebService ws = new JBossWebService(info);
+
+ //test initial command
+ AbstractDataModelOperation cmd = new InitialCommand(model, ws,
WebServiceScenario.TOPDOWN);
+ IStatus status = cmd.execute(null, null);
+ assertTrue(status.getMessage(), status.getSeverity() != Status.ERROR);
+
+ cmd = new WSDL2JavaCommand(model);
+ status = cmd.execute(null, null);
+ assertTrue(status.getMessage(), status.getSeverity() != Status.ERROR);
+
+ cmd = new ImplementationClassCreationCommand(model);
+ status = cmd.execute(null, null);
+ assertTrue(status.getMessage(), status.getSeverity() != Status.ERROR);
+
+ cmd = new MergeWebXMLCommand(model);
+ status = cmd.execute(null, null);
+ assertTrue(status.getMessage(), status.isOK());
+
+ fproject.getProject().refreshLocal(IResource.DEPTH_INFINITE, null);
+ fproject.getProject().build(IncrementalProjectBuilder.FULL_BUILD, null);
+ publishWebProject();
+
+ assertTrue(currentServer.getModules().length > 0);
+ String webServiceUrl =
"http://localhost:8080/JBossWSTestProject/Greeter?wsdl";
+ URL url = new URL(webServiceUrl);
+ URLConnection conn = url.openConnection();
+
+ startup();
+
+ assertEquals("unable to start JBoss server",IServer.STATE_STARTED,
currentServer.getServerState());
+
+ conn.connect();
+ conn.getContent();
+
+
+
+ }
+
+ protected ServiceModel createServiceModel(){
+ ServiceModel model = new ServiceModel();
+ model.setWebProjectName(fproject.getProject().getName());
+ IFile wsdlFile = fproject.getProject().getFile(wsdlFileName);
+ model.setWsdlURI(wsdlFile.getLocation().toOSString());
+ model.addServiceName("SOAPService");
+ model.addPortTypes("Greeter");
+ model.setCustomPackage("org.apache.hello_world_soap_http");
+
+ return model;
+
+ }
+
+
+ protected boolean isServerSupplied(){
+ return false;
+ }
+
+
+
+ protected IDataModel createJBossWSDataModel( boolean isServerSupplied) {
+ IDataModel config = (IDataModel) new JBossWSFacetInstallDataModelProvider().create();
+ if(isServerSupplied){
+ config.setBooleanProperty(IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_IS_SERVER_SUPPLIED,
true);
+ }else{
+ config.setBooleanProperty(IJBossWSFacetDataModelProperties.JBOSS_WS_DEPLOY,
isDeployed);
+ config.setStringProperty(IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_ID,
RuntimeName);
+ config.setStringProperty(IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_HOME,
getJBossWSHomeFolder().toString());
+ }
+ return config;
+ }
+
+
+
+
+}