diff --git a/wrangler-transform/src/test/java/io/cdap/wrangler/WranglerTransformTest.java b/wrangler-transform/src/test/java/io/cdap/wrangler/WranglerTransformTest.java index 4b6b261fd..a40bd3cc7 100644 --- a/wrangler-transform/src/test/java/io/cdap/wrangler/WranglerTransformTest.java +++ b/wrangler-transform/src/test/java/io/cdap/wrangler/WranglerTransformTest.java @@ -79,25 +79,5 @@ public void invalidRelationTest () { Assert.assertEquals(invalidrelation.getValidationError(), wrangler.transform(null, relation).getValidationError()); } - - public static Relation runTransform(String[] recipe, - RelationalTranformContext relationalTranformContext, - Relation relation) - throws DirectiveParseException, RecipeException { - DirectiveRegistry registry; - registry = SystemDirectiveRegistry.INSTANCE; - try { - registry.reload("default"); - } catch (DirectiveLoadException e) { - throw new RuntimeException(e); - } - - GrammarBasedParser parser = new GrammarBasedParser("default", - new MigrateToV2(recipe).migrate(), registry); - List directives = parser.parse(); - for (Directive directive : directives) { - relation = directive.transform(relationalTranformContext, relation); - } - return relation; - } + }