[jboss-cvs] JBossAS SVN: r73038 - in projects/ejb3/trunk/core: src/test/java/org/jboss/ejb3/test/webservices and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun May 4 14:22:14 EDT 2008
Author: heiko.braun at jboss.com
Date: 2008-05-04 14:22:14 -0400 (Sun, 04 May 2008)
New Revision: 73038
Added:
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/Ejb3WSEndpoint.java
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/Ejb3WSEndpointImpl.java
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/Ejb3WSTestCase.java
Removed:
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/SomeBean.java
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/SomeEndpointInterface.java
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/jsr181/
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/JSR181TestCase.java
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/WsUnitTestCase.java
projects/ejb3/trunk/core/src/test/resources/test/webservices/META-INF/
Modified:
projects/ejb3/trunk/core/build-test.xml
Log:
EJBTHREE-1282: Add JAX-WS test coverage
Modified: projects/ejb3/trunk/core/build-test.xml
===================================================================
--- projects/ejb3/trunk/core/build-test.xml 2008-05-04 18:21:25 UTC (rev 73037)
+++ projects/ejb3/trunk/core/build-test.xml 2008-05-04 18:22:14 UTC (rev 73038)
@@ -1065,28 +1065,14 @@
</fileset>
</jar>
- <jar jarfile="${build.lib}/jsr181.jar">
+ <jar jarfile="${build.lib}/webservices-ejb3-client.jar">
<fileset dir="${build.classes}">
- <include name="org/jboss/ejb3/test/webservices/jsr181/EJB3*.class"/>
- <include name="org/jboss/ejb3/test/webservices/jsr181/*HomeInterface.class"/>
- <include name="org/jboss/ejb3/test/webservices/jsr181/Stateless*.class"/>
- <include name="org/jboss/ejb3/test/webservices/jsr181/Narrowable*.class"/>
+ <include name="org/jboss/ejb3/test/webservices/*.class"/>
</fileset>
- <fileset dir="${resources}/test/webservices">
- <include name="META-INF/ejb-jar.xml"/>
- </fileset>
- </jar>
-
- <jar jarfile="${build.lib}/jsr181-client.jar">
- <fileset dir="${build.classes}">
- <include name="org/jboss/ejb3/test/webservices/jsr181/EndpointInterface.class"/>
- <include name="org/jboss/ejb3/test/webservices/jsr181/NarrowableEndpointInterface.class"/>
- </fileset>
- <fileset dir="${resources}/test/webservices">
- <include name="META-INF/application-client.xml"/>
- <include name="META-INF/jaxrpc-mapping.xml"/>
- <include name="META-INF/jboss-client.xml"/>
+ <fileset dir="${resources}/test/webservices">
+ <include name="META-INF/*.xml"/>
<include name="META-INF/wsdl/*.wsdl"/>
+ <include name="META-INF/wsdl/*.xml"/>
</fileset>
</jar>
</target>
Added: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/Ejb3WSEndpoint.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/Ejb3WSEndpoint.java (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/Ejb3WSEndpoint.java 2008-05-04 18:22:14 UTC (rev 73038)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.webservices;
+
+import javax.jws.WebService;
+import javax.ejb.Remote;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+ at Remote
+ at WebService
+public interface Ejb3WSEndpoint
+{
+ String echo(String msg);
+}
Property changes on: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/Ejb3WSEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/Ejb3WSEndpointImpl.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/Ejb3WSEndpointImpl.java (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/Ejb3WSEndpointImpl.java 2008-05-04 18:22:14 UTC (rev 73038)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.webservices;
+
+import org.jboss.ejb3.annotation.RemoteBinding;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+ at Stateless
+ at RemoteBinding(jndiBinding = "Ejb3WSEndpoint")
+ at WebService(endpointInterface = "org.jboss.ejb3.test.webservices.Ejb3WSEndpoint")
+public class Ejb3WSEndpointImpl implements Ejb3WSEndpoint
+{
+
+ public String echo(String msg)
+ {
+ return msg;
+ }
+}
Property changes on: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/Ejb3WSEndpointImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Deleted: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/SomeBean.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/SomeBean.java 2008-05-04 18:21:25 UTC (rev 73037)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/SomeBean.java 2008-05-04 18:22:14 UTC (rev 73038)
@@ -1,44 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ejb3.test.webservices;
-
-import javax.ejb.Stateless;
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-
-/**
- * Comment
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision$
- */
- at Stateless
- at WebService(endpointInterface = "org.jboss.ejb3.test.webservices.SomeEndpointInterface")
-public class SomeBean implements SomeEndpointInterface
-{
-
- @WebMethod
- public String echo(String echo)
- {
- return echo;
- }
-}
Deleted: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/SomeEndpointInterface.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/SomeEndpointInterface.java 2008-05-04 18:21:25 UTC (rev 73037)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/SomeEndpointInterface.java 2008-05-04 18:22:14 UTC (rev 73038)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ejb3.test.webservices;
-
-import javax.jws.WebService;
-import javax.jws.WebMethod;
-
-/**
- * Comment
- *
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision$
- */
- at WebService
-public interface SomeEndpointInterface
-{
- @WebMethod String echo(String ec);
-}
Copied: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/Ejb3WSTestCase.java (from rev 72692, projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/JSR181TestCase.java)
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/Ejb3WSTestCase.java (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/Ejb3WSTestCase.java 2008-05-04 18:22:14 UTC (rev 73038)
@@ -0,0 +1,100 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.webservices.unit;
+
+import junit.framework.Test;
+import org.jboss.test.JBossTestCase;
+import org.jboss.ejb3.test.webservices.Ejb3WSEndpoint;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.xml.ws.Service;
+import javax.xml.namespace.QName;
+import java.util.Hashtable;
+import java.net.URL;
+
+/**
+ * @author Heiko.Braun at jboss.com
+ * @version $Revision$
+ */
+public class Ejb3WSTestCase extends JBossTestCase
+{
+ public Ejb3WSTestCase(String name)
+ {
+ super(name);
+ }
+
+ public void testRemoteAccess() throws Exception
+ {
+ InitialContext iniCtx = getInitialContext();
+ Ejb3WSEndpoint ejb3Remote = (Ejb3WSEndpoint)iniCtx.lookup("/Ejb3WSEndpoint");
+
+ String helloWorld = "Hello world!";
+ Object retObj = ejb3Remote.echo(helloWorld);
+ assertEquals(helloWorld, retObj);
+ }
+
+ public void testWebService() throws Exception
+ {
+ Service service = Service.create(
+ new URL("http://"+getServerHost()+":8080/webservices-ejb3/Ejb3WSEndpointImpl?wsdl"),
+ new QName("http://webservices.test.ejb3.jboss.org/","Ejb3WSEndpointImplService")
+ );
+
+ Ejb3WSEndpoint port = service.getPort(Ejb3WSEndpoint.class);
+ String response = port.echo("Hello");
+ assertEquals("Hello", response);
+ }
+
+ public void testWebServiceRef() throws Exception
+ {
+
+ }
+
+ public static Test suite() throws Exception
+ {
+ return getDeploySetup(Ejb3WSTestCase.class, "webservices-ejb3.jar, webservices-ejb3-client.jar");
+ }
+
+ protected InitialContext getInitialContext(String clientName) throws NamingException
+ {
+ InitialContext iniCtx = new InitialContext();
+ Hashtable env = iniCtx.getEnvironment();
+ env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");
+ env.put("j2ee.clientName", clientName);
+ return new InitialContext(env);
+ }
+
+ /** Get the client's env context
+ */
+ protected InitialContext getInitialContext() throws NamingException
+ {
+ return getInitialContext("jbossws-client");
+ }
+
+ public String getServerHost()
+ {
+ String hostName = System.getProperty("jbosstest.server.host", "localhost");
+ return hostName;
+ }
+}
Property changes on: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/Ejb3WSTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Deleted: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/JSR181TestCase.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/JSR181TestCase.java 2008-05-04 18:21:25 UTC (rev 73037)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/JSR181TestCase.java 2008-05-04 18:22:14 UTC (rev 73038)
@@ -1,158 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ejb3.test.webservices.unit;
-
-import java.util.Hashtable;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import javax.naming.Reference;
-import javax.rmi.PortableRemoteObject;
-import javax.xml.rpc.Service;
-
-import junit.framework.Test;
-
-import org.jboss.ejb3.test.webservices.jsr181.EJB3RemoteBusinessInterface;
-import org.jboss.ejb3.test.webservices.jsr181.EJB3RemoteInterface;
-import org.jboss.ejb3.test.webservices.jsr181.EndpointInterface;
-import org.jboss.ejb3.test.webservices.jsr181.NarrowableEJB3RemoteHomeInterface;
-import org.jboss.ejb3.test.webservices.jsr181.NarrowableEJB3RemoteInterface;
-import org.jboss.ejb3.test.webservices.jsr181.RemoteHomeInterface;
-import org.jboss.ejb3.test.webservices.jsr181.StatelessRemote;
-import org.jboss.test.JBossTestCase;
-
-/**
- * @author <a href="mailto:bdecoste at jboss.com">William DeCoste</a>
- * @version $Revision$
- */
-public class JSR181TestCase extends JBossTestCase
-{
- public JSR181TestCase(String name)
- {
- super(name);
- }
-
- public void testRemoteAccess() throws Exception
- {
- InitialContext iniCtx = getInitialContext();
- EJB3RemoteBusinessInterface ejb3Remote = (EJB3RemoteBusinessInterface)iniCtx.lookup("/ejb3/EJB3EndpointInterface");
-
- String helloWorld = "Hello world!";
- Object retObj = ejb3Remote.echo(helloWorld);
- assertEquals(helloWorld, retObj);
- }
-
- public void testHomeRemoteAccess() throws Exception
- {
- InitialContext iniCtx = getInitialContext();
- RemoteHomeInterface home = (RemoteHomeInterface)iniCtx.lookup("EJB3Bean/home");
- EJB3RemoteInterface ejb3Remote = home.create();
-
- String helloWorld = "Hello world!";
- Object retObj = ejb3Remote.echo(helloWorld);
- assertEquals(helloWorld, retObj);
- }
-
- public void testNarrowedHomeRemoteAccess() throws Exception
- {
- InitialContext jndiContext = getInitialContext();
-
- Object proxy = jndiContext.lookup("NarrowableEJB3Bean/home");
- assertNotNull(proxy);
-
- NarrowableEJB3RemoteHomeInterface home = (NarrowableEJB3RemoteHomeInterface)PortableRemoteObject.narrow(proxy, NarrowableEJB3RemoteHomeInterface.class);
- assertNotNull(home);
- Object obj = home.create();
- System.out.println(obj);
- NarrowableEJB3RemoteInterface ejb3Remote = home.create();
-
- String helloWorld = "Hello world!";
- Object retObj = ejb3Remote.echo(helloWorld);
- assertEquals(helloWorld, retObj);
- }
-
- public void testWebService() throws Exception
- {
- InitialContext iniCtx = getInitialContext();
- Object obj = iniCtx.lookup("java:comp/env/service/TestService");
- Reference ref = (Reference)iniCtx.lookup("java:comp/env/service/TestService");
- Service service = (Service)ref.get(0);
- EndpointInterface port = (EndpointInterface)service.getPort(EndpointInterface.class);
-
- String helloWorld = "Hello world!";
- Object retObj = port.echo(helloWorld);
- assertEquals(helloWorld, retObj);
- }
-
- public void testWebServiceRef() throws Exception
- {
- InitialContext jndiContext = new InitialContext();
- StatelessRemote stateless = (StatelessRemote)jndiContext.lookup("StatelessBean/remote");
- assertNotNull(stateless);
-
- assertEquals("Hello", stateless.echo1("Hello"));
-
- assertEquals("Hello", stateless.echo2("Hello"));
-
- assertEquals("Hello", stateless.echo3("Hello"));
-
- assertEquals("Hello", stateless.echo4("Hello"));
-
- assertEquals("Hello", stateless.echo5("Hello"));
-
- assertEquals("Hello", stateless.echo6("Hello"));
-
- assertEquals("Hello", stateless.echo7("Hello"));
-
- assertEquals("Hello", stateless.echo8("Hello"));
-
- assertEquals("Hello", stateless.echo9("Hello"));
- }
-
- public static Test suite() throws Exception
- {
- return getDeploySetup(JSR181TestCase.class, "jsr181-client.jar, jsr181.jar");
- }
-
- protected InitialContext getInitialContext(String clientName) throws NamingException
- {
- InitialContext iniCtx = new InitialContext();
- Hashtable env = iniCtx.getEnvironment();
- env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");
- env.put("j2ee.clientName", clientName);
- return new InitialContext(env);
- }
-
- /** Get the client's env context
- */
- protected InitialContext getInitialContext() throws NamingException
- {
- return getInitialContext("jbossws-client");
- }
-
- public String getServerHost()
- {
- String hostName = System.getProperty("jbosstest.server.host", "localhost");
- return hostName;
- }
-}
Deleted: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/WsUnitTestCase.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/WsUnitTestCase.java 2008-05-04 18:21:25 UTC (rev 73037)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/webservices/unit/WsUnitTestCase.java 2008-05-04 18:22:14 UTC (rev 73038)
@@ -1,76 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.ejb3.test.webservices.unit;
-
-import junit.framework.Test;
-
-import org.jboss.logging.Logger;
-import org.jboss.test.JBossTestCase;
-
-/**
- * Sample client for the jboss container.
- *
- * @author <a href="mailto:bill at burkecentral.com">Bill Burke</a>
- * @version $Id$
- */
-
-public class WsUnitTestCase
-extends JBossTestCase
-{
- private static final Logger log = Logger.getLogger(WsUnitTestCase.class);
-
- static boolean deployed = false;
- static int test = 0;
-
- public WsUnitTestCase(String name)
- {
-
- super(name);
-
- }
-
- public void testDeployment() throws Exception
- {
- try
- {
- deploy("webservices-ejb3.jar");
- }
- finally
- {
- try
- {
- undeploy("webservices-ejb3.jar");
- }
- catch (Exception e)
- {
- throw new RuntimeException(e);
- }
- }
-
- }
-
- public static Test suite() throws Exception
- {
- return getDeploySetup(WsUnitTestCase.class, "");
- }
-
-}
More information about the jboss-cvs-commits
mailing list