@Test public void testSkipValidationForExcludedMethod() throws Exception { HibernateValidatorInterceptor testInterceptor = new HibernateValidatorInterceptor(); String testMethodName = "excludedMethod"; testInterceptor.setExcludeMethods(testMethodName); verifySkipValidationForMethod(testInterceptor, testMethodName); }
public void setExcludeMethods(String excludeMethods) { excludedMethodsSet.clear(); if (StringUtils.isNotBlank(excludeMethods)) { String[] excludedMethodsList = excludeMethods.split(","); for (String excludedMethod : excludedMethodsList) { if (StringUtils.isNotBlank(excludedMethod)) { excludedMethodsSet.add(excludedMethod.trim()); } } } }
HibernateValidatorInterceptor extends AbstractInterceptor { public void setExcludeMethods(String excludeMethods) { excludedMethodsSet.clear(); if (StringUtils.isNotBlank(excludeMethods)) { String[] excludedMethodsList = excludeMethods.split(","); for (String excludedMethod : excludedMethodsList) { if (StringUtils.isNotBlank(excludedMethod)) { excludedMethodsSet.add(excludedMethod.trim()); } } } } }
HibernateValidatorInterceptor extends AbstractInterceptor { public void setExcludeMethods(String excludeMethods) { excludedMethodsSet.clear(); if (StringUtils.isNotBlank(excludeMethods)) { String[] excludedMethodsList = excludeMethods.split(","); for (String excludedMethod : excludedMethodsList) { if (StringUtils.isNotBlank(excludedMethod)) { excludedMethodsSet.add(excludedMethod.trim()); } } } } HibernateValidatorInterceptor(); }
HibernateValidatorInterceptor extends AbstractInterceptor { public void setExcludeMethods(String excludeMethods) { excludedMethodsSet.clear(); if (StringUtils.isNotBlank(excludeMethods)) { String[] excludedMethodsList = excludeMethods.split(","); for (String excludedMethod : excludedMethodsList) { if (StringUtils.isNotBlank(excludedMethod)) { excludedMethodsSet.add(excludedMethod.trim()); } } } } HibernateValidatorInterceptor(); String getExcludeMethods(); void setExcludeMethods(String excludeMethods); @SuppressWarnings("PMD.SignatureDeclareThrowsException") @Override String intercept(ActionInvocation invocation); }
HibernateValidatorInterceptor extends AbstractInterceptor { public void setExcludeMethods(String excludeMethods) { excludedMethodsSet.clear(); if (StringUtils.isNotBlank(excludeMethods)) { String[] excludedMethodsList = excludeMethods.split(","); for (String excludedMethod : excludedMethodsList) { if (StringUtils.isNotBlank(excludedMethod)) { excludedMethodsSet.add(excludedMethod.trim()); } } } } HibernateValidatorInterceptor(); String getExcludeMethods(); void setExcludeMethods(String excludeMethods); @SuppressWarnings("PMD.SignatureDeclareThrowsException") @Override String intercept(ActionInvocation invocation);  }