|
OpenICF Common Test Library 1.1.0.1-SNAPSHOT Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.identityconnectors.test.common.TestHelpers
public final class TestHelpers
Bag of utility methods useful to connector tests.
| Method Summary | |
|---|---|
static org.identityconnectors.framework.common.objects.ConnectorMessages |
createDummyMessages()
Creates an dummy message catalog ideal for unit testing. |
static 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. |
static void |
fillConfiguration(org.identityconnectors.framework.spi.Configuration config,
Map<String,? extends Object> configData)
Fills a configuration bean with data from the given map. |
static PropertyBag |
getProperties(Class<?> clazz)
Loads Property bag for the specified class. |
static void |
search(org.identityconnectors.framework.spi.operations.SearchOp<?> search,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
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. |
static List<org.identityconnectors.framework.common.objects.ConnectorObject> |
searchToList(org.identityconnectors.framework.api.operations.SearchApiOp search,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.filter.Filter filter)
|
static List<org.identityconnectors.framework.common.objects.ConnectorObject> |
searchToList(org.identityconnectors.framework.api.operations.SearchApiOp search,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.filter.Filter filter,
org.identityconnectors.framework.common.objects.OperationOptions options)
|
static List<org.identityconnectors.framework.common.objects.ConnectorObject> |
searchToList(org.identityconnectors.framework.spi.operations.SearchOp<?> search,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.filter.Filter filter)
Performs a raw, unfiltered search at the SPI level, eliminating duplicates from the result set. |
static List<org.identityconnectors.framework.common.objects.ConnectorObject> |
searchToList(org.identityconnectors.framework.spi.operations.SearchOp<?> search,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.filter.Filter filter,
org.identityconnectors.framework.common.objects.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 |
| Method Detail |
|---|
public static org.identityconnectors.framework.api.APIConfiguration createTestConfiguration(Class<? extends org.identityconnectors.framework.spi.Connector> clazz,
org.identityconnectors.framework.spi.Configuration config)
public static void fillConfiguration(org.identityconnectors.framework.spi.Configuration config,
Map<String,? extends Object> configData)
config - the configuration bean.configData - the map with configuration data.public static org.identityconnectors.framework.common.objects.ConnectorMessages createDummyMessages()
message-key: arg0.toString(), ..., argn.toString
public static List<org.identityconnectors.framework.common.objects.ConnectorObject> searchToList(org.identityconnectors.framework.api.operations.SearchApiOp search,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.filter.Filter filter)
public static List<org.identityconnectors.framework.common.objects.ConnectorObject> searchToList(org.identityconnectors.framework.api.operations.SearchApiOp search,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.filter.Filter filter,
org.identityconnectors.framework.common.objects.OperationOptions options)
public static List<org.identityconnectors.framework.common.objects.ConnectorObject> searchToList(org.identityconnectors.framework.spi.operations.SearchOp<?> search,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.filter.Filter filter)
search - The search SPIoclass - 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
public static List<org.identityconnectors.framework.common.objects.ConnectorObject> searchToList(org.identityconnectors.framework.spi.operations.SearchOp<?> search,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.filter.Filter filter,
org.identityconnectors.framework.common.objects.OperationOptions options)
search - The search SPIoclass - 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 onoptions - The options - may be null - will be cast to an empty
OperationOptions
public static void search(org.identityconnectors.framework.spi.operations.SearchOp<?> search,
org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.filter.Filter filter,
org.identityconnectors.framework.common.objects.ResultsHandler handler,
org.identityconnectors.framework.common.objects.OperationOptions options)
search - The search SPIoclass - 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 static PropertyBag getProperties(Class<?> clazz)
loader.getResource(prefix + "/config/config.groovy")loader.getResource(prefix + "/config/" + cfg + "/config.groovy") optionally where cfg is passed configuration loader.getResource(prefix + "/config-private/config.groovy") loader.getResource(prefix + "/config-private/" + cfg + "/config.groovy") optionally where cfg is passed configuration
clazz - Class which FQN is used as root prefix for loading of properties
IllegalStateException - if context classloader is null
|
OpenICF Common Test Library 1.1.0.1-SNAPSHOT Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||