private void testInverseTransform(String caseFile) throws IOException { testInverseTransform(caseFile, caseFile); }
private JsonObject testTransform(String caseFile) throws IOException { return testTransform(caseFile, caseFile); }
@Test public void shouldTransformExternalArtifactConfig() throws IOException { testTransform("external_artifacts"); }
@Test public void shouldInverseTransformElasticProfileJob() throws IOException { testInverseTransform("elastic_profile"); }
@Test public void shouldTransformMinimalJob() throws IOException { testTransform("minimal"); }
@Test public void shouldInverseTransformMinimalWithDefaultsJob() throws IOException { testInverseTransform("minimal_defaults"); }
@Test public void shouldTransformCompleteJob() throws IOException { testTransform("complete"); }
@Test public void shouldInverseTransformMinimalJob() throws IOException { testInverseTransform("minimal"); }
@Test public void shouldTransformElasticProfileJob() throws IOException { testTransform("elastic_profile"); }
@Test public void shouldInverseTransformRunAllJob() throws IOException { testInverseTransform("runall"); }
@Test public void shouldTransformRunAllJob() throws IOException { JsonObject job = testTransform("runall"); assertThat(job.get("run_instance_count").getAsJsonPrimitive().isString(), is(true)); assertThat(job.get("run_instance_count").getAsString(), is("all")); }
@Test public void shouldInverseTransformCompleteJob() throws IOException { testInverseTransform("complete"); }
@Test public void shouldTransformJobWithListOfListsTasks() throws IOException { environmentTransform = new EnvironmentVariablesTransform(); taskTransform = new TaskTransform(); parser = new JobTransform(environmentTransform, taskTransform); JsonObject job = testTransform("list_of_lists_tasks"); }