public class TestAddressModelValidateInterceptor extends Object implements ValidateInterceptor
| Constructor and Description |
|---|
TestAddressModelValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
deactivate() |
String |
getUidToGetActiveFor() |
void |
onValidate(Object addressModel,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setUpForTest(String uidToGetActiveFor) |
boolean |
wasExceptionThrown() |
public void onValidate(Object addressModel, InterceptorContext ctx) throws InterceptorException
ValidateInterceptormodelService.saveAll() method. Validates the values of the given model.onValidate in interface ValidateInterceptoraddressModel - the model which values has to be validatedctx - the InterceptorContextInterceptorException - if any values of the model are not valid.public String getUidToGetActiveFor()
public boolean wasExceptionThrown()
public void setUpForTest(String uidToGetActiveFor)
public void deactivate()
Copyright © 2017 SAP SE. All Rights Reserved.