public class TestAddressModelValidateInterceptor extends java.lang.Object implements ValidateInterceptor
| Constructor and Description |
|---|
TestAddressModelValidateInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
deactivate() |
java.lang.String |
getUidToGetActiveFor() |
void |
onValidate(java.lang.Object addressModel,
InterceptorContext ctx)
Called in the
modelService.saveAll() method. |
void |
setUpForTest(java.lang.String uidToGetActiveFor) |
boolean |
wasExceptionThrown() |
public void onValidate(java.lang.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 java.lang.String getUidToGetActiveFor()
public boolean wasExceptionThrown()
public void setUpForTest(java.lang.String uidToGetActiveFor)
public void deactivate()
Copyright © 2018 SAP SE. All Rights Reserved.