use of com.evolveum.midpoint.prism.delta.PropertyDelta in project midpoint by Evolveum.
the class PrismAsserts method assertPropertyDelete.
public static void assertPropertyDelete(ObjectDelta<?> objectDelta, QName propertyName, Object... expectedValues) {
PropertyDelta propertyDelta = objectDelta.findPropertyDelta(propertyName);
assertNotNull("Property delta for " + propertyName + " not found", propertyDelta);
assertSet("delta " + propertyDelta + " for " + propertyName, "delete", propertyDelta.getValuesToDelete(), expectedValues);
}
use of com.evolveum.midpoint.prism.delta.PropertyDelta in project midpoint by Evolveum.
the class PrismAsserts method assertPropertyDelete.
public static void assertPropertyDelete(ObjectDelta<?> userDelta, ItemPath propertyPath, Object... expectedValues) {
PropertyDelta propertyDelta = userDelta.findPropertyDelta(propertyPath);
assertNotNull("Property delta for " + propertyPath + " not found", propertyDelta);
assertSet("delta " + propertyDelta + " for " + propertyPath.last(), "delete", propertyDelta.getValuesToDelete(), expectedValues);
}
use of com.evolveum.midpoint.prism.delta.PropertyDelta in project midpoint by Evolveum.
the class PrismAsserts method assertPropertyAdd.
public static void assertPropertyAdd(ObjectDelta<?> objectDelta, QName propertyName, Object... expectedValues) {
PropertyDelta propertyDelta = objectDelta.findPropertyDelta(propertyName);
assertNotNull("Property delta for " + propertyName + " not found", propertyDelta);
assertSet("delta " + propertyDelta + " for " + propertyName, "add", propertyDelta.getValuesToAdd(), expectedValues);
}
use of com.evolveum.midpoint.prism.delta.PropertyDelta in project midpoint by Evolveum.
the class PrismAsserts method assertPropertyDelete.
public static void assertPropertyDelete(Collection<? extends ItemDelta> modifications, ItemPath propertyPath, Object... expectedValues) {
PropertyDelta propertyDelta = ItemDelta.findPropertyDelta(modifications, propertyPath);
assertNotNull("Property delta for " + propertyPath + " not found", propertyDelta);
assertSet("delta " + propertyDelta + " for " + propertyPath.last(), "delete", propertyDelta.getValuesToDelete(), expectedValues);
}
use of com.evolveum.midpoint.prism.delta.PropertyDelta in project midpoint by Evolveum.
the class PrismAsserts method assertPropertyReplace.
public static void assertPropertyReplace(Collection<? extends ItemDelta> modifications, ItemPath propertyPath, Object... expectedValues) {
PropertyDelta propertyDelta = ItemDelta.findPropertyDelta(modifications, propertyPath);
assertNotNull("Property delta for " + propertyPath + " not found", propertyDelta);
assertSet("delta " + propertyDelta + " for " + propertyPath.last(), "replace", propertyDelta.getValuesToReplace(), expectedValues);
}
Aggregations