Class 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.ConnectorMessages createDummyMessages()  
      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.
      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.
      void fillConfiguration​(org.identityconnectors.framework.spi.Configuration config, Map<String,​? extends Object> configData)  
      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.
    • Constructor Detail

      • TestHelpersImpl

        public TestHelpersImpl()
    • 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:
        createTestConfiguration in interface org.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:
        createTestConfiguration in interface org.identityconnectors.test.common.spi.TestHelpersSpi
      • fillConfiguration

        public void fillConfiguration​(org.identityconnectors.framework.spi.Configuration config,
                                      Map<String,​? extends Object> configData)
        Specified by:
        fillConfiguration in interface org.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:
        search in interface org.identityconnectors.test.common.spi.TestHelpersSpi
        Parameters:
        search - The search SPI
        objectClass - 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 on
        handler - The result handler
        options - The options - may be null - will be cast to an empty OperationOptions
      • createDummyMessages

        public org.identityconnectors.framework.common.objects.ConnectorMessages createDummyMessages()
        Specified by:
        createDummyMessages in interface org.identityconnectors.test.common.spi.TestHelpersSpi