Class TestApiOpTests
- java.lang.Object
-
- org.identityconnectors.contract.test.ContractTestBase
-
- org.identityconnectors.contract.test.TestApiOpTests
-
public class TestApiOpTests extends ContractTestBase
Contract test ofTestApiOp
. Positive test for test() is performed everytime connector facade is created and connector supports the operation. Test uses the same configuration as ValidateApiOpTest. Currently there is not ability in API to test contract in case connection is lost.
-
-
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 TestApiOpTests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Class<? extends APIOperation>>
getAPIOperations()
Ask the subclasses for theAPIOperation
.void
testTestFail()
Tests test() with configuration that should NOT be correct.-
Methods inherited from class org.identityconnectors.contract.test.ContractTestBase
dispose, getConnectorFacade, getDataProvider, getOperationOptionsByOp, init
-
-
-
-
Field Detail
-
TEST_NAME
public static final String TEST_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
testTestFail
@Test public void testTestFail()
Tests test() with configuration that should NOT be correct. Expects a RuntimeException to be thrown.
-
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
-
-