use of jodd.madvoc.config.ScopeData in project jodd by oblac.
the class ScopeDataInspectorTest method testInAnnotations.
@Test
void testInAnnotations() {
ScopeDataInspector scopeDataInspector = new ScopeDataInspector();
PetiteContainer madpc = new PetiteContainer();
scopeDataInspector.scopeResolver = new ScopeResolver();
scopeDataInspector.scopeResolver.madpc = madpc;
madpc.addBean("madvocEncoding", new MadvocEncoding());
ScopeData scopeData = scopeDataInspector.inspectClassScopes(Action.class);
InjectionPoint[] in1 = scopeData.in();
InjectionPoint in = in1[0];
assertEquals("input", in.name());
assertEquals(String.class, in.type());
}
Aggregations