public class AttributeTests extends ObjectClassRunner
Test that attributes satisfy contract.
Tests check:_connFacade, LOG_SEPARATOR
Constructor and Description |
---|
AttributeTests() |
Modifier and Type | Method and Description |
---|---|
Set<Class<? extends APIOperation>> |
getAPIOperations()
Ask the subclasses for the
APIOperation . |
String |
getTestName()
Gets Test name
|
void |
testNonReadable(ObjectClass objectClass)
Non readable attributes should _not_ be returned by default
API operations for acquiring attributes:
GetApiOp
|
void |
testNonUpdateable(ObjectClass objectClass)
Update of non-updateable attribute is not acceptable.
|
void |
testRequirableIsCreatable(ObjectClass objectClass)
Required attributes must be creatable.
|
void |
testReturnedByDefault(ObjectClass objectClass)
Not returned by default attributes should not be returned, unless
specified in attributesToGet (
OperationOptions )
API operations for acquiring attributes:
GetApiOp
SearchApiOp
SyncApiOp
|
protected void |
testRun(ObjectClass objectClass)
This method will be called configured number of times
|
getObjectClassInfo, getOperationOptionsByOp, getSchema, isObjectClassSupported, objectClasses, testContract
dispose, getConnectorFacade, getDataProvider, init
public Set<Class<? extends APIOperation>> getAPIOperations()
ContractTestBase
APIOperation
.
Method returns set of required API operations that are prerequisites for
running certain contract test.getAPIOperations
in class ContractTestBase
protected void testRun(ObjectClass objectClass)
testRun
in class ObjectClassRunner
public String getTestName()
getTestName
in class ObjectClassRunner
@ParameterizedTest @MethodSource(value="objectClasses") public void testNonReadable(ObjectClass objectClass)
Non readable attributes should _not_ be returned by default
API operations for acquiring attributes: GetApiOp
@ParameterizedTest @MethodSource(value="objectClasses") public void testReturnedByDefault(ObjectClass objectClass)
Not returned by default attributes should not be returned, unless
specified in attributesToGet (OperationOptions
)
API operations for acquiring attributes:
@ParameterizedTest @MethodSource(value="objectClasses") public void testNonUpdateable(ObjectClass objectClass)
API operations for acquiring attributes: GetApiOp
@ParameterizedTest @MethodSource(value="objectClasses") public void testRequirableIsCreatable(ObjectClass objectClass)
Copyright © 2022. All rights reserved.