Search in sources :

Example 1 with PrismDefaultPolyStringNormalizer

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());
}
Also used : PrismDefaultPolyStringNormalizer(com.evolveum.midpoint.prism.polystring.PrismDefaultPolyStringNormalizer) PolyString(com.evolveum.midpoint.prism.polystring.PolyString) PolyStringNormalizer(com.evolveum.midpoint.prism.polystring.PolyStringNormalizer) PrismDefaultPolyStringNormalizer(com.evolveum.midpoint.prism.polystring.PrismDefaultPolyStringNormalizer)

Aggregations

PolyString (com.evolveum.midpoint.prism.polystring.PolyString)1 PolyStringNormalizer (com.evolveum.midpoint.prism.polystring.PolyStringNormalizer)1 PrismDefaultPolyStringNormalizer (com.evolveum.midpoint.prism.polystring.PrismDefaultPolyStringNormalizer)1