use of com.bazaarvoice.jolt.CardinalityTransform in project nifi by apache.
the class TestTransformFactory method testGetCardinalityTransform.
@Test
public void testGetCardinalityTransform() throws Exception {
final String cardrSpec = new String(Files.readAllBytes(Paths.get("src/test/resources/TestTransformFactory/cardrSpec.json")));
JoltTransform transform = TransformFactory.getTransform(getClass().getClassLoader(), "jolt-transform-card", JsonUtils.jsonToObject(cardrSpec));
assertTrue(transform instanceof CardinalityTransform);
}
Aggregations