Search in sources :

Example 1 with WebAppDescriptor

use of com.sun.jersey.test.framework.WebAppDescriptor in project ff4j by ff4j.

the class AbstractWebResourceTestIT method configure.

/**
 * {@inheritDoc}
 */
@Override
public WebAppDescriptor configure() {
    ClientConfig cc = new DefaultClientConfig();
    cc.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);
    return new WebAppDescriptor.Builder().initParam(WebComponent.APPLICATION_CONFIG_CLASS, // 
    SimpleFF4jProvider.class.getName()).clientConfig(cc).build();
}
Also used : WebAppDescriptor(com.sun.jersey.test.framework.WebAppDescriptor) DefaultClientConfig(com.sun.jersey.api.client.config.DefaultClientConfig) ClientConfig(com.sun.jersey.api.client.config.ClientConfig) DefaultClientConfig(com.sun.jersey.api.client.config.DefaultClientConfig)

Example 2 with WebAppDescriptor

use of com.sun.jersey.test.framework.WebAppDescriptor in project ff4j by ff4j.

the class SecuredFF4JResourceTestIT method configure.

/**
 * {@inheritDoc}
 */
@Override
public WebAppDescriptor configure() {
    ClientConfig cc = new DefaultClientConfig();
    cc.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);
    return new WebAppDescriptor.Builder().initParam(WebComponent.APPLICATION_CONFIG_CLASS, // 
    SecuredFF4jProvider.class.getName()).clientConfig(cc).build();
}
Also used : WebAppDescriptor(com.sun.jersey.test.framework.WebAppDescriptor) DefaultClientConfig(com.sun.jersey.api.client.config.DefaultClientConfig) ClientConfig(com.sun.jersey.api.client.config.ClientConfig) DefaultClientConfig(com.sun.jersey.api.client.config.DefaultClientConfig)

Aggregations

ClientConfig (com.sun.jersey.api.client.config.ClientConfig)2 DefaultClientConfig (com.sun.jersey.api.client.config.DefaultClientConfig)2 WebAppDescriptor (com.sun.jersey.test.framework.WebAppDescriptor)2