Class TestHelpersImpl
- java.lang.Object
-
- org.identityconnectors.framework.impl.test.TestHelpersImpl
-
- All Implemented Interfaces:
org.identityconnectors.test.common.spi.TestHelpersSpi
public class TestHelpersImpl extends Object implements org.identityconnectors.test.common.spi.TestHelpersSpi
-
-
Constructor Summary
Constructors Constructor Description TestHelpersImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.identityconnectors.framework.common.objects.ConnectorMessagescreateDummyMessages()org.identityconnectors.framework.api.APIConfigurationcreateTestConfiguration(Class<? extends org.identityconnectors.framework.spi.Connector> clazz, Set<String> bundleContents, org.identityconnectors.test.common.PropertyBag configData, String prefix)Method for convenient testing of local connectors.org.identityconnectors.framework.api.APIConfigurationcreateTestConfiguration(Class<? extends org.identityconnectors.framework.spi.Connector> clazz, org.identityconnectors.framework.spi.Configuration config)Method for convenient testing of local connectors.voidfillConfiguration(org.identityconnectors.framework.spi.Configuration config, Map<String,? extends Object> configData)org.identityconnectors.framework.common.objects.SearchResultsearch(org.identityconnectors.framework.spi.operations.SearchOp<?> search, org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.filter.Filter filter, org.identityconnectors.framework.common.objects.ResultsHandler handler, org.identityconnectors.framework.common.objects.OperationOptions options)Performs a raw, unfiltered search at the SPI level, eliminating duplicates from the result set.
-
-
-
Method Detail
-
createTestConfiguration
public org.identityconnectors.framework.api.APIConfiguration createTestConfiguration(Class<? extends org.identityconnectors.framework.spi.Connector> clazz, org.identityconnectors.framework.spi.Configuration config)
Method for convenient testing of local connectors.- Specified by:
createTestConfigurationin interfaceorg.identityconnectors.test.common.spi.TestHelpersSpi
-
createTestConfiguration
public org.identityconnectors.framework.api.APIConfiguration createTestConfiguration(Class<? extends org.identityconnectors.framework.spi.Connector> clazz, Set<String> bundleContents, org.identityconnectors.test.common.PropertyBag configData, String prefix)
Method for convenient testing of local connectors.- Specified by:
createTestConfigurationin interfaceorg.identityconnectors.test.common.spi.TestHelpersSpi
-
fillConfiguration
public void fillConfiguration(org.identityconnectors.framework.spi.Configuration config, Map<String,? extends Object> configData)- Specified by:
fillConfigurationin interfaceorg.identityconnectors.test.common.spi.TestHelpersSpi
-
search
public org.identityconnectors.framework.common.objects.SearchResult search(org.identityconnectors.framework.spi.operations.SearchOp<?> search, org.identityconnectors.framework.common.objects.ObjectClass objectClass, org.identityconnectors.framework.common.objects.filter.Filter filter, org.identityconnectors.framework.common.objects.ResultsHandler handler, org.identityconnectors.framework.common.objects.OperationOptions options)Performs a raw, unfiltered search at the SPI level, eliminating duplicates from the result set.- Specified by:
searchin interfaceorg.identityconnectors.test.common.spi.TestHelpersSpi- 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 org.identityconnectors.framework.common.objects.ConnectorMessages createDummyMessages()
- Specified by:
createDummyMessagesin interfaceorg.identityconnectors.test.common.spi.TestHelpersSpi
-
-