Package com.evolveum.midpoint.prism.util
Class PrismAsserts
java.lang.Object
com.evolveum.midpoint.prism.util.PrismAsserts
Set of prism-related asserts.
DO NOT use this in the main code. Although it is placed in "main" for convenience, is should only be used in tests.
FIXME: Move to test-jar (into PrismAsserts2 that are already there)
- Author:
- Radovan Semancik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
asserHasDelta
(String message, Collection<? extends ObjectDelta<? extends Objectable>> deltas, ChangeType expectedChangeType, Class<?> expectedClass) static <T> void
static void
assertAllParsedNodes
(XNode xnode) static void
assertAndFilter
(ObjectFilter filter, int conditions) static void
assertAssignableFrom
(Class<?> expected, Class<?> actual) static void
assertAssignableFrom
(Class<?> expected, Object actualObject) static void
assertClass
(String message, Class<?> expectedClass, ObjectDelta<?> actualDelta) static void
assertClass
(String message, Class<?> expectedClass, Objectable actualObject) static void
assertClass
(String message, Class<?> expectedClass, PrismObject<?> actualObject) static void
assertClass
(String message, Class<?> expectedClass, Object actualObject) static <C extends Containerable>
voidassertContainerAdd
(ObjectDelta<?> objectDelta, ItemPath propertyPath, C... containerables) static <C extends Containerable>
voidassertContainerAdd
(ObjectDelta<?> objectDelta, ItemPath propertyPath, PrismContainerValue<C>... expectedCVals) static ContainerDelta<?>
assertContainerAddGetContainerDelta
(ObjectDelta<?> objectDelta, ItemPath propertyPath) static ContainerDelta<?>
assertContainerDeleteGetContainerDelta
(ObjectDelta<?> objectDelta, ItemPath propertyPath) static void
assertDefinition
(ItemDefinition definition, QName itemName, QName type, int minOccurs, int maxOccurs) static void
assertDefinition
(Item item, QName type, int minOccurs, int maxOccurs) static void
assertDefinitionTypeLoose
(ItemDefinition definition, QName itemName, QName type, int minOccurs, int maxOccurs) static <T> void
assertDelete
(PropertyDelta<T> propertyDelta, T... expectedValues) static void
assertDeltaEmpty
(String message, ObjectDelta<?> delta) static void
assertDifferent
(String message, Item item1, Item item2, EquivalenceStrategy strategy) static void
assertDuration
(String message, String durationString, long start, XMLGregorianCalendar end, Long precision) static void
assertElementsEquals
(Object expected, Object actual) static void
assertEmphasized
(ItemDefinition itemDef, Boolean expected) static void
assertEmphasized
(PrismContainerDefinition<? extends Containerable> containerDef, QName itemQName, Boolean expected) static void
assertEmpty
(ObjectDelta<?> objectDelta) static void
assertEmpty
(String message, ObjectDelta<?> objectDelta) static Item<?,
?> assertEmptyAndIncomplete
(PrismObject<?> object, ItemPath itemPath) static void
assertEquals
(Objectable expected, Objectable actual) static <O extends Objectable>
voidassertEquals
(PrismObject<O> prism1, PrismObject<O> prism2) static void
assertEquals
(File fileNewXml, Objectable objectable) static <O extends Objectable>
voidassertEquals
(File fileNewXml, PrismObject<O> actual) static void
assertEquals
(File fileNewXml, String objectString) static void
assertEquals
(String message, Item item1, Item item2, EquivalenceStrategy strategy) static <T> void
assertEquals
(String message, MatchingRule<T> matchingRule, T expected, T actual) static void
assertEquals
(String message, PolyString expected, PolyString actual) static <O extends Objectable>
voidassertEquals
(String message, PrismObject<O> expected, PrismObject<O> actual) static void
assertEquals
(String message, Object expected, Object actual) static void
assertEquals
(String message, XMLGregorianCalendar expected, Object actual) static <T> void
assertEqualsCollectionUnordered
(String message, Collection<? extends T> actualCollection, T... expectedValues) static <T> void
assertEqualsCollectionUnordered
(String message, Collection<T> expected, Collection<T> real) static <T> void
assertEqualsCollectionUnorderedNullable
(String message, Collection<? extends T> actualCollection, T... expectedValues) static void
assertEqualsFilter
(ObjectFilter objectFilter, QName expectedFilterDef, QName expectedTypeName, ItemPath path) static <T> void
assertEqualsFilterValue
(EqualFilter filter, T value) static void
assertEqualsPolyString
(String message, PolyStringType expected, PolyStringType actual) static void
assertEqualsPolyString
(String message, String expectedOrig, PolyString actual) static void
assertEqualsPolyString
(String message, String expectedOrig, PolyStringType actual) static void
assertEqualsPolyStringMulti
(String message, Collection<PolyString> actual, String... expectedOrigs) static <T> void
assertEqualsUnordered
(String message, Stream<? extends T> actualStream, T... expectedValues) static <O extends Objectable>
voidassertEquivalent
(File expectedFile, PrismObject<O> actual) static <O extends Objectable>
voidassertEquivalent
(String message, ItemPath expected, ItemPath actual) static <O extends Objectable>
voidassertEquivalent
(String message, PrismObject<O> expected, PrismObject<O> actual) static <O extends Objectable>
voidassertEquivalent
(String message, File expectedFile, PrismObject<O> actual) static void
assertHasNoObject
(PrismContainerValue<?> pcv, ItemPath path) static void
assertHasNoTargetName
(PrismContainerValue<?> pcv, ItemPath path) static void
assertHasObject
(PrismContainerValue<?> pcv, ItemPath path) static void
assertHasTargetName
(PrismContainerValue<?> pcv, ItemPath path) static void
assertImmutable
(Definition definition) static Item<?,
?> assertIncomplete
(PrismContainerValue<?> object, ItemPath itemPath) static Item<?,
?> assertIncomplete
(PrismObject<?> object, ItemPath itemPath) static void
assertIndexed
(PrismContainerDefinition<? extends Containerable> containerDef, QName itemQName, Boolean expected) static void
assertInstanceOf
(Class<?> expectedClass, Object object) static void
assertIsAdd
(ObjectDelta<?> objectDelta) static void
assertIsDelete
(ObjectDelta<?> objectDelta) static void
assertIsModify
(ObjectDelta<?> objectDelta) static void
assertItemDefinitionDisplayName
(ComplexTypeDefinition containerDef, QName propertyName, String expectedDisplayName) static void
assertItemDefinitionDisplayName
(PrismContainerDefinition<?> containerDef, QName propertyName, String expectedDisplayName) static void
assertItemDefinitionDisplayOrder
(ComplexTypeDefinition containerDef, QName propertyName, Integer expectedDisplayOrder) static void
assertItemDefinitionDisplayOrder
(PrismContainerDefinition<?> containerDef, QName propertyName, Integer expectedDisplayOrder) static void
assertItemDefinitionHelp
(PrismContainerDefinition<?> containerDef, QName propertyName, String expectedHelp) static void
assertItems
(PrismContainer<?> object, int expectedNumberOfItems) static void
assertMatchesQName
(String message, QName expected, QName actual) static void
assertModifications
(ObjectDelta<?> objectDelta, int expectedNumberOfModifications) static void
assertModifications
(String message, ObjectDelta<?> objectDelta, int expectedNumberOfModifications) static void
assertMutable
(Definition definition) static <IV extends PrismValue,
ID extends ItemDefinition<?>>
voidassertNoAdd
(ItemDelta<IV, ID> delta) static <IV extends PrismValue,
ID extends ItemDefinition<?>>
voidassertNoAdd
(String message, ItemDelta<IV, ID> delta) static <IV extends PrismValue,
ID extends ItemDefinition<?>>
voidassertNoDelete
(ItemDelta<IV, ID> delta) static <IV extends PrismValue,
ID extends ItemDefinition<?>>
voidassertNoDelete
(String message, ItemDelta<IV, ID> delta) static void
assertNoDelta
(String message, ObjectDelta<?> delta) static void
assertNoEmptyItem
(PrismContainer<?> container) static void
assertNoItem
(PrismContainer<?> object, ItemPath itemPath) static void
assertNoItemDelta
(ObjectDelta<?> objectDelta, ItemPath itemPath) static <IV extends PrismValue,
ID extends ItemDefinition<?>>
voidassertNoReplace
(ItemDelta<IV, ID> delta) static <IV extends PrismValue,
ID extends ItemDefinition<?>>
voidassertNoReplace
(String message, ItemDelta<IV, ID> delta) static void
assertNotEmpty
(Item<?, ?> item) static Item<?,
?> assertNotIncomplete
(PrismContainerValue<?> object, ItemPath itemPath) static Item<?,
?> assertNotIncomplete
(PrismObject<?> object, ItemPath itemPath) static <T extends Objectable>
voidassertObjectDefinition
(PrismObjectDefinition<T> objDef, QName elementName, QName typeName, Class<T> compileTimeClass) static void
assertOids
(Collection<? extends PrismObject<?>> objects, String... expectedOids) static void
assertOidValues
(String message, Collection<PrismReferenceValue> actualRValues, String... expectedOids) static void
assertOrFilter
(ObjectFilter filter, int conditions) static void
assertOrigEqualsPolyStringCollectionUnordered
(String message, Collection<PolyStringType> actualCollection, String... expectedValues) static void
assertOrigin
(ItemDelta<?, ?> itemDelta, Objectable expectedOriginObject, OriginType... expectedOriginTypes) static <T> void
assertOrigin
(ItemDelta<?, ?> itemDelta, OriginType... expectedOriginTypes) static void
assertOrigin
(ObjectDelta<?> objectDelta, Objectable expectedOriginObject, OriginType... expectedOriginTypes) static <T> void
assertOrigin
(ObjectDelta<?> objectDelta, OriginType... expectedOriginTypes) static <T> void
assertOrigin
(Visitable visitableItem, Objectable expectedOriginObject, OriginType... expectedOriginTypes) static <T> void
assertOrigin
(Visitable visitableItem, OriginType... expectedOriginTypes) static void
assertParentConsistency
(Item<?, ?> item) static void
static void
assertPathEqualsExceptForPrefixes
(String message, ItemPath expected, ItemPath actual) static void
assertPathEquivalent
(String message, ItemPath expected, ItemPath actual) static void
assertPropertyAdd
(ObjectDelta<?> objectDelta, ItemPath propertyPath, Object... expectedValues) static void
assertPropertyAdd
(Collection<? extends ItemDelta> modifications, ItemPath propertyPath, Object... expectedValues) static void
assertPropertyDefinition
(ComplexTypeDefinition container, QName propertyName, QName type, int minOccurs, int maxOccurs) static void
assertPropertyDefinition
(PrismContainer<?> container, QName propertyName, QName type, int minOccurs, int maxOccurs) static void
assertPropertyDefinition
(PrismContainerDefinition<?> containerDef, QName propertyName, QName type, int minOccurs, int maxOccurs) static void
assertPropertyDefinition
(PrismContainerDefinition<?> containerDef, QName propertyName, QName type, int minOccurs, int maxOccurs, boolean indexed) static void
assertPropertyDefinition
(PrismProperty<?> property, QName type, int minOccurs, int maxOccurs, Boolean indexed) static void
assertPropertyDelete
(ObjectDelta<?> userDelta, ItemPath propertyPath, Object... expectedValues) static void
assertPropertyDelete
(Collection<? extends ItemDelta> modifications, ItemPath propertyPath, Object... expectedValues) static <T> void
assertPropertyDelta
(PropertyDelta<T> delta, T[] expectedOldValues, T[] expectedAddValues, T[] expectedDeleteValues, T[] expectedReplaceValues) static <T> void
assertPropertyReplace
(ObjectDelta<?> userDelta, ItemPath path, T... expectedValues) static void
assertPropertyReplace
(Collection<? extends ItemDelta> modifications, ItemPath propertyPath, Object... expectedValues) static void
assertPropertyReplaceSimple
(ObjectDelta<?> objectDelta, ItemPath path) static <T> void
assertPropertyValue
(PrismContainer<?> container, ItemPath propPath, T... realPropValues) static <T> void
assertPropertyValue
(PrismContainerValue<?> containerValue, ItemPath propPath, T... realPropValues) static <T> void
assertPropertyValue
(PrismProperty<T> property, T... expectedPropValues) static <T> void
assertPropertyValueDesc
(PrismProperty<T> property, MatchingRule<T> matchingRule, String contextDescrition, T... expectedPropValues) static <T> void
assertPropertyValueDesc
(PrismProperty<T> property, String contextDescrition, T... expectedPropValues) static <T> void
assertPropertyValueMatch
(PrismContainer<?> container, ItemPath propQName, MatchingRule<T> matchingRule, T... realPropValues) static <T> void
assertPropertyValueMatch
(PrismContainerValue<?> containerValue, ItemPath propQName, MatchingRule<T> matchingRule, T... realPropValues) static <T> void
assertPropertyValues
(String message, Collection<PrismPropertyValue<T>> results, T... expectedValues) static <T> void
assertPropertyValues
(String message, Collection<T> expected, Collection<PrismPropertyValue<T>> results) static void
assertQueriesEquivalent
(String message, ObjectQuery expected, ObjectQuery real) static void
assertRefEquivalent
(String message, PrismReferenceValue expected, PrismReferenceValue actual) static void
assertReferenceAdd
(ObjectDelta<?> objectDelta, QName refName, String... expectedOids) static void
assertReferenceDelete
(ObjectDelta<?> objectDelta, QName refName, String... expectedOids) static void
assertReferenceOids
(String message, Collection<String> expectedOids, Collection<? extends Referencable> realReferences) static void
assertReferenceReplace
(ObjectDelta<?> objectDelta, QName refName, String... expectedOids) static void
assertReferenceValue
(PrismReference ref, String oid) static void
assertReferenceValue
(List<? extends Referencable> refs, String oid) static void
assertReferenceValues
(PrismReference ref, String... oids) static void
assertReferenceValues
(List<? extends Referencable> refs, String... oids) static void
assertRefFilter
(ObjectFilter objectFilter, QName expectedFilterDef, QName expectedTypeName, ItemPath path) static <T> void
assertReplace
(PropertyDelta<T> propertyDelta, T... expectedValues) static <T> void
assertSets
(String message, MatchingRule<T> matchingRule, Collection<T> actualValues, Collection<T> expectedValues) static <T> void
assertSets
(String message, MatchingRule<T> matchingRule, Collection<T> actualValues, T... expectedValues) static <T> void
assertSets
(String message, Collection<T> actualValues, Collection<T> expectedValues) static <T> void
assertSets
(String message, Collection<T> actualValues, T... expectedValues) static void
assertSize
(ListXNode xlist, int expectedSize) static void
assertSize
(MapXNode xmap, int expectedSize) static void
assertSubnode
(MapXNode xmap, QName key, Class expectedClass) static void
assertTripleEmpty
(DeltaSetTriple<?> triple) static <T,
V extends PrismValue>
voidassertTripleMinus
(PrismValueDeltaSetTriple<V> triple, T... expectedValues) static void
assertTripleNoMinus
(DeltaSetTriple<?> triple) static void
assertTripleNoPlus
(DeltaSetTriple<?> triple) static void
assertTripleNoSet
(String setName, Collection<?> set) static void
assertTripleNoZero
(DeltaSetTriple<?> triple) static <T,
V extends PrismValue>
voidassertTriplePlus
(PrismValueDeltaSetTriple<V> triple, T... expectedValues) static <T,
V extends PrismValue>
voidassertTripleSet
(String setName, Collection<V> tripleSet, T... expectedValues) static <T,
V extends PrismValue>
voidassertTripleZero
(PrismValueDeltaSetTriple<V> triple, T... expectedValues) static <C extends Containerable>
voidassertValueId
(Long expectedId, PrismContainer<C> container) static <T> void
assertValues
(String message, MatchingRule<T> matchingRule, Collection<PrismPropertyValue<T>> actualPValues, T... expectedValues) static <T> void
assertValues
(String message, Collection<PrismPropertyValue<T>> actualPValues, T... expectedValues)
-
Constructor Details
-
PrismAsserts
public PrismAsserts()
-
-
Method Details
-
assertPropertyValueMatch
public static <T> void assertPropertyValueMatch(PrismContainer<?> container, ItemPath propQName, MatchingRule<T> matchingRule, T... realPropValues) throws SchemaException - Throws:
SchemaException
-
assertPropertyValueMatch
public static <T> void assertPropertyValueMatch(PrismContainerValue<?> containerValue, ItemPath propQName, MatchingRule<T> matchingRule, T... realPropValues) throws SchemaException - Throws:
SchemaException
-
assertPropertyValue
public static <T> void assertPropertyValue(PrismContainer<?> container, ItemPath propPath, T... realPropValues) -
assertPropertyValue
public static <T> void assertPropertyValue(PrismContainerValue<?> containerValue, ItemPath propPath, T... realPropValues) -
assertPropertyValue
-
assertPropertyValueDesc
public static <T> void assertPropertyValueDesc(PrismProperty<T> property, String contextDescrition, T... expectedPropValues) -
assertPropertyValueDesc
public static <T> void assertPropertyValueDesc(PrismProperty<T> property, MatchingRule<T> matchingRule, String contextDescrition, T... expectedPropValues) throws SchemaException - Throws:
SchemaException
-
assertPropertyValues
public static <T> void assertPropertyValues(String message, Collection<T> expected, Collection<PrismPropertyValue<T>> results) -
assertPropertyValues
public static <T> void assertPropertyValues(String message, Collection<PrismPropertyValue<T>> results, T... expectedValues) -
assertReferenceValues
-
assertReferenceValues
-
assertReferenceValue
-
assertReferenceValue
-
assertItems
-
assertNoItem
-
assertNotEmpty
-
assertNoEmptyItem
-
assertObjectDefinition
public static <T extends Objectable> void assertObjectDefinition(PrismObjectDefinition<T> objDef, QName elementName, QName typeName, Class<T> compileTimeClass) -
assertDefinition
-
assertPropertyDefinition
public static void assertPropertyDefinition(PrismContainer<?> container, QName propertyName, QName type, int minOccurs, int maxOccurs) -
assertPropertyDefinition
public static void assertPropertyDefinition(ComplexTypeDefinition container, QName propertyName, QName type, int minOccurs, int maxOccurs) -
assertPropertyDefinition
public static void assertPropertyDefinition(PrismProperty<?> property, QName type, int minOccurs, int maxOccurs, Boolean indexed) -
assertPropertyDefinition
public static void assertPropertyDefinition(PrismContainerDefinition<?> containerDef, QName propertyName, QName type, int minOccurs, int maxOccurs, boolean indexed) -
assertPropertyDefinition
public static void assertPropertyDefinition(PrismContainerDefinition<?> containerDef, QName propertyName, QName type, int minOccurs, int maxOccurs) -
assertItemDefinitionDisplayName
public static void assertItemDefinitionDisplayName(PrismContainerDefinition<?> containerDef, QName propertyName, String expectedDisplayName) -
assertItemDefinitionDisplayName
public static void assertItemDefinitionDisplayName(ComplexTypeDefinition containerDef, QName propertyName, String expectedDisplayName) -
assertItemDefinitionDisplayOrder
public static void assertItemDefinitionDisplayOrder(PrismContainerDefinition<?> containerDef, QName propertyName, Integer expectedDisplayOrder) -
assertItemDefinitionDisplayOrder
public static void assertItemDefinitionDisplayOrder(ComplexTypeDefinition containerDef, QName propertyName, Integer expectedDisplayOrder) -
assertItemDefinitionHelp
public static void assertItemDefinitionHelp(PrismContainerDefinition<?> containerDef, QName propertyName, String expectedHelp) -
assertDefinition
public static void assertDefinition(ItemDefinition definition, QName itemName, QName type, int minOccurs, int maxOccurs) -
assertDefinitionTypeLoose
public static void assertDefinitionTypeLoose(ItemDefinition definition, QName itemName, QName type, int minOccurs, int maxOccurs) -
assertIndexed
public static void assertIndexed(PrismContainerDefinition<? extends Containerable> containerDef, QName itemQName, Boolean expected) -
assertEmphasized
-
assertEmphasized
public static void assertEmphasized(PrismContainerDefinition<? extends Containerable> containerDef, QName itemQName, Boolean expected) -
assertValueId
public static <C extends Containerable> void assertValueId(Long expectedId, PrismContainer<C> container) -
assertParentConsistency
-
assertParentConsistency
-
assertModifications
public static void assertModifications(ObjectDelta<?> objectDelta, int expectedNumberOfModifications) -
assertModifications
public static void assertModifications(String message, ObjectDelta<?> objectDelta, int expectedNumberOfModifications) -
assertIsModify
-
assertIsAdd
-
assertIsDelete
-
assertEmpty
-
assertEmpty
-
assertPropertyReplaceSimple
-
assertReplace
-
assertPropertyReplace
public static <T> void assertPropertyReplace(ObjectDelta<?> userDelta, ItemPath path, T... expectedValues) -
assertPropertyAdd
public static void assertPropertyAdd(ObjectDelta<?> objectDelta, ItemPath propertyPath, Object... expectedValues) -
assertAdd
-
assertDelete
-
assertPropertyDelete
public static void assertPropertyDelete(ObjectDelta<?> userDelta, ItemPath propertyPath, Object... expectedValues) -
assertPropertyReplace
public static void assertPropertyReplace(Collection<? extends ItemDelta> modifications, ItemPath propertyPath, Object... expectedValues) -
assertPropertyAdd
public static void assertPropertyAdd(Collection<? extends ItemDelta> modifications, ItemPath propertyPath, Object... expectedValues) -
assertPropertyDelete
public static void assertPropertyDelete(Collection<? extends ItemDelta> modifications, ItemPath propertyPath, Object... expectedValues) -
assertReferenceAdd
public static void assertReferenceAdd(ObjectDelta<?> objectDelta, QName refName, String... expectedOids) -
assertReferenceDelete
public static void assertReferenceDelete(ObjectDelta<?> objectDelta, QName refName, String... expectedOids) -
assertReferenceReplace
public static void assertReferenceReplace(ObjectDelta<?> objectDelta, QName refName, String... expectedOids) -
assertNoItemDelta
-
assertPropertyDelta
public static <T> void assertPropertyDelta(PropertyDelta<T> delta, T[] expectedOldValues, T[] expectedAddValues, T[] expectedDeleteValues, T[] expectedReplaceValues) -
assertContainerAddGetContainerDelta
public static ContainerDelta<?> assertContainerAddGetContainerDelta(ObjectDelta<?> objectDelta, ItemPath propertyPath) -
assertContainerDeleteGetContainerDelta
public static ContainerDelta<?> assertContainerDeleteGetContainerDelta(ObjectDelta<?> objectDelta, ItemPath propertyPath) -
assertContainerAdd
public static <C extends Containerable> void assertContainerAdd(ObjectDelta<?> objectDelta, ItemPath propertyPath, C... containerables) -
assertContainerAdd
public static <C extends Containerable> void assertContainerAdd(ObjectDelta<?> objectDelta, ItemPath propertyPath, PrismContainerValue<C>... expectedCVals) -
assertOrigin
-
assertOrigin
-
assertOrigin
-
assertOrigin
public static void assertOrigin(ObjectDelta<?> objectDelta, Objectable expectedOriginObject, OriginType... expectedOriginTypes) -
assertOrigin
public static void assertOrigin(ItemDelta<?, ?> itemDelta, Objectable expectedOriginObject, OriginType... expectedOriginTypes) -
assertOrigin
public static <T> void assertOrigin(Visitable visitableItem, Objectable expectedOriginObject, OriginType... expectedOriginTypes) -
asserHasDelta
public static void asserHasDelta(String message, Collection<? extends ObjectDelta<? extends Objectable>> deltas, ChangeType expectedChangeType, Class<?> expectedClass) -
assertNoReplace
public static <IV extends PrismValue,ID extends ItemDefinition<?>> void assertNoReplace(ItemDelta<IV, ID> delta) -
assertNoReplace
public static <IV extends PrismValue,ID extends ItemDefinition<?>> void assertNoReplace(String message, ItemDelta<IV, ID> delta) -
assertNoAdd
public static <IV extends PrismValue,ID extends ItemDefinition<?>> void assertNoAdd(ItemDelta<IV, ID> delta) -
assertNoAdd
public static <IV extends PrismValue,ID extends ItemDefinition<?>> void assertNoAdd(String message, ItemDelta<IV, ID> delta) -
assertNoDelete
public static <IV extends PrismValue,ID extends ItemDefinition<?>> void assertNoDelete(ItemDelta<IV, ID> delta) -
assertNoDelete
public static <IV extends PrismValue,ID extends ItemDefinition<?>> void assertNoDelete(String message, ItemDelta<IV, ID> delta) -
assertNoDelta
-
assertDeltaEmpty
-
assertTriplePlus
public static <T,V extends PrismValue> void assertTriplePlus(PrismValueDeltaSetTriple<V> triple, T... expectedValues) -
assertTripleZero
public static <T,V extends PrismValue> void assertTripleZero(PrismValueDeltaSetTriple<V> triple, T... expectedValues) -
assertTripleMinus
public static <T,V extends PrismValue> void assertTripleMinus(PrismValueDeltaSetTriple<V> triple, T... expectedValues) -
assertTripleSet
public static <T,V extends PrismValue> void assertTripleSet(String setName, Collection<V> tripleSet, T... expectedValues) -
assertTripleNoPlus
-
assertTripleNoZero
-
assertTripleNoMinus
-
assertTripleNoSet
-
assertTripleEmpty
-
assertEquals
public static void assertEquals(String message, Item item1, Item item2, EquivalenceStrategy strategy) -
assertDifferent
public static void assertDifferent(String message, Item item1, Item item2, EquivalenceStrategy strategy) -
assertEquals
-
assertEqualsPolyString
-
assertEqualsPolyStringMulti
public static void assertEqualsPolyStringMulti(String message, Collection<PolyString> actual, String... expectedOrigs) -
assertEqualsPolyString
public static void assertEqualsPolyString(String message, String expectedOrig, PolyStringType actual) -
assertEqualsPolyString
public static void assertEqualsPolyString(String message, PolyStringType expected, PolyStringType actual) -
assertMatchesQName
-
assertEquals
-
assertClass
-
assertClass
-
assertClass
-
assertClass
-
assertElementsEquals
- Throws:
SchemaException
-
assertEquals
public static void assertEquals(File fileNewXml, String objectString) throws SchemaException, IOException - Throws:
SchemaException
IOException
-
assertEquals
- Throws:
SchemaException
-
assertEquals
public static void assertEquals(File fileNewXml, Objectable objectable) throws SchemaException, IOException - Throws:
SchemaException
IOException
-
assertEquals
public static <O extends Objectable> void assertEquals(File fileNewXml, PrismObject<O> actual) throws SchemaException, IOException - Throws:
SchemaException
IOException
-
assertEquals
public static <O extends Objectable> void assertEquals(PrismObject<O> prism1, PrismObject<O> prism2) -
assertEquals
public static <O extends Objectable> void assertEquals(String message, PrismObject<O> expected, PrismObject<O> actual) -
assertEquivalent
public static <O extends Objectable> void assertEquivalent(File expectedFile, PrismObject<O> actual) throws SchemaException, IOException - Throws:
SchemaException
IOException
-
assertEquivalent
public static <O extends Objectable> void assertEquivalent(String message, File expectedFile, PrismObject<O> actual) throws SchemaException, IOException - Throws:
SchemaException
IOException
-
assertEquivalent
public static <O extends Objectable> void assertEquivalent(String message, PrismObject<O> expected, PrismObject<O> actual) -
assertValues
public static <T> void assertValues(String message, Collection<PrismPropertyValue<T>> actualPValues, T... expectedValues) -
assertValues
public static <T> void assertValues(String message, MatchingRule<T> matchingRule, Collection<PrismPropertyValue<T>> actualPValues, T... expectedValues) throws SchemaException - Throws:
SchemaException
-
assertOidValues
public static void assertOidValues(String message, Collection<PrismReferenceValue> actualRValues, String... expectedOids) -
assertSets
@SafeVarargs public static <T> void assertSets(String message, Collection<T> actualValues, T... expectedValues) -
assertSets
public static <T> void assertSets(String message, Collection<T> actualValues, Collection<T> expectedValues) -
assertSets
@SafeVarargs public static <T> void assertSets(String message, MatchingRule<T> matchingRule, Collection<T> actualValues, T... expectedValues) throws SchemaException - Throws:
SchemaException
-
assertSets
public static <T> void assertSets(String message, MatchingRule<T> matchingRule, Collection<T> actualValues, Collection<T> expectedValues) throws SchemaException - Throws:
SchemaException
-
assertOids
-
assertSize
-
assertSize
-
assertSubnode
-
assertAllParsedNodes
-
assertOrFilter
-
assertAndFilter
-
assertEqualsFilter
public static void assertEqualsFilter(ObjectFilter objectFilter, QName expectedFilterDef, QName expectedTypeName, ItemPath path) -
assertEqualsFilterValue
-
assertRefFilter
public static void assertRefFilter(ObjectFilter objectFilter, QName expectedFilterDef, QName expectedTypeName, ItemPath path) -
assertEquals
-
assertEquals
public static <T> void assertEquals(String message, MatchingRule<T> matchingRule, T expected, T actual) throws SchemaException - Throws:
SchemaException
-
assertEqualsUnordered
@SafeVarargs public static <T> void assertEqualsUnordered(String message, Stream<? extends T> actualStream, T... expectedValues) -
assertEqualsCollectionUnordered
@SafeVarargs public static <T> void assertEqualsCollectionUnordered(String message, Collection<? extends T> actualCollection, T... expectedValues) -
assertEqualsCollectionUnorderedNullable
@SafeVarargs public static <T> void assertEqualsCollectionUnorderedNullable(String message, Collection<? extends T> actualCollection, T... expectedValues) -
assertEqualsCollectionUnordered
public static <T> void assertEqualsCollectionUnordered(String message, Collection<T> expected, Collection<T> real) -
assertOrigEqualsPolyStringCollectionUnordered
public static void assertOrigEqualsPolyStringCollectionUnordered(String message, Collection<PolyStringType> actualCollection, String... expectedValues) -
assertAssignableFrom
-
assertAssignableFrom
-
assertPathEquivalent
-
assertPathEqualsExceptForPrefixes
-
assertRefEquivalent
public static void assertRefEquivalent(String message, PrismReferenceValue expected, PrismReferenceValue actual) -
assertInstanceOf
-
assertDuration
public static void assertDuration(String message, String durationString, long start, XMLGregorianCalendar end, Long precision) -
assertHasTargetName
-
assertHasNoTargetName
-
assertHasObject
-
assertHasNoObject
-
assertReferenceOids
public static void assertReferenceOids(String message, Collection<String> expectedOids, Collection<? extends Referencable> realReferences) -
assertQueriesEquivalent
-
assertEquivalent
public static <O extends Objectable> void assertEquivalent(String message, ItemPath expected, ItemPath actual) -
assertEmptyAndIncomplete
-
assertIncomplete
-
assertIncomplete
-
assertNotIncomplete
-
assertNotIncomplete
-
assertImmutable
-
assertMutable
-