@Test public void doesNotAddInterceptorWhenValidationModeNoneIsConfigured() { Set<BapiInterceptor> interceptors = new HashSet<>(); final SessionManagerConfig config = new SessionManagerConfig().setValidationMode(ValidationMode.NONE); BeanValidationActivator.activateBeanValidation(interceptors, config); assertThat(interceptors).hasSize(0); }
public static void activateBeanValidation(final Set<BapiInterceptor> bapiInterceptors, final SessionManagerConfig sessionManagerConfig) { ValidationMode validationMode = sessionManagerConfig.getValidationMode(); if (validationMode != ValidationMode.NONE) { if (shouldActivateBeanValidation(validationMode)) { LOGGER.info("Activating Bean Validation"); activateBeanValidationWithTypeSafeActivator(bapiInterceptors, sessionManagerConfig); } } }
BeanValidationActivator { public static void activateBeanValidation(final Set<BapiInterceptor> bapiInterceptors, final SessionManagerConfig sessionManagerConfig) { ValidationMode validationMode = sessionManagerConfig.getValidationMode(); if (validationMode != ValidationMode.NONE) { if (shouldActivateBeanValidation(validationMode)) { LOGGER.info("Activating Bean Validation"); activateBeanValidationWithTypeSafeActivator(bapiInterceptors, sessionManagerConfig); } } } }
BeanValidationActivator { public static void activateBeanValidation(final Set<BapiInterceptor> bapiInterceptors, final SessionManagerConfig sessionManagerConfig) { ValidationMode validationMode = sessionManagerConfig.getValidationMode(); if (validationMode != ValidationMode.NONE) { if (shouldActivateBeanValidation(validationMode)) { LOGGER.info("Activating Bean Validation"); activateBeanValidationWithTypeSafeActivator(bapiInterceptors, sessionManagerConfig); } } } private  BeanValidationActivator(); }
BeanValidationActivator { public static void activateBeanValidation(final Set<BapiInterceptor> bapiInterceptors, final SessionManagerConfig sessionManagerConfig) { ValidationMode validationMode = sessionManagerConfig.getValidationMode(); if (validationMode != ValidationMode.NONE) { if (shouldActivateBeanValidation(validationMode)) { LOGGER.info("Activating Bean Validation"); activateBeanValidationWithTypeSafeActivator(bapiInterceptors, sessionManagerConfig); } } } private  BeanValidationActivator(); static void activateBeanValidation(final Set<BapiInterceptor> bapiInterceptors,
                                              final SessionManagerConfig sessionManagerConfig); }
BeanValidationActivator { public static void activateBeanValidation(final Set<BapiInterceptor> bapiInterceptors, final SessionManagerConfig sessionManagerConfig) { ValidationMode validationMode = sessionManagerConfig.getValidationMode(); if (validationMode != ValidationMode.NONE) { if (shouldActivateBeanValidation(validationMode)) { LOGGER.info("Activating Bean Validation"); activateBeanValidationWithTypeSafeActivator(bapiInterceptors, sessionManagerConfig); } } } private  BeanValidationActivator(); static void activateBeanValidation(final Set<BapiInterceptor> bapiInterceptors,
                                              final SessionManagerConfig sessionManagerConfig);  }