use of com.evolveum.midpoint.prism.polystring.PrismDefaultPolyStringNormalizer in project midpoint by Evolveum.
the class TestPolyString method testNormalization.
private void testNormalization(final String TEST_NAME, String orig, String expectedNorm) {
System.out.println("===[ " + TEST_NAME + " ]===");
PolyString polyString = new PolyString(orig);
PolyStringNormalizer normalizer = new PrismDefaultPolyStringNormalizer();
// WHEN
polyString.recompute(normalizer);
// THEN
assertEquals("orig have changed", orig, polyString.getOrig());
assertEquals("wrong norm", expectedNorm, polyString.getNorm());
assertEquals("wrong toString", orig, polyString.toString());
}
Aggregations