@UnitTest public class AttributeConstraintInterceptorTest extends java.lang.Object
| Constructor and Description |
|---|
AttributeConstraintInterceptorTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
creating some dummy data.
|
void |
testPreparerWithAttributeDescriptorOnly()
Testing preparer, descriptor is set, other attributes filled with dummy data.
|
void |
testPreparerWithEmptyConstraint()
Testing Preparer with empty constraint.
|
void |
testValidatorEmptyQualifier()
Testing validator where qualifier is only missing.
|
void |
testValidatorItemModelOK()
Testing validator with an itemmodel which is ok.
|
void |
testValidatorPojoFail2()
Test validator.
|
void |
testValidatorPojoFails()
Testing validator with incorrect pojo.
|
void |
testValidatorPojoOk()
Testing validator with a correct pojo.
|
void |
testValidatorWithNullAnnotation()
Testing validator with empty constraint.
|
public void init()
public void testPreparerWithEmptyConstraint()
throws InterceptorException
InterceptorExceptionpublic void testPreparerWithAttributeDescriptorOnly()
throws InterceptorException
InterceptorExceptionpublic void testValidatorWithNullAnnotation()
public void testValidatorItemModelOK()
throws InterceptorException
InterceptorExceptionpublic void testValidatorPojoOk()
throws InterceptorException
InterceptorExceptionpublic void testValidatorPojoFail2()
throws InterceptorException
InterceptorExceptionpublic void testValidatorPojoFails()
throws InterceptorException
InterceptorExceptionpublic void testValidatorEmptyQualifier()
throws InterceptorException
InterceptorExceptionCopyright © 2018 SAP SE. All Rights Reserved.