KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > jbossnet > servicename > ServiceNameTestCase


1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */

7 package org.jboss.test.jbossnet.servicename;
8
9 import junit.framework.Test;
10 import org.jboss.test.JBossTestCase;
11
12 /**
13  * [ 1065038 ] Axis service name cannot contain forward slash
14  *
15  * @author Thomas.Diesler@jboss.org
16  * @version $Revision: 1.1.2.2 $
17  */

18 public class ServiceNameTestCase extends JBossTestCase
19 {
20    public ServiceNameTestCase(String JavaDoc name)
21    {
22       super(name);
23    }
24
25    public void testHelloString() throws Exception JavaDoc
26    {
27       HelloBeanServiceLocator locator = new HelloBeanServiceLocator();
28       HelloBean port = locator.getHello();
29       Greeting ret = port.sayHello();
30       assertEquals("Hello !!!", ret.getGreeting());
31    }
32
33    /** Deploy the test ear */
34    public static Test suite() throws Exception JavaDoc
35    {
36       return getDeploySetup(ServiceNameTestCase.class, "jbossnet-servicename.ear");
37    }
38 }
39
Popular Tags