org.identityconnectors.framework.impl.test
Class TestHelpersImpl

java.lang.Object
  extended by org.identityconnectors.framework.impl.test.TestHelpersImpl
All Implemented Interfaces:
TestHelpersSpi

public class TestHelpersImpl
extends Object
implements TestHelpersSpi


Constructor Summary
TestHelpersImpl()
           
 
Method Summary
 ConnectorMessages createDummyMessages()
           
 APIConfiguration createTestConfiguration(Class<? extends Connector> clazz, Configuration config)
          Method for convenient testing of local connectors.
 void fillConfiguration(Configuration config, Map<String,? extends Object> configData)
           
 void search(SearchOp<?> search, ObjectClass oclass, Filter filter, ResultsHandler handler, OperationOptions options)
          Performs a raw, unfiltered search at the SPI level, eliminating duplicates from the result set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestHelpersImpl

public TestHelpersImpl()
Method Detail

createTestConfiguration

public APIConfiguration createTestConfiguration(Class<? extends Connector> clazz,
                                                Configuration config)
Method for convenient testing of local connectors.

Specified by:
createTestConfiguration in interface TestHelpersSpi

fillConfiguration

public void fillConfiguration(Configuration config,
                              Map<String,? extends Object> configData)
Specified by:
fillConfiguration in interface TestHelpersSpi

search

public void search(SearchOp<?> search,
                   ObjectClass oclass,
                   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 interface TestHelpersSpi
Parameters:
search - The search SPI
oclass - 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 ConnectorMessages createDummyMessages()
Specified by:
createDummyMessages in interface TestHelpersSpi


Copyright © 2011. All Rights Reserved.