Package de.hybris.platform.impex.jalo
Class PLA_12491_Test_Interceptor
- java.lang.Object
-
- de.hybris.platform.impex.jalo.PLA_12491_Test_Interceptor
-
- All Implemented Interfaces:
Interceptor
,ValidateInterceptor<TitleModel>
public class PLA_12491_Test_Interceptor extends java.lang.Object implements ValidateInterceptor<TitleModel>
ForPLA_12491_Test
.
-
-
Constructor Summary
Constructors Constructor Description PLA_12491_Test_Interceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
errorWasThrown()
void
onValidate(TitleModel model, InterceptorContext ctx)
Called in themodelService.saveAll()
method.void
reset()
void
setUpForTest(java.lang.String codeToThrowErrorOn)
-
-
-
Method Detail
-
onValidate
public void onValidate(TitleModel model, InterceptorContext ctx) throws InterceptorException
Description copied from interface:ValidateInterceptor
Called in themodelService.saveAll()
method. Validates the values of the given model.- Specified by:
onValidate
in interfaceValidateInterceptor<TitleModel>
- Parameters:
model
- the model which values has to be validatedctx
- theInterceptorContext
- Throws:
InterceptorException
- if any values of the model are not valid.
-
setUpForTest
public void setUpForTest(java.lang.String codeToThrowErrorOn)
-
errorWasThrown
public boolean errorWasThrown()
-
reset
public void reset()
-
-