Class CreateApiOpTests
- java.lang.Object
-
- org.identityconnectors.contract.test.ContractTestBase
-
- org.identityconnectors.contract.test.ObjectClassRunner
-
- org.identityconnectors.contract.test.CreateApiOpTests
-
public class CreateApiOpTests extends ObjectClassRunner
Contract test ofCreateApiOp
operation.
-
-
Field Summary
Fields Modifier and Type Field Description static String
TEST_NAME
-
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade, LOG_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description CreateApiOpTests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Class<? extends APIOperation>>
getAPIOperations()
Ask the subclasses for theAPIOperation
.String
getTestName()
Gets Test namevoid
testCreateFailUnsupportedAttribute(ObjectClass objectClass)
Tests create method with invalid Attribute, RuntimeException is expected connector developers can set the value of unsupported attribute using test property:testsuite.Create.unsupportedAttributeName
void
testCreateWithSameAttributes(ObjectClass objectClass)
Tests create twice with the same attributes.protected void
testRun(ObjectClass objectClass)
This method will be called configured number of times-
Methods inherited from class org.identityconnectors.contract.test.ObjectClassRunner
getObjectClassInfo, getOperationOptionsByOp, getSchema, isObjectClassSupported, objectClasses, testContract
-
Methods inherited from class org.identityconnectors.contract.test.ContractTestBase
dispose, getConnectorFacade, getDataProvider, init
-
-
-
-
Field Detail
-
TEST_NAME
public static final String TEST_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAPIOperations
public Set<Class<? extends APIOperation>> getAPIOperations()
Ask the subclasses for theAPIOperation
. Method returns set of required API operations that are prerequisites for running certain contract test.- Specified by:
getAPIOperations
in classContractTestBase
-
testRun
protected void testRun(ObjectClass objectClass)
This method will be called configured number of times- Specified by:
testRun
in classObjectClassRunner
-
testCreateFailUnsupportedAttribute
@ParameterizedTest @MethodSource("objectClasses") public void testCreateFailUnsupportedAttribute(ObjectClass objectClass)
Tests create method with invalid Attribute, RuntimeException is expected connector developers can set the value of unsupported attribute using test property:testsuite.Create.unsupportedAttributeName
-
testCreateWithSameAttributes
@ParameterizedTest @MethodSource("objectClasses") public void testCreateWithSameAttributes(ObjectClass objectClass)
Tests create twice with the same attributes. It should return different Uids.
-
getTestName
public String getTestName()
Gets Test name- Specified by:
getTestName
in classObjectClassRunner
- Returns:
- Test Name
-
-