public class TestHelpersImpl extends Object implements TestHelpersSpi
Constructor and Description |
---|
TestHelpersImpl() |
Modifier and Type | Method and Description |
---|---|
ConnectorMessages |
createDummyMessages() |
APIConfiguration |
createTestConfiguration(Class<? extends Connector> clazz,
Configuration config)
Method for convenient testing of local connectors.
|
APIConfiguration |
createTestConfiguration(Class<? extends Connector> clazz,
Set<String> bundleContents,
PropertyBag configData,
String prefix)
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.
|
public APIConfiguration createTestConfiguration(Class<? extends Connector> clazz, Configuration config)
createTestConfiguration
in interface TestHelpersSpi
public APIConfiguration createTestConfiguration(Class<? extends Connector> clazz, Set<String> bundleContents, PropertyBag configData, String prefix)
createTestConfiguration
in interface TestHelpersSpi
public void fillConfiguration(Configuration config, Map<String,? extends Object> configData)
fillConfiguration
in interface TestHelpersSpi
public SearchResult search(SearchOp<?> search, ObjectClass objectClass, Filter filter, ResultsHandler handler, OperationOptions options)
search
in interface TestHelpersSpi
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 OperationOptionspublic ConnectorMessages createDummyMessages()
createDummyMessages
in interface TestHelpersSpi
Copyright © 2022. All rights reserved.