@Test public void testMacroSkippingDuringParsing() throws Exception { String[] recipe = new String[] { "parse-as-csv :body ',' true;", "${macro1}", "${macro${number}}", "parse-as-csv :body '${delimiter}' true;" }; CompileStatus status = TestingRig.compile(recipe); Assert.assertEquals(true, status.isSuccess()); }
@Override public CompileStatus compile(String recipe) throws CompileException { return compile(CharStreams.fromString(recipe)); }
RecipeCompiler implements Compiler { @Override public CompileStatus compile(String recipe) throws CompileException { return compile(CharStreams.fromString(recipe)); } }
RecipeCompiler implements Compiler { @Override public CompileStatus compile(String recipe) throws CompileException { return compile(CharStreams.fromString(recipe)); } RecipeCompiler(); }
RecipeCompiler implements Compiler { @Override public CompileStatus compile(String recipe) throws CompileException { return compile(CharStreams.fromString(recipe)); } RecipeCompiler(); @Override CompileStatus compile(String recipe); @Override CompileStatus compile(Location location); @Override CompileStatus compile(Path path); }
RecipeCompiler implements Compiler { @Override public CompileStatus compile(String recipe) throws CompileException { return compile(CharStreams.fromString(recipe)); } RecipeCompiler(); @Override CompileStatus compile(String recipe); @Override CompileStatus compile(Location location); @Override CompileStatus compile(Path path);  }