com.sun.jersey.test.framework.spi.container.external
Class ExternalTestContainerFactory
java.lang.Object
com.sun.jersey.test.framework.spi.container.external.ExternalTestContainerFactory
- All Implemented Interfaces:
- TestContainerFactory
public class ExternalTestContainerFactory
- extends java.lang.Object
- implements TestContainerFactory
A Web-based test container factory for creating test container instances
when the Web application is independently deployed in a separate JVM to that
of the tests. For example, the application may be deployed to the
Glassfish v2 or v3 application server.
If you would like to run your tests on a staging server, just set the machine's
IP address or fully-qualified domain name to the System Property JERSEY_HOST_NAME.
- Author:
- Srinivas.Bhimisetty@Sun.COM
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalTestContainerFactory
public ExternalTestContainerFactory()
supports
public java.lang.Class<WebAppDescriptor> supports()
- Description copied from interface:
TestContainerFactory
- Get the application descriptor class supported by this test container
factory.
- Specified by:
supports in interface TestContainerFactory
- Returns:
- the application descriptor class supported by this test container
factory.
create
public TestContainer create(java.net.URI baseUri,
AppDescriptor ad)
- Description copied from interface:
TestContainerFactory
- Create a test container.
- Specified by:
create in interface TestContainerFactory
- Parameters:
baseUri - the base URI of the application.ad - the application descriptor.
- Returns:
- the test container.
Copyright © 2010 Sun Microsystems, Inc. All Rights Reserved.