org.identityconnectors.contract.test
Class CreateApiOpTests

java.lang.Object
  extended by org.identityconnectors.contract.test.ContractTestBase
      extended by org.identityconnectors.contract.test.ObjectClassRunner
          extended by org.identityconnectors.contract.test.CreateApiOpTests

public class CreateApiOpTests
extends ObjectClassRunner

Contract test of CreateApiOp operation.


Field Summary
 
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade
 
Constructor Summary
CreateApiOpTests(ObjectClass oclass)
           
 
Method Summary
 Set<Class<? extends APIOperation>> getAPIOperations()
          Ask the subclasses for the APIOperation.
 String getTestName()
          Gets Test name
 void testCreateFailUnsupportedAttribute()
          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()
          Tests create twice with the same attributes.
 void testRun()
          This method will be called configured number of times
 
Methods inherited from class org.identityconnectors.contract.test.ObjectClassRunner
data, dispose, getObjectClass, getObjectClassInfo, getOperationOptionsByOp, getSchema, getSupportedObjectClass, init, isObjectClassSupported, testContract
 
Methods inherited from class org.identityconnectors.contract.test.ContractTestBase
getConnectorFacade, getDataProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateApiOpTests

public CreateApiOpTests(ObjectClass oclass)
Method Detail

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

testRun

public void testRun()
This method will be called configured number of times

Specified by:
testRun in class ObjectClassRunner

testCreateFailUnsupportedAttribute

public void testCreateFailUnsupportedAttribute()
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

public void testCreateWithSameAttributes()
Tests create twice with the same attributes. It should return different Uids.


getTestName

public String getTestName()
Gets Test name

Specified by:
getTestName in class ObjectClassRunner
Returns:
Test Name


Copyright © 2012. All Rights Reserved.