use of com.opensymphony.xwork2.mock.InjectableAction in project struts by apache.
the class ObjectFactoryTest method testCreatingActionsWithInjectableParametersInConstructor.
public void testCreatingActionsWithInjectableParametersInConstructor() throws Exception {
// given
ObjectFactory of = container.getInstance(ObjectFactory.class);
// when
InjectableAction action = (InjectableAction) of.buildBean(InjectableAction.class, new HashMap<String, Object>());
// then
assertNotNull(action.getTextProvider());
assertTrue(action.getTextProvider() instanceof DummyTextProvider);
}
Aggregations