use of org.jboss.as.jaxrs.deployment.JaxrsMethodParameterProcessor in project wildfly by wildfly.
the class JaxrsMethodParameterProcessorTestCase method customParameterizedTypeTest.
@Test
public void customParameterizedTypeTest() throws Exception {
providers.clear();
resources.clear();
providers.add(SimpleClassParamConverterProvider.class.getName());
resources.add(SimpleClassParameterizedTypeResource.class.getName());
JaxrsMethodParameterProcessor jProcessor = new JaxrsMethodParameterProcessor();
try {
jProcessor.testProcessor(Thread.currentThread().getContextClassLoader(), resteasyDeploymentData);
} catch (Exception e) {
Assert.fail("Test failed. It should not have thrown an exception: " + e);
}
}
use of org.jboss.as.jaxrs.deployment.JaxrsMethodParameterProcessor in project wildfly by wildfly.
the class JaxrsMethodParameterProcessorTestCase method lazyLoadAnnotationTest.
@Test
public void lazyLoadAnnotationTest() throws Exception {
providers.clear();
resources.clear();
providers.add(SimpleClassLazyParamConverter.class.getName());
resources.add(SimpleClassParamConverterResource.class.getName());
JaxrsMethodParameterProcessor jProcessor = new JaxrsMethodParameterProcessor();
try {
jProcessor.testProcessor(Thread.currentThread().getContextClassLoader(), resteasyDeploymentData);
} catch (Exception e) {
Assert.fail("Test failed. It should not have thrown an exception: " + e);
}
}
use of org.jboss.as.jaxrs.deployment.JaxrsMethodParameterProcessor in project wildfly by wildfly.
the class JaxrsMethodParameterProcessorTestCase method fromValueTest.
@Test
public void fromValueTest() throws Exception {
providers.clear();
resources.clear();
providers.add(SimpleFromValueProvider.class.getName());
resources.add(SimpleFromValueResource.class.getName());
JaxrsMethodParameterProcessor jProcessor = new JaxrsMethodParameterProcessor();
try {
jProcessor.testProcessor(Thread.currentThread().getContextClassLoader(), resteasyDeploymentData);
} catch (Exception e) {
Assert.fail("Test failed. It should not have thrown an exception: " + e);
}
}
Aggregations