public static void assertUserJack(PrismObject<UserType> user, boolean expectRawInConstructions) throws SchemaException { user.checkConsistence(); user.assertDefinitions("test"); assertUserJackContent(user, expectRawInConstructions); assertUserJackExtension(user); assertVisitor(user, 71); assertPathVisitor(user, UserType.F_ASSIGNMENT, true, 9); assertPathVisitor(user, ItemPath.create(UserType.F_ASSIGNMENT, USER_ASSIGNMENT_1_ID), true, 3); assertPathVisitor(user, ItemPath.create(UserType.F_ACTIVATION, ActivationType.F_ENABLED), true, 2); assertPathVisitor(user, UserType.F_EXTENSION, true, 15); assertPathVisitor(user, UserType.F_ASSIGNMENT, false, 1); assertPathVisitor(user, ItemPath.create(UserType.F_ASSIGNMENT, USER_ASSIGNMENT_1_ID), false, 1); assertPathVisitor(user, ItemPath.create(UserType.F_ASSIGNMENT, null), false, 2); assertPathVisitor(user, ItemPath.create(UserType.F_ACTIVATION, ActivationType.F_ENABLED), false, 1); assertPathVisitor(user, UserType.F_EXTENSION, false, 1); // assertPathVisitor(user, ItemPath.create( // UserType.F_EXTENSION, // NameItemPathSegment.WILDCARD), false, 5); }
PrismInternalTestUtil.assertPathVisitor(delta, UserType.F_FULL_NAME, true, 2); PrismInternalTestUtil.assertPathVisitor(delta, UserType.F_ACTIVATION, true, 4); PrismInternalTestUtil.assertPathVisitor(delta, ItemPath.create(UserType.F_ACTIVATION, ActivationType.F_ENABLED), true, 2); PrismInternalTestUtil.assertPathVisitor(delta, UserType.F_ASSIGNMENT, true, 7); PrismInternalTestUtil.assertPathVisitor(delta, ItemPath.create(UserType.F_ASSIGNMENT, null), true, 6); PrismInternalTestUtil.assertPathVisitor(delta, UserType.F_FULL_NAME, false, 1); PrismInternalTestUtil.assertPathVisitor(delta, UserType.F_ACTIVATION, false, 1); PrismInternalTestUtil.assertPathVisitor(delta, ItemPath.create(UserType.F_ACTIVATION, ActivationType.F_ENABLED), false, 1); PrismInternalTestUtil.assertPathVisitor(delta, UserType.F_ASSIGNMENT, false, 1); PrismInternalTestUtil.assertPathVisitor(delta, ItemPath.create(UserType.F_ASSIGNMENT, null), false, 2);