Class ScriptOnResourceApiOpTests
- java.lang.Object
-
- org.identityconnectors.contract.test.ContractTestBase
-
- org.identityconnectors.contract.test.ScriptOnResourceApiOpTests
-
public class ScriptOnResourceApiOpTests extends ContractTestBase
Contract test ofScriptOnResourceApiOp
operation.- Author:
- Zdenek Louzensky
-
-
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 ScriptOnResourceApiOpTests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Class<? extends APIOperation>>
getAPIOperations()
Ask the subclasses for theAPIOperation
.OperationOptions
getOperationOptionsByOp(ObjectClass objectClass, Class<? extends APIOperation> clazz)
Gets OperationOptions suitable for specified operation.void
testRunScript()
Tests running a script with correct values from property file.void
testRunScriptFailEmptyScriptText()
Tests running a script with empty script text.void
testRunScriptFailUnknownLanguage()
Tests running a script with unknown language.-
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
-
testRunScript
@Test public void testRunScript()
Tests running a script with correct values from property file.
-
testRunScriptFailUnknownLanguage
@Test public void testRunScriptFailUnknownLanguage()
Tests running a script with unknown language.
-
testRunScriptFailEmptyScriptText
@Test public void testRunScriptFailEmptyScriptText()
Tests running a script with empty script text.
-
getOperationOptionsByOp
public OperationOptions getOperationOptionsByOp(ObjectClass objectClass, Class<? extends APIOperation> clazz)
Description copied from class:ContractTestBase
Gets OperationOptions suitable for specified operation. Should be used in all tests requiring OperationOptions unless it's special case.- Overrides:
getOperationOptionsByOp
in classContractTestBase
- Returns:
OperationOptions
-
-