private void testInverseTransform(String caseFile) throws IOException { testInverseTransform(caseFile, caseFile); }
private JsonObject testTransform(String caseFile) throws IOException { return testTransform(caseFile, caseFile); }
@Test public void shouldTransformCompleteRake() throws IOException { testTransform("complete.rake"); }
@Test public void shouldInverseTransformMinimalFetch() throws IOException { testInverseTransform("minimal.fetch"); }
@Test public void shouldTransformFullExec() throws IOException { testTransform("full.exec"); }
@Test public void shouldInverseTransformFullExec() throws IOException { testInverseTransform("full.exec"); }
@Test public void shouldTransformScript() throws IOException { testTransform("script"); }
@Test public void shouldInverseTransformCompleteRake() throws IOException { testInverseTransform("complete.rake"); }
@Test public void shouldTransformFetchExternalArtifactTask() throws IOException { testTransform("fetch_external_artifact"); }
@Test public void shouldInverseTransformBreaklineScript() throws IOException { testInverseTransform("breakline.script"); }
@Test public void shouldTransformMinimalRake() throws IOException { testTransform("minimal.rake"); }
@Test public void shouldInverseTransformCompleteFetch() throws IOException { testInverseTransform("complete.fetch"); }
@Test public void shouldTransformMinimalFetch() throws IOException { testTransform("minimal.fetch"); }
@Test public void shouldInverseTransformScript() throws IOException { testInverseTransform("script"); }
@Test public void shouldTransformCompleteFetch() throws IOException { testTransform("complete.fetch"); }
@Test public void shouldInverseTransformMultilineScript() throws IOException { testInverseTransform("multiline.script"); }
@Test public void shouldTransformCompletePlugin() throws IOException { testTransform("complete.plugin"); }
@Test public void shouldInverseTransformCompletePlugin() throws IOException { testInverseTransform("complete.plugin"); }
@Test public void shouldTransformMultilineScript() throws IOException { JsonObject plugin = testTransform("multiline.script"); assertThat(plugin.getAsJsonArray("configuration").get(0).getAsJsonObject().get("value").getAsString(), is("./build.sh compile\nmake test")); }
@Test public void shouldInverseTransformMinimalRake() throws IOException { testInverseTransform("minimal.rake"); }