Skip to content

Commit

Permalink
Rename expected test output files.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnbroad committed Sep 9, 2020
1 parent 79d60dd commit 3608f07
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private void wdlGenSmokeTest() throws IOException, ParseException {
// companions, to ensure that the various templates use the template maps correctly.
@Test
private void wdlGenTemplateTest() throws IOException, ParseException {
final File expectedResultsDir = new File("src/test/resources/org/broadinstitute/hellbender/utils/wdltest/");
final File expectedResultsDir = new File("src/test/resources/org/broadinstitute/hellbender/utils/WDLTestExpectedOutputs/");
final File wdlTestTargetDir = createTempDir("wdlgentemplatetest");

doWDLGenTest(
Expand All @@ -65,41 +65,41 @@ private void wdlGenTemplateTest() throws IOException, ParseException {
// index
final String indexHTML = "index.html";
IntegrationTestSpec.assertEqualTextFiles(
new File(expectedResultsDir, indexHTML),
new File(expectedResultsDir, "expected" + indexHTML),
new File(wdlTestTargetDir, indexHTML));

// wdls
final String defaultWDL = "TestWDLTool.wdl";
IntegrationTestSpec.assertEqualTextFiles(
new File(expectedResultsDir, defaultWDL),
new File(expectedResultsDir, "expected" + defaultWDL),
new File(wdlTestTargetDir, defaultWDL));

final String allArgsWDL = "TestWDLToolAllArgs.wdl";
IntegrationTestSpec.assertEqualTextFiles(
new File(expectedResultsDir, allArgsWDL),
new File(expectedResultsDir, "expected" + allArgsWDL),
new File(wdlTestTargetDir, allArgsWDL));

final String allArgsTestWDL = "TestWDLToolAllArgsTest.wdl";
IntegrationTestSpec.assertEqualTextFiles(
new File(expectedResultsDir, allArgsTestWDL),
new File(expectedResultsDir, "expected" + allArgsTestWDL),
new File(wdlTestTargetDir, allArgsTestWDL));

// jsons
final String defaultWDLInputs = "TestWDLToolInputs.json";
IntegrationTestSpec.assertEqualTextFiles(
new File(expectedResultsDir, defaultWDLInputs),
new File(expectedResultsDir, "expected" + defaultWDLInputs),
new File(wdlTestTargetDir, defaultWDLInputs));
assertValidJSONFile(new File(wdlTestTargetDir, defaultWDLInputs));

final String allArgsWDLInputs = "TestWDLToolAllArgsInputs.json";
IntegrationTestSpec.assertEqualTextFiles(
new File(expectedResultsDir, allArgsWDLInputs),
new File(expectedResultsDir, "expected" + allArgsWDLInputs),
new File(wdlTestTargetDir, allArgsWDLInputs));
assertValidJSONFile(new File(wdlTestTargetDir, allArgsWDLInputs));

final String allArgsTestWDLInputs = "TestWDLToolAllArgsTestInputs.json";
IntegrationTestSpec.assertEqualTextFiles(
new File(expectedResultsDir, allArgsTestWDLInputs),
new File(expectedResultsDir, "expected" + allArgsTestWDLInputs),
new File(wdlTestTargetDir, allArgsTestWDLInputs));
assertValidJSONFile(new File(wdlTestTargetDir, allArgsTestWDLInputs));
}
Expand Down

0 comments on commit 3608f07

Please sign in to comment.