Class ReflectionResourceMethodIntrospectorTest
- java.lang.Object
-
- org.soulwing.prospecto.jaxrs.runtime.discovery.ReflectionResourceMethodIntrospectorTest
-
public class ReflectionResourceMethodIntrospectorTest extends Object
Unit tests ofReflectionResourceMethodIntrospector.- Author:
- Carl Harris
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReflectionResourceMethodIntrospectorTest.MockOtherSubResourcestatic classReflectionResourceMethodIntrospectorTest.MockResourcestatic classReflectionResourceMethodIntrospectorTest.MockSubResourcestatic classReflectionResourceMethodIntrospectorTest.MockSuperResourcestatic classReflectionResourceMethodIntrospectorTest.MockTemplateResolver
-
Field Summary
Fields Modifier and Type Field Description org.jmock.integration.junit4.JUnitRuleMockerycontextstatic org.soulwing.prospecto.jaxrs.runtime.path.ModelPathMODEL_PATHstatic StringPARENT_PATHstatic StringRESOURCE_PATH
-
Constructor Summary
Constructors Constructor Description ReflectionResourceMethodIntrospectorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestAnnotatedResourceMethodWithMultipleSpecs()voidtestAnnotatedResourceMethodWithSingleSpec()voidtestAnnotatedResourceMethodWithSpecsAndSpec()voidtestAnnotatedResourceMethodWithTypeTemplateResolver()voidtestAnnotatedSubResource()voidtestLocatorMethodWithAbstractReturn()voidtestLocatorMethodWithAbstractReturnMoreThanOneSubResourceType()voidtestLocatorMethodWithAbstractReturnNoMatchingSubResourceType()voidtestLocatorMethodWithConcreteReturn()voidtestLocatorMethodWithConcreteReturnAndTypeTemplateResolver()voidtestMethodThatIsNotResourceOrLocator()
-
-
-
Field Detail
-
PARENT_PATH
public static final String PARENT_PATH
- See Also:
- Constant Field Values
-
RESOURCE_PATH
public static final String RESOURCE_PATH
- See Also:
- Constant Field Values
-
MODEL_PATH
public static final org.soulwing.prospecto.jaxrs.runtime.path.ModelPath MODEL_PATH
-
context
public final org.jmock.integration.junit4.JUnitRuleMockery context
-
-
Method Detail
-
testMethodThatIsNotResourceOrLocator
public void testMethodThatIsNotResourceOrLocator() throws Exception- Throws:
Exception
-
testLocatorMethodWithConcreteReturn
public void testLocatorMethodWithConcreteReturn() throws Exception- Throws:
Exception
-
testLocatorMethodWithConcreteReturnAndTypeTemplateResolver
public void testLocatorMethodWithConcreteReturnAndTypeTemplateResolver() throws Exception- Throws:
Exception
-
testLocatorMethodWithAbstractReturn
public void testLocatorMethodWithAbstractReturn() throws Exception- Throws:
Exception
-
testLocatorMethodWithAbstractReturnNoMatchingSubResourceType
public void testLocatorMethodWithAbstractReturnNoMatchingSubResourceType() throws Exception- Throws:
Exception
-
testLocatorMethodWithAbstractReturnMoreThanOneSubResourceType
public void testLocatorMethodWithAbstractReturnMoreThanOneSubResourceType() throws Exception- Throws:
Exception
-
testAnnotatedResourceMethodWithSingleSpec
public void testAnnotatedResourceMethodWithSingleSpec() throws Exception- Throws:
Exception
-
testAnnotatedResourceMethodWithMultipleSpecs
public void testAnnotatedResourceMethodWithMultipleSpecs() throws Exception- Throws:
Exception
-
testAnnotatedResourceMethodWithSpecsAndSpec
public void testAnnotatedResourceMethodWithSpecsAndSpec() throws Exception- Throws:
Exception
-
-