public class PLA_12491_Test_Interceptor extends Object implements ValidateInterceptor<TitleModel>
PLA_12491_Test.| Constructor and Description |
|---|
PLA_12491_Test_Interceptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
errorWasThrown() |
void |
onValidate(TitleModel model,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
reset() |
void |
setUpForTest(String codeToThrowErrorOn) |
public void onValidate(TitleModel model, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptor<TitleModel>model - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.public void setUpForTest(String codeToThrowErrorOn)
public boolean errorWasThrown()
public void reset()
Copyright © 2017 SAP SE. All Rights Reserved.