use of jodd.madvoc.component.ScopeDataResolver in project jodd by oblac.
the class ScopeDataResolverTest method testGenericAction.
@Test
public void testGenericAction() {
ScopeDataResolver scopeDataResolver = new ScopeDataResolver();
ScopeData[] scopeData = scopeDataResolver.resolveScopeData(GenAction.class);
ScopeData.In[] in1 = scopeData[ScopeType.REQUEST.value()].in;
ScopeData.Out[] out1 = scopeData[ScopeType.REQUEST.value()].out;
ScopeData.In in = in1[0];
ScopeData.Out out = out1[0];
assertEquals("input", in.name);
assertEquals(String.class, in.type);
assertEquals("output", out.name);
assertEquals(Integer.class, out.type);
}
use of jodd.madvoc.component.ScopeDataResolver 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);
}
Aggregations