Class TestAddressModelValidateInterceptor
- java.lang.Object
-
- de.hybris.platform.impex.jalo.imp.TestAddressModelValidateInterceptor
-
- All Implemented Interfaces:
Interceptor,ValidateInterceptor
public class TestAddressModelValidateInterceptor extends java.lang.Object implements ValidateInterceptor
-
-
Constructor Summary
Constructors Constructor Description TestAddressModelValidateInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeactivate()java.lang.StringgetUidToGetActiveFor()voidonValidate(java.lang.Object addressModel, InterceptorContext ctx)Called in themodelService.saveAll()method.voidsetUpForTest(java.lang.String uidToGetActiveFor)booleanwasExceptionThrown()
-
-
-
Method Detail
-
onValidate
public void onValidate(java.lang.Object addressModel, InterceptorContext ctx) throws InterceptorExceptionDescription copied from interface:ValidateInterceptorCalled in themodelService.saveAll()method. Validates the values of the given model.- Specified by:
onValidatein interfaceValidateInterceptor- Parameters:
addressModel- the model which values has to be validatedctx- theInterceptorContext- Throws:
InterceptorException- if any values of the model are not valid.
-
getUidToGetActiveFor
public java.lang.String getUidToGetActiveFor()
-
wasExceptionThrown
public boolean wasExceptionThrown()
-
setUpForTest
public void setUpForTest(java.lang.String uidToGetActiveFor)
-
deactivate
public void deactivate()
-
-