Class TestHelpersImpl
java.lang.Object
org.identityconnectors.framework.impl.test.TestHelpersImpl
- All Implemented Interfaces:
TestHelpersSpi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTestConfiguration(Class<? extends Connector> clazz, Set<String> bundleContents, PropertyBag configData, String prefix) Method for convenient testing of local connectors.createTestConfiguration(Class<? extends Connector> clazz, Configuration config) Method for convenient testing of local connectors.voidfillConfiguration(Configuration config, Map<String, ? extends Object> configData) search(SearchOp<?> search, ObjectClass objectClass, Filter filter, ResultsHandler handler, OperationOptions options) Performs a raw, unfiltered search at the SPI level, eliminating duplicates from the result set.
-
Constructor Details
-
TestHelpersImpl
public TestHelpersImpl()
-
-
Method Details
-
createTestConfiguration
public APIConfiguration createTestConfiguration(Class<? extends Connector> clazz, Configuration config) Method for convenient testing of local connectors.- Specified by:
createTestConfigurationin interfaceTestHelpersSpi
-
createTestConfiguration
public APIConfiguration createTestConfiguration(Class<? extends Connector> clazz, Set<String> bundleContents, PropertyBag configData, String prefix) Method for convenient testing of local connectors.- Specified by:
createTestConfigurationin interfaceTestHelpersSpi
-
fillConfiguration
- Specified by:
fillConfigurationin interfaceTestHelpersSpi
-
search
public SearchResult search(SearchOp<?> search, ObjectClass objectClass, Filter filter, ResultsHandler handler, OperationOptions options) Performs a raw, unfiltered search at the SPI level, eliminating duplicates from the result set.- Specified by:
searchin interfaceTestHelpersSpi- Parameters:
search- The search SPIobjectClass- The object class - passed through to connector so it may be null if the connecor allowing it to be null. (This is convenient for unit tests, but will not be the case in general)filter- The filter to search onhandler- The result handleroptions- The options - may be null - will be cast to an empty OperationOptions
-
createDummyMessages
- Specified by:
createDummyMessagesin interfaceTestHelpersSpi
-