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);
}
Aggregations