Search in sources :

Example 6 with JaxrsMethodParameterProcessor

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);
    }
}
Also used : SimpleClassParamConverterProvider(org.jboss.as.jaxrs.rsources.SimpleClassParamConverterProvider) JaxrsMethodParameterProcessor(org.jboss.as.jaxrs.deployment.JaxrsMethodParameterProcessor) SimpleClassParameterizedTypeResource(org.jboss.as.jaxrs.rsources.SimpleClassParameterizedTypeResource) Test(org.junit.Test)

Example 7 with JaxrsMethodParameterProcessor

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);
    }
}
Also used : SimpleClassLazyParamConverter(org.jboss.as.jaxrs.rsources.SimpleClassLazyParamConverter) JaxrsMethodParameterProcessor(org.jboss.as.jaxrs.deployment.JaxrsMethodParameterProcessor) SimpleClassParamConverterResource(org.jboss.as.jaxrs.rsources.SimpleClassParamConverterResource) Test(org.junit.Test)

Example 8 with JaxrsMethodParameterProcessor

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);
    }
}
Also used : SimpleFromValueProvider(org.jboss.as.jaxrs.rsources.SimpleFromValueProvider) SimpleFromValueResource(org.jboss.as.jaxrs.rsources.SimpleFromValueResource) JaxrsMethodParameterProcessor(org.jboss.as.jaxrs.deployment.JaxrsMethodParameterProcessor) Test(org.junit.Test)

Aggregations

JaxrsMethodParameterProcessor (org.jboss.as.jaxrs.deployment.JaxrsMethodParameterProcessor)8 Test (org.junit.Test)7 SimpleClassParamConverterProvider (org.jboss.as.jaxrs.rsources.SimpleClassParamConverterProvider)3 SimpleClassParamConverterResource (org.jboss.as.jaxrs.rsources.SimpleClassParamConverterResource)2 CapabilityServiceSupport (org.jboss.as.controller.capability.CapabilityServiceSupport)1 JaxrsAnnotationProcessor (org.jboss.as.jaxrs.deployment.JaxrsAnnotationProcessor)1 JaxrsCdiIntegrationProcessor (org.jboss.as.jaxrs.deployment.JaxrsCdiIntegrationProcessor)1 JaxrsComponentDeployer (org.jboss.as.jaxrs.deployment.JaxrsComponentDeployer)1 JaxrsDependencyProcessor (org.jboss.as.jaxrs.deployment.JaxrsDependencyProcessor)1 JaxrsIntegrationProcessor (org.jboss.as.jaxrs.deployment.JaxrsIntegrationProcessor)1 JaxrsScanningProcessor (org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor)1 JaxrsSpringProcessor (org.jboss.as.jaxrs.deployment.JaxrsSpringProcessor)1 PrimitiveParamResource (org.jboss.as.jaxrs.rsources.PrimitiveParamResource)1 SimpleClassLazyParamConverter (org.jboss.as.jaxrs.rsources.SimpleClassLazyParamConverter)1 SimpleClassParameterizedTypeResource (org.jboss.as.jaxrs.rsources.SimpleClassParameterizedTypeResource)1 SimpleFromStringProvider (org.jboss.as.jaxrs.rsources.SimpleFromStringProvider)1 SimpleFromStringResource (org.jboss.as.jaxrs.rsources.SimpleFromStringResource)1 SimpleFromValueProvider (org.jboss.as.jaxrs.rsources.SimpleFromValueProvider)1 SimpleFromValueResource (org.jboss.as.jaxrs.rsources.SimpleFromValueResource)1 SimpleValueOfProvider (org.jboss.as.jaxrs.rsources.SimpleValueOfProvider)1