public static <F extends FocusType> AssignmentsAsserter<F,FocusAsserter<F,Void>,Void> forFocus(PrismObject<F> focus) { return new AssignmentsAsserter<>(FocusAsserter.forFocus(focus)); }
public static <F extends FocusType> LinksAsserter<F,FocusAsserter<F,Void>,Void> forFocus(PrismObject<F> focus) { return new LinksAsserter<>(FocusAsserter.forFocus(focus)); }
public static <F extends FocusType> ParentOrgRefsAsserter<F,FocusAsserter<F,Void>,Void> forFocus(PrismObject<F> focus) { return new ParentOrgRefsAsserter<>(FocusAsserter.forFocus(focus)); }
public static <F extends FocusType> RoleMembershipRefsAsserter<F,FocusAsserter<F,Void>,Void> forFocus(PrismObject<F> focus) { return new RoleMembershipRefsAsserter<>(FocusAsserter.forFocus(focus)); }
protected FocusAsserter<ServiceType,Void> assertService(String oid, String message) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException { PrismObject<ServiceType> service = getObject(ServiceType.class, oid); // TODO: change to ServiceAsserter later FocusAsserter<ServiceType,Void> asserter = FocusAsserter.forFocus(service, message); initializeAsserter(asserter); asserter.assertOid(oid); return asserter; }
protected FocusAsserter<ServiceType,Void> assertServiceByName(String name, String message) throws ObjectNotFoundException, SchemaException, SecurityViolationException, CommunicationException, ConfigurationException, ExpressionEvaluationException { PrismObject<ServiceType> service = findServiceByName(name); // TODO: change to ServiceAsserter later FocusAsserter<ServiceType,Void> asserter = FocusAsserter.forFocus(service, message); initializeAsserter(asserter); asserter.assertName(name); return asserter; }