Search in sources :

Example 1 with ServletWebContext

use of org.apache.commons.chain.web.servlet.ServletWebContext in project sonarqube by SonarSource.

the class TestWrappingLookupCommand method testWrapContextSubclass.

public void testWrapContextSubclass() throws Exception {
    WrappingLookupCommand command = new WrappingLookupCommand();
    command.setWrapperClassName(ServletActionContext.class.getName());
    Context testContext = new ServletWebContext();
    Context wrapped = command.getContext(testContext);
    assertNotNull(wrapped);
    assertTrue(wrapped instanceof ServletActionContext);
}
Also used : ServletWebContext(org.apache.commons.chain.web.servlet.ServletWebContext) ServletActionContext(org.apache.struts.chain.contexts.ServletActionContext) Context(org.apache.commons.chain.Context) ServletWebContext(org.apache.commons.chain.web.servlet.ServletWebContext) ServletActionContext(org.apache.struts.chain.contexts.ServletActionContext)

Aggregations

Context (org.apache.commons.chain.Context)1 ServletWebContext (org.apache.commons.chain.web.servlet.ServletWebContext)1 ServletActionContext (org.apache.struts.chain.contexts.ServletActionContext)1