Skip to content

Commit

Permalink
MID-8842 ninja - fixed processor test asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Jul 20, 2023
1 parent b3b499c commit e23dba9
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ private <O extends ObjectType> void testUpgradeValidator(String fileName, Consum
LOGGER.info("Validation result:\n{}", result.debugDump());

resultConsumer.accept(result);

assertUpgrade(fileName, result);
}

private <O extends ObjectType> PrismObject<O> parseObject(File file) throws SchemaException, IOException {
Expand Down Expand Up @@ -163,8 +165,6 @@ public void test30TestSystemConfig() throws Exception {
item = assertGetItem(result, getProcessorIdentifier(RoleCatalogRefProcessor.class));
Assertions.assertThat(item.getDelta().getModifiedItems()).hasSize(2);
Assertions.assertThat(item.isChanged()).isTrue();

// todo assert deltas
});
}

Expand All @@ -180,8 +180,6 @@ public void test40TestRole() throws Exception {
asserter.assertPath(ItemPath.create(
RoleType.F_ASSIGNMENT, 1L, AssignmentType.F_PERSONA_CONSTRUCTION, PersonaConstructionType.F_TARGET_SUBTYPE));
Assertions.assertThat(item.getDelta().getModifiedItems()).isEmpty();

assertUpgrade("role.xml", result);
});
}

Expand All @@ -192,8 +190,6 @@ public void test50SecurityPolicy() throws Exception {
.hasSize(0);

Assertions.assertThat(result.hasChanges()).isFalse();

assertUpgrade("security-policy.xml", result);
});
}

Expand All @@ -204,8 +200,6 @@ public void test60TaskLivesync() throws Exception {
.hasSize(1);

Assertions.assertThat(result.hasChanges()).isTrue();

assertUpgrade("task-livesync.xml", result);
});
}

Expand Down

0 comments on commit e23dba9

Please sign in to comment.