the setup around the suite, specifying // the name of the servant class that should be // instantiated by the server process. ClientServerSetup setup = new ClientServerSetup (suite, "my.corba.ServerImpl"); // Add test cases, passing the setup as an // additional constructor parameter. suite.addTest (new MyTest ("testSomething", setup)); ... // Return the setup, not the suite! return setup; } }
The individual test cases can then access the setup in a convenient way. For details, see {@link ClientServerTestCase}.
@author Andre Spiegel
@version $Id: ClientServerSetup.java,v 1.24 2006/05/22 15:28:53 nick.cross Exp $
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.