Class TestHelpersImpl
- java.lang.Object
-
- org.identityconnectors.framework.impl.test.TestHelpersImpl
-
- All Implemented Interfaces:
TestHelpersSpi
public class TestHelpersImpl extends Object implements TestHelpersSpi
-
-
Constructor Summary
Constructors Constructor Description TestHelpersImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectorMessages
createDummyMessages()
APIConfiguration
createTestConfiguration(Class<? extends Connector> clazz, Set<String> bundleContents, PropertyBag configData, String prefix)
Method for convenient testing of local connectors.APIConfiguration
createTestConfiguration(Class<? extends Connector> clazz, Configuration config)
Method for convenient testing of local connectors.void
fillConfiguration(Configuration config, Map<String,? extends Object> configData)
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.
-
-
-
Method Detail
-
createTestConfiguration
public APIConfiguration createTestConfiguration(Class<? extends Connector> clazz, Configuration config)
Method for convenient testing of local connectors.- Specified by:
createTestConfiguration
in 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:
createTestConfiguration
in interfaceTestHelpersSpi
-
fillConfiguration
public void fillConfiguration(Configuration config, Map<String,? extends Object> configData)
- Specified by:
fillConfiguration
in 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:
search
in 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
public ConnectorMessages createDummyMessages()
- Specified by:
createDummyMessages
in interfaceTestHelpersSpi
-
-