Skip to content

Commit

Permalink
Adapt AuditTest to new repo PolyString handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Sep 6, 2019
1 parent 60b02bf commit 9b4ed53
Showing 1 changed file with 8 additions and 4 deletions.
Expand Up @@ -48,9 +48,9 @@ public void test100AuditSimple() throws Exception {
record.addPropertyValue("prop1", "val1.2");
record.addPropertyValue("prop2", "val2");
record.addPropertyValue("prop3", null);
AuditReferenceValue refVal1_1 = new AuditReferenceValue("oid1.1", UserType.COMPLEX_TYPE, new PolyString("user1.1"));
AuditReferenceValue refVal1_2 = new AuditReferenceValue("oid1.2", RoleType.COMPLEX_TYPE, new PolyString("role1.2"));
AuditReferenceValue refVal2 = new AuditReferenceValue("oid2", null, new PolyString("object2"));
AuditReferenceValue refVal1_1 = new AuditReferenceValue("oid1.1", UserType.COMPLEX_TYPE, poly("user1.1"));
AuditReferenceValue refVal1_2 = new AuditReferenceValue("oid1.2", RoleType.COMPLEX_TYPE, poly("role1.2"));
AuditReferenceValue refVal2 = new AuditReferenceValue("oid2", null, poly("object2"));
AuditReferenceValue refVal3 = new AuditReferenceValue();
record.addReferenceValue("ref1", refVal1_1);
record.addReferenceValue("ref1", refVal1_2);
Expand All @@ -76,7 +76,11 @@ public void test100AuditSimple() throws Exception {

}

@Test
private PolyString poly(String orig) {
return new PolyString(orig, prismContext.getDefaultPolyStringNormalizer().normalize(orig));
}

@Test
public void test110AuditSecond() throws Exception {
LOGGER.info("===[ test110AuditSecond ]===");

Expand Down

0 comments on commit 9b4ed53

Please sign in to comment.