public class IntegrationTestTools extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DBTABLE_CONNECTOR_TYPE |
static String |
DUMMY_CONNECTOR_TYPE |
static Trace |
LOGGER |
Constructor and Description |
---|
IntegrationTestTools() |
Modifier and Type | Method and Description |
---|---|
static void |
applyResourceSchema(ShadowType accountType,
ResourceType resourceType,
PrismContext prismContext) |
static <T> void |
assertAttribute(PrismObject<? extends ShadowType> shadow,
QName name,
T... expectedValues) |
static <T> void |
assertAttribute(ShadowType shadowType,
QName name,
T... expectedValues) |
static <T> void |
assertAttribute(ShadowType shadow,
ResourceType resource,
String name,
T... expectedValues) |
static <T> void |
assertAttribute(String message,
ShadowType repoShadow,
QName name,
T... expectedValues) |
static void |
assertAttributeDefinition(ResourceAttribute<?> attr,
QName expectedType,
int minOccurs,
int maxOccurs,
boolean canRead,
boolean canCreate,
boolean canUpdate,
Class<?> expetcedAttributeDefinitionClass) |
static void |
assertAttributeNotNull(ShadowType repoShadow,
QName name) |
static void |
assertAttributeNotNull(String message,
ShadowType repoShadow,
QName name) |
static void |
assertBetween(String message,
XMLGregorianCalendar start,
XMLGregorianCalendar end,
XMLGregorianCalendar actual) |
static void |
assertCreateTimestamp(PrismObject<? extends ObjectType> object,
XMLGregorianCalendar start,
XMLGregorianCalendar end) |
static <T> void |
assertEqualsCollection(String message,
Collection<T> expectedValues,
Collection<T> actualValues) |
static <T> void |
assertEqualsCollection(String message,
Collection<T> expectedValues,
T[] actualValues) |
static <T> void |
assertEqualsCollection(String message,
T[] expectedValues,
Collection<T> actualValues) |
static void |
assertEqualsTimestamp(String message,
XMLGregorianCalendar expected,
XMLGregorianCalendar actual) |
static <T> void |
assertExtensionProperty(PrismObject<? extends ObjectType> object,
QName propertyName,
T... expectedValues) |
static void |
assertIcfResourceSchemaSanity(ResourceSchema resourceSchema,
ResourceType resourceType) |
static void |
assertIcfsNameAttribute(PrismObject<? extends ShadowType> repoShadow,
String value) |
static void |
assertIcfsNameAttribute(ShadowType repoShadow,
String value) |
static void |
assertInMessageRecursive(Throwable e,
String substring) |
static void |
assertModifyTimestamp(PrismObject<? extends ObjectType> object,
XMLGregorianCalendar start,
XMLGregorianCalendar end) |
static <T> void |
assertNoAttribute(PrismObject<? extends ShadowType> shadow,
QName name) |
static <T> void |
assertNoExtensionProperty(PrismObject<? extends ObjectType> object,
QName propertyName) |
static void |
assertNoRepoCache() |
static void |
assertNotEmpty(PolyString ps) |
static void |
assertNotEmpty(PolyStringType ps) |
static void |
assertNotEmpty(QName qname) |
static void |
assertNotEmpty(String s) |
static void |
assertNotEmpty(String message,
PolyString ps) |
static void |
assertNotEmpty(String message,
PolyStringType ps) |
static void |
assertNotEmpty(String message,
QName qname) |
static void |
assertNotEmpty(String message,
String s) |
static void |
assertNotInMessageRecursive(Throwable e,
String substring) |
static void |
assertProvisioningAccountShadow(PrismObject<ShadowType> account,
ResourceType resourceType,
Class<?> expetcedAttributeDefinitionClass) |
static void |
assertScripts(List<ScriptHistoryEntry> scriptsHistory,
ProvisioningScriptSpec... expectedScripts) |
static void |
assertTestResourceFailure(OperationResult testResult,
ConnectorTestOperation operation) |
static void |
assertTestResourceNotApplicable(OperationResult testResult,
ConnectorTestOperation operation) |
static void |
assertTestResourceSuccess(OperationResult testResult,
ConnectorTestOperation operation) |
static void |
checkAccountShadow(ShadowType shadowType,
ResourceType resourceType,
RepositoryService repositoryService,
ObjectChecker<ShadowType> checker,
PrismContext prismContext,
OperationResult parentResult) |
static void |
checkAllShadows(ResourceType resourceType,
RepositoryService repositoryService,
ObjectChecker<ShadowType> checker,
PrismContext prismContext) |
static void |
checkEntitlementShadow(ShadowType shadowType,
ResourceType resourceType,
RepositoryService repositoryService,
ObjectChecker<ShadowType> checker,
String objectClassLocalName,
PrismContext prismContext,
OperationResult parentResult) |
static void |
checkShadow(ShadowType shadowType,
ResourceType resourceType,
RepositoryService repositoryService,
ObjectChecker<ShadowType> checker,
PrismContext prismContext,
OperationResult parentResult) |
static ObjectQuery |
createAllShadowsQuery(ResourceType resourceType,
PrismContext prismContext) |
static ObjectQuery |
createAllShadowsQuery(ResourceType resourceType,
QName objectClass,
PrismContext prismContext) |
static ObjectQuery |
createAllShadowsQuery(ResourceType resourceType,
String objectClassLocalName,
PrismContext prismContext) |
static void |
display(OperationResult result) |
static void |
display(org.opends.server.types.SearchResultEntry response) |
static void |
display(String message) |
static void |
display(String message,
Collection collection) |
static void |
display(String title,
Dumpable dumpable) |
static void |
display(String title,
org.opends.server.types.Entry entry) |
static void |
display(String title,
List<Element> elements) |
static void |
display(String title,
Object value) |
static void |
display(String message,
ObjectType o) |
static void |
display(String title,
OperationResult result) |
static void |
display(String title,
OperationResultType result) |
static void |
display(String message,
PrismContainer<?> propertyContainer) |
static void |
display(String message,
org.opends.server.types.SearchResultEntry response) |
static void |
display(String title,
String value) |
static void |
display(String message,
Task task) |
static void |
display(String title,
Throwable e) |
static void |
displayJaxb(String title,
Object o,
QName qname) |
static void |
displayObjectTypeCollection(String message,
Collection<? extends ObjectType> collection) |
static void |
displayScripts(List<ScriptHistoryEntry> scriptsHistory) |
static void |
displayXml(String message,
PrismObject<? extends ObjectType> object) |
static String |
getAttributeValue(ShadowType repoShadow,
QName name) |
static <T> Collection<T> |
getAttributeValues(PrismObject<? extends ShadowType> shadow,
QName name) |
static <T> Collection<T> |
getAttributeValues(ShadowType shadowType,
QName name) |
static boolean |
hasInMessageRecursive(Throwable e,
String substring) |
static void |
waitFor(String message,
Checker checker,
int timeoutInterval) |
static void |
waitFor(String message,
Checker checker,
int timeoutInterval,
long sleepInterval) |
public static final String DUMMY_CONNECTOR_TYPE
public static final String DBTABLE_CONNECTOR_TYPE
public static Trace LOGGER
public static void assertTestResourceSuccess(OperationResult testResult, ConnectorTestOperation operation)
public static void assertTestResourceFailure(OperationResult testResult, ConnectorTestOperation operation)
public static void assertTestResourceNotApplicable(OperationResult testResult, ConnectorTestOperation operation)
public static void assertNotEmpty(PolyString ps)
public static void assertNotEmpty(PolyStringType ps)
public static void assertNotEmpty(String message, PolyString ps)
public static void assertNotEmpty(String message, PolyStringType ps)
public static void assertNotEmpty(String s)
public static void assertNotEmpty(QName qname)
public static <T> void assertAttribute(ShadowType shadow, ResourceType resource, String name, T... expectedValues)
public static <T> void assertAttribute(ShadowType shadowType, QName name, T... expectedValues)
public static <T> void assertAttribute(PrismObject<? extends ShadowType> shadow, QName name, T... expectedValues)
public static <T> void assertAttribute(String message, ShadowType repoShadow, QName name, T... expectedValues)
public static <T> void assertNoAttribute(PrismObject<? extends ShadowType> shadow, QName name)
public static <T> void assertEqualsCollection(String message, Collection<T> expectedValues, Collection<T> actualValues)
public static <T> void assertEqualsCollection(String message, Collection<T> expectedValues, T[] actualValues)
public static <T> void assertEqualsCollection(String message, T[] expectedValues, Collection<T> actualValues)
public static void assertIcfsNameAttribute(ShadowType repoShadow, String value)
public static void assertIcfsNameAttribute(PrismObject<? extends ShadowType> repoShadow, String value)
public static void assertAttributeNotNull(ShadowType repoShadow, QName name)
public static void assertAttributeNotNull(String message, ShadowType repoShadow, QName name)
public static void assertAttributeDefinition(ResourceAttribute<?> attr, QName expectedType, int minOccurs, int maxOccurs, boolean canRead, boolean canCreate, boolean canUpdate, Class<?> expetcedAttributeDefinitionClass)
public static void assertProvisioningAccountShadow(PrismObject<ShadowType> account, ResourceType resourceType, Class<?> expetcedAttributeDefinitionClass)
public static <T> Collection<T> getAttributeValues(ShadowType shadowType, QName name)
public static <T> Collection<T> getAttributeValues(PrismObject<? extends ShadowType> shadow, QName name)
public static String getAttributeValue(ShadowType repoShadow, QName name)
public static void waitFor(String message, Checker checker, int timeoutInterval) throws Exception
Exception
public static void waitFor(String message, Checker checker, int timeoutInterval, long sleepInterval) throws Exception
Exception
public static void displayJaxb(String title, Object o, QName qname) throws JAXBException
JAXBException
public static void display(String message)
public static void display(String message, org.opends.server.types.SearchResultEntry response)
public static void display(org.opends.server.types.SearchResultEntry response)
public static void display(String message, ObjectType o)
public static void display(String message, Collection collection)
public static void displayObjectTypeCollection(String message, Collection<? extends ObjectType> collection)
public static void display(String title, org.opends.server.types.Entry entry)
public static void display(String message, PrismContainer<?> propertyContainer)
public static void display(OperationResult result)
public static void display(String title, OperationResult result)
public static void display(String title, OperationResultType result) throws JAXBException
JAXBException
public static void checkAllShadows(ResourceType resourceType, RepositoryService repositoryService, ObjectChecker<ShadowType> checker, PrismContext prismContext) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException
public static ObjectQuery createAllShadowsQuery(ResourceType resourceType, PrismContext prismContext) throws SchemaException
SchemaException
public static ObjectQuery createAllShadowsQuery(ResourceType resourceType, QName objectClass, PrismContext prismContext) throws SchemaException
SchemaException
public static ObjectQuery createAllShadowsQuery(ResourceType resourceType, String objectClassLocalName, PrismContext prismContext) throws SchemaException
SchemaException
public static void checkAccountShadow(ShadowType shadowType, ResourceType resourceType, RepositoryService repositoryService, ObjectChecker<ShadowType> checker, PrismContext prismContext, OperationResult parentResult)
public static void checkEntitlementShadow(ShadowType shadowType, ResourceType resourceType, RepositoryService repositoryService, ObjectChecker<ShadowType> checker, String objectClassLocalName, PrismContext prismContext, OperationResult parentResult)
public static void checkShadow(ShadowType shadowType, ResourceType resourceType, RepositoryService repositoryService, ObjectChecker<ShadowType> checker, PrismContext prismContext, OperationResult parentResult)
public static void applyResourceSchema(ShadowType accountType, ResourceType resourceType, PrismContext prismContext) throws SchemaException
SchemaException
public static void assertNotInMessageRecursive(Throwable e, String substring)
public static void assertNoRepoCache()
public static void assertScripts(List<ScriptHistoryEntry> scriptsHistory, ProvisioningScriptSpec... expectedScripts)
public static void displayScripts(List<ScriptHistoryEntry> scriptsHistory)
public static void assertBetween(String message, XMLGregorianCalendar start, XMLGregorianCalendar end, XMLGregorianCalendar actual)
public static void assertEqualsTimestamp(String message, XMLGregorianCalendar expected, XMLGregorianCalendar actual)
public static void assertCreateTimestamp(PrismObject<? extends ObjectType> object, XMLGregorianCalendar start, XMLGregorianCalendar end)
public static void assertModifyTimestamp(PrismObject<? extends ObjectType> object, XMLGregorianCalendar start, XMLGregorianCalendar end)
public static <T> void assertExtensionProperty(PrismObject<? extends ObjectType> object, QName propertyName, T... expectedValues)
public static <T> void assertNoExtensionProperty(PrismObject<? extends ObjectType> object, QName propertyName)
public static void assertIcfResourceSchemaSanity(ResourceSchema resourceSchema, ResourceType resourceType)
public static void displayXml(String message, PrismObject<? extends ObjectType> object) throws SchemaException
SchemaException
Copyright © 2013 evolveum. All rights reserved.