org.identityconnectors.contract.test
Class ContractTestBase

java.lang.Object
  extended by org.identityconnectors.contract.test.ContractTestBase
Direct Known Subclasses:
ObjectClassRunner, SchemaApiOpTests, ScriptOnConnectorApiOpTests, ScriptOnResourceApiOpTests, TestApiOpTests, ValidateApiOpTests

public abstract class ContractTestBase
extends Object

Base class of all contract tests.

Author:
Zdenek Louzensky

Field Summary
protected  ConnectorFacade _connFacade
           
 
Constructor Summary
ContractTestBase()
           
 
Method Summary
 void dispose()
          Dispose the test environment, do the cleanup.
abstract  Set<Class<? extends APIOperation>> getAPIOperations()
          Ask the subclasses for the APIOperation.
 ConnectorFacade getConnectorFacade()
          Always need a ConnectorFacade.
static DataProvider getDataProvider()
          Gets preconfigured DataProvider instance
 OperationOptions getOperationOptionsByOp(Class<? extends APIOperation> clazz)
          Gets OperationOptions suitable for specified operation.
 void init()
          Initialize the environment needed to run the test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_connFacade

protected ConnectorFacade _connFacade
Constructor Detail

ContractTestBase

public ContractTestBase()
Method Detail

init

public void init()
Initialize the environment needed to run the test. Called once per test method (@Before).


dispose

public void dispose()
Dispose the test environment, do the cleanup. Called once per test method (@After).


getAPIOperations

public abstract Set<Class<? extends APIOperation>> getAPIOperations()
Ask the subclasses for the APIOperation. Method returns set of required API operations that are prerequisites for running certain contract test.


getDataProvider

public static DataProvider getDataProvider()
Gets preconfigured DataProvider instance

Returns:
DataProvider

getConnectorFacade

public ConnectorFacade getConnectorFacade()
Always need a ConnectorFacade.


getOperationOptionsByOp

public OperationOptions getOperationOptionsByOp(Class<? extends APIOperation> clazz)
Gets OperationOptions suitable for specified operation. Should be used in all tests requiring OperationOptions unless it's special case.

Returns:
OperationOptions


Copyright © 2012. All Rights Reserved.