Oracle® Fusion Middleware .NET API Reference for Identity Connector Framework
12c (12.2.1.3.0) E81433-01
|
Bag of utility methods useful to connector tests. More...
Static Public Member Functions | |
static APIConfiguration | CreateTestConfiguration (SafeType< Connector > clazz, Configuration config) |
Method for convenient testing of local connectors. More... | |
static void | FillConfiguration (Configuration config, IDictionary< string, object > configData) |
Fills a configuration bean with data from the given map. More... | |
static ConnectorMessages | CreateDummyMessages () |
Creates an dummy message catalog ideal for unit testing. More... | |
static IList< ConnectorObject > | SearchToList (SearchApiOp search, ObjectClass oclass, Filter filter) |
static IList< ConnectorObject > | SearchToList (SearchApiOp search, ObjectClass oclass, Filter filter, OperationOptions options) |
static IList< ConnectorObject > | SearchToList< T > (SearchOp< T > search, ObjectClass oclass, Filter filter) |
Performs a raw, unfiltered search at the SPI level, eliminating duplicates from the result set. More... | |
static IList< ConnectorObject > | SearchToList< T > (SearchOp< T > search, ObjectClass oclass, Filter filter, OperationOptions options) |
Performs a raw, unfiltered search at the SPI level, eliminating duplicates from the result set. More... | |
static void | Search< T > (SearchOp< T > search, ObjectClass oclass, Filter filter, ResultsHandler handler, OperationOptions options) |
Performs a raw, unfiltered search at the SPI level, eliminating duplicates from the result set. More... | |
static PropertyBag | GetProperties (Type type, Assembly assembly) |
Gets the configuration properties for the specified type from the provided assembly . More... | |
static PropertyBag | GetProperties (Type type) |
Gets the configuration properties for the specified type from the calling assembly. More... | |
Static Package Functions | |
static IDictionary< string, string > | ReadConfiguration (Stream configStream) |
Reads the configuration properties from the provided configStream stream. More... | |
Package Attributes | |
const string | TestConfigEVName = "TEST_CONFIG" |
The name of the environment variable that contains the name of a certain configuration from which the test configuration properties to be loaded besides the general properties. More... | |
const string | PrivateConfigRootEVName = "PRIVATE_CONFIG_ROOT" |
The name of the environment variable that contains the path of the root directory to the private configurations. More... | |
const string | UserProfileEVName = "USERPROFILE" |
The name of the environment variable, the value of which is the location of the current user's profile directory. More... | |
Bag of utility methods useful to connector tests.
|
static |
Creates an dummy message catalog ideal for unit testing.
All messages are formatted as follows:
|
static |
Method for convenient testing of local connectors.
|
static |
Fills a configuration bean with data from the given map.
The map keys are configuration property names and the values are configuration property values.
config | the configuration bean. |
configData | the map with configuration data. |
|
static |
Gets the configuration properties for the specified type from the provided assembly .
<overloads> Gets the configuration properties for a specified type. </overloads>
type | The type, the fully qualified name (FQN) of which to be used to identify the configuration. |
assembly | The assembly, that contains the public configuration properties. Recommended to be the test project. |
The properties are loaded from public and private configuration files, the former as manifest resources, the latter as file system entries by using the specified type as root prefix. Optionally, a certain test setup can be used by defining the "TEST_CONFIG" environment variable that can be used to override the general configuration properties. Both public and private configurations can be overridden with a certain test setup.
Public configuration properties are loaded as manifest resources from the specified assembly according to the following:
The private configuration properties are loaded from the file system as follows:
NOTE that if the "PRIVATE_CONFIG_ROOT" environment variable is not defined, it will be replaced in the path with the default root which points to a directory of the current user's profile container, the path of which is constructed as follows:
For example: c:.connectors</example>
InvalidOperationException | Thrown when the root directory of the private configuration cannot be determined. |
|
static |
Gets the configuration properties for the specified type from the calling assembly.
type | The type, the fully qualified name (FQN) of which to be used to identify the configuration. |
See M:GetProperties(Type, Assembly) for details of the property loading mechanism.
|
staticpackage |
Reads the configuration properties from the provided configStream stream.
configStream | The stream containing the configuration properties. |
The configuration properties are stored in XML format. The stream, that is opened for reading or it can be read, has to contain the configuration properties in XML that adheres to the config.xsd schema embedded to the assembly of this project.
For example: <![CDATA[ <?xml version="1.0" encoding="utf-8" ?> <config> <property name="foo" value="bar"> <config> ]]>
InvalidOperationException | Thrown when the XSD used for validating the configuration is not found in the manifest. |
XmlSchemaValidationException | Thrown when the configStream contains XML that does not adhere to the schema. |
|
static |
Performs a raw, unfiltered search at the SPI level, eliminating duplicates from the result set.
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 |
T | : | class |
|
static |
Performs a raw, unfiltered search at the SPI level, eliminating duplicates from the result set.
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 |
options | The options - may be null - will be cast to an empty OperationOptions |
T | : | class |
|
static |
Performs a raw, unfiltered search at the SPI level, eliminating duplicates from the result set.
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 |
options | The options - may be null - will be cast to an empty OperationOptions |
T | : | class |
|
package |
The name of the environment variable that contains the path of the root directory to the private configurations.
|
package |
The name of the environment variable that contains the name of a certain configuration from which the test configuration properties to be loaded besides the general properties.
|
package |
The name of the environment variable, the value of which is the location of the current user's profile directory.