com.sun.jersey.test.framework.spi.container
Interface TestContainerFactory

All Known Implementing Classes:
ExternalTestContainerFactory, GrizzlyTestContainerFactory, GrizzlyWebTestContainerFactory, HTTPContainerFactory, InMemoryTestContainerFactory

public interface TestContainerFactory

A test container factory responsible for creating test containers.

Author:
Paul.Sandoz@Sun.COM

Method Summary
 TestContainer create(URI baseUri, AppDescriptor ad)
          Create a test container.
<T extends AppDescriptor>
Class<T>
supports()
          Get the application descriptor class supported by this test container factory.
 

Method Detail

supports

<T extends AppDescriptor> Class<T> supports()
Get the application descriptor class supported by this test container factory.

Type Parameters:
T - the type of application descriptor.
Returns:
the application descriptor class supported by this test container factory.

create

TestContainer create(URI baseUri,
                     AppDescriptor ad)
                     throws IllegalArgumentException
Create a test container.

Parameters:
baseUri - the base URI of the application.
ad - the application descriptor.
Returns:
the test container.
Throws:
IllegalArgumentException - if ad is not an appropriate instance of an application descriptor supported by this test container factory.


Copyright © 2013 Oracle Corporation. All Rights Reserved.