CVS: ivory/src/test/org/codehaus/ivory/axis/list ListService.java,NONE,1.1 ListServiceTest.xml,NONE,1.1 DefaultListService.java,NONE,1.1 ListServiceTest.java,NONE,1.1
[email protected] Sun, 4 May 2003 15:25:58 -0500
| Newsgroups | gmane.comp.java.plexus.devel |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/plexus/ivory/src/test/org/codehaus/ivory/axis/list In directory eng.werken.com:/tmp/cvs-serv24814/src/test/org/codehaus/ivory/axis/list Added Files: ListService.java ListServiceTest.xml DefaultListService.java ListServiceTest.java Log Message: - Documentation corrections - move the servlets to the plexus package. - IvoryTestCase which should make testing services a little easier. See the unit tests if you're interested. More testing utilities coming soon! - You do not need to call AxisServer.start() as it turns out, the AxisServer constructor already does that. - AxisService will not expose methods that return a List or take it as a parameter. Axis does not know how to hanlde this yet. --- NEW FILE: ListService.java --- package org.codehaus.ivory.axis.list; import java.util.List; /** * Service to test the ability to return the java.util.List class correctly. * * @author <a href="mailto:[email protected]">Dan Diephouse</a> * @since May 4, 2003 */ public interface ListService { final public static String ROLE = ListService.class.getName(); public List getDevelopers(); } --- NEW FILE: ListServiceTest.xml --- <plexus> <components> <component> <role>org.codehaus.ivory.axis.AxisService</role> <implementation>org.codehaus.ivory.axis.DefaultAxisService</implementation> <configuration> <services> <avalonService role="org.codehaus.ivory.axis.list.ListService" name="List"/> </services> </configuration> </component> <component> <role>org.codehaus.ivory.axis.list.ListService</role> <implementation>org.codehaus.ivory.list.DefaultListService</implementation> <configuration/> </component> </components> </plexus> --- NEW FILE: DefaultListService.java --- package org.codehaus.ivory.axis.list; import java.util.ArrayList; import java.util.List; /** * @author <a href="mailto:[email protected]">Dan Diephouse</a> * @since May 4, 2003 */ public class DefaultListService implements ListService { /** * @see org.codehaus.ivory.axis.list.ListService#getDevelopers() */ public List getDevelopers() { List list = new ArrayList(); list.add( "Dan Diephouse" ); list.add( "Jason van Zyl" ); return list; } } --- NEW FILE: ListServiceTest.java --- package org.codehaus.ivory.axis.list; import org.codehaus.ivory.axis.plexus.IvoryTestCase; /** * Tests the DefaultAxisService. * * @author <a href="mailto:[email protected]">Dan Diephouse</a> * @since Mar 9, 2003 */ public class ListServiceTest extends IvoryTestCase { public ListServiceTest(String name) { super(name); } public void testListSerialization() throws Exception { // Doesn't work yet. // assertValidWSDL( "List", "getDevelopers" ); } }