use of com.opensymphony.xwork2.Result in project struts by apache.
the class DefaultWorkflowInterceptorTest method testIncludesAndExcludesMethodWithIncludeWildcard.
public void testIncludesAndExcludesMethodWithIncludeWildcard() throws Exception {
interceptor.setExcludeMethods("input,validate");
interceptor.setIncludeMethods("*");
ValidationInterceptor validationInterceptor = create();
validationInterceptor.setExcludeMethods("input,validate");
validationInterceptor.setIncludeMethods("*");
validationInterceptor.intercept(invocation);
assertEquals(result, interceptor.intercept(invocation));
}
use of com.opensymphony.xwork2.Result in project struts by apache.
the class DefaultWorkflowInterceptorTest method testIncludesAndExcludesMethodWithExcludeWildcard.
public void testIncludesAndExcludesMethodWithExcludeWildcard() throws Exception {
interceptor.setExcludeMethods("*");
interceptor.setIncludeMethods("execute");
ValidationInterceptor validationInterceptor = create();
validationInterceptor.setExcludeMethods("*");
validationInterceptor.setIncludeMethods("execute");
validationInterceptor.intercept(invocation);
assertEquals(result, interceptor.intercept(invocation));
}
use of com.opensymphony.xwork2.Result in project struts by apache.
the class DefaultWorkflowInterceptorTest method testIncludesAndExcludesMethodAllWildCarded.
public void testIncludesAndExcludesMethodAllWildCarded() throws Exception {
interceptor.setExcludeMethods("*");
interceptor.setIncludeMethods("*");
ValidationInterceptor validationInterceptor = create();
validationInterceptor.setExcludeMethods("*");
validationInterceptor.setIncludeMethods("*");
validationInterceptor.intercept(invocation);
assertEquals(result, interceptor.intercept(invocation));
}
use of com.opensymphony.xwork2.Result in project struts by apache.
the class DefaultWorkflowInterceptorTest method testIncludesAndExcludesMethodWithIncludeWildcardAndNoMatches.
public void testIncludesAndExcludesMethodWithIncludeWildcardAndNoMatches() throws Exception {
interceptor.setExcludeMethods("execute,input,validate");
interceptor.setIncludeMethods("*");
ValidationInterceptor validationInterceptor = create();
validationInterceptor.setExcludeMethods("execute,input,validate");
validationInterceptor.setIncludeMethods("*");
validationInterceptor.intercept(invocation);
assertEquals(result, interceptor.intercept(invocation));
}
use of com.opensymphony.xwork2.Result in project struts by apache.
the class DefaultWorkflowInterceptorTest method testNoValidateAction.
public void testNoValidateAction() throws Exception {
ValidationInterceptor validationInterceptor = create();
validationInterceptor.setExcludeMethods("execute,input,validate");
validationInterceptor.setIncludeMethods("execute");
validationInterceptor.intercept(invocation);
assertEquals(result, interceptor.intercept(invocation));
}
Aggregations