Search in sources :

Example 1 with CardinalityTransform

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);
}
Also used : CardinalityTransform(com.bazaarvoice.jolt.CardinalityTransform) JoltTransform(com.bazaarvoice.jolt.JoltTransform) Test(org.junit.Test)

Aggregations

CardinalityTransform (com.bazaarvoice.jolt.CardinalityTransform)1 JoltTransform (com.bazaarvoice.jolt.JoltTransform)1 Test (org.junit.Test)1