Search in sources :

Example 21 with ScopeData

use of jodd.madvoc.ScopeData in project jodd by oblac.

the class ScopeDataResolverTest method testInAnnotations.

@Test
public void testInAnnotations() {
    ScopeDataResolver scopeDataResolver = new ScopeDataResolver();
    ScopeData[] scopeData = scopeDataResolver.resolveScopeData(Action.class);
    ScopeData.In[] in1 = scopeData[ScopeType.REQUEST.value()].in;
    ScopeData.In in = in1[0];
    assertEquals("input", in.name);
    assertEquals(String.class, in.type);
}
Also used : ScopeDataResolver(jodd.madvoc.component.ScopeDataResolver) In(jodd.madvoc.meta.In) ScopeData(jodd.madvoc.ScopeData) Test(org.junit.Test)

Aggregations

ScopeData (jodd.madvoc.ScopeData)21 Enumeration (java.util.Enumeration)6 HttpServletRequest (javax.servlet.http.HttpServletRequest)6 ServletContext (javax.servlet.ServletContext)4 In (jodd.madvoc.meta.In)4 Out (jodd.madvoc.meta.Out)3 HttpServletResponse (javax.servlet.http.HttpServletResponse)2 HttpSession (javax.servlet.http.HttpSession)2 ScopeType (jodd.madvoc.ScopeType)2 ScopeDataResolver (jodd.madvoc.component.ScopeDataResolver)2 InOut (jodd.madvoc.meta.InOut)2 Test (org.junit.Test)2 IOException (java.io.IOException)1 Annotation (java.lang.annotation.Annotation)1 ArrayList (java.util.ArrayList)1 Cookie (javax.servlet.http.Cookie)1 ClassDescriptor (jodd.introspector.ClassDescriptor)1 PropertyDescriptor (jodd.introspector.PropertyDescriptor)1 ActionConfig (jodd.madvoc.ActionConfig)1 ActionConfigSet (jodd.madvoc.ActionConfigSet)1