Search in sources :

Example 1 with ResultFactory

use of com.opensymphony.xwork2.factory.ResultFactory in project struts by apache.

the class StrutsResultFactoryTest method testUseCustomResultBuilder.

public void testUseCustomResultBuilder() throws Exception {
    // given
    initDispatcherWithConfigs("struts-default.xml,struts-object-factory-result-builder.xml");
    // when
    ResultFactory actual = container.getInstance(ResultFactory.class);
    // then
    assertTrue(actual instanceof MyResultFactory);
}
Also used : ResultFactory(com.opensymphony.xwork2.factory.ResultFactory)

Aggregations

ResultFactory (com.opensymphony.xwork2.factory.ResultFactory)1