org.identityconnectors.contract.test
Class TestApiOpTests

java.lang.Object
  extended by org.identityconnectors.contract.test.ContractTestBase
      extended by org.identityconnectors.contract.test.TestApiOpTests

public class TestApiOpTests
extends ContractTestBase

Contract test of TestApiOp. 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 inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade
 
Constructor Summary
TestApiOpTests()
           
 
Method Summary
 Set<Class<? extends APIOperation>> getAPIOperations()
          Ask the subclasses for the APIOperation.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestApiOpTests

public TestApiOpTests()
Method Detail

testTestFail

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 the APIOperation. Method returns set of required API operations that are prerequisites for running certain contract test.

Specified by:
getAPIOperations in class ContractTestBase


Copyright © 2012. All Rights Reserved.