Skip to content

Commit

Permalink
rename files
Browse files Browse the repository at this point in the history
  • Loading branch information
bischoffz committed May 9, 2024
1 parent 815c429 commit 4f1a7b5
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,27 @@
import gov.hhs.aspr.ms.util.resourcehelper.ResourceHelper;

public class AT_PipelineTestSupport {
Path REOURCE_DIR = ResourceHelper.getResourceDir(this.getClass());
String TEST_OUTPUT_DIR_NAME = "testOutput";
Path TEST_OUTPUT_DIR = getResolvedResourcePath(TEST_OUTPUT_DIR_NAME);
String TEST_FILE_NAME = "pipeline_tester.json";
String TEST_FILE_DIR_NAME = "pipeline_tester_dir.json";
String TEST_FILE_PREV_NAME = "pipeline_tester_prev.json";
String TEST_FILE_BAD_NAME = "pipeline_tester_bad.json";
String TEST_FILE_NAME_RESOLVED = "pipeline_tester_resolved.json";

String TEST_GP_FILE_1 = "globalPropertiesPluginData1.json";
String TEST_GP_FILE_2 = "globalPropertiesPluginData2.json";
String TEST_GP_FILE_3 = "globalPropertiesPluginData3.json";
String TEST_GP_FILE_4 = "globalPropertiesPluginData4.json";

Path TEST_GP_FILE_1_PATH = getResolvedResourcePath(TEST_GP_FILE_1);
Path TEST_GP_FILE_2_PATH = getResolvedResourcePath(TEST_GP_FILE_2);
Path TEST_GP_FILE_3_PATH = getResolvedResourcePath(TEST_GP_FILE_3);
Path TEST_GP_FILE_4_PATH = getResolvedResourcePath(TEST_GP_FILE_4);

Path getResolvedResourcePath(String path) {
Path resolvedPath = REOURCE_DIR.resolve(path).toAbsolutePath();
System.out.println(resolvedPath.toString());
return resolvedPath;
private final Path REOURCE_DIR = ResourceHelper.getResourceDir(this.getClass());
private final String TEST_OUTPUT_DIR_NAME = "testOutput";
private final Path TEST_OUTPUT_DIR = getResolvedResourcePath(TEST_OUTPUT_DIR_NAME);
private final String TEST_FILE_NAME = "pipeline_tester.json";
private final String TEST_FILE_DIR_NAME = "pipeline_tester_dir.json";
private final String TEST_FILE_PREV_NAME = "pipeline_tester_prev.json";
private final String TEST_FILE_BAD_NAME = "pipeline_tester_bad.json";
private final String TEST_FILE_NAME_RESOLVED = "pipeline_tester_resolved.json";

private final String TEST_GP_FILE_1 = "globalPropertiesPluginData1.json";
private final String TEST_GP_FILE_2 = "globalPropertiesPluginData2.json";
private final String TEST_GP_FILE_3 = "globalPropertiesPluginData3.json";
private final String TEST_GP_FILE_4 = "globalPropertiesPluginData4.json";

private final Path TEST_GP_FILE_1_PATH = getResolvedResourcePath(TEST_GP_FILE_1);
private final Path TEST_GP_FILE_2_PATH = getResolvedResourcePath(TEST_GP_FILE_2);
private final Path TEST_GP_FILE_3_PATH = getResolvedResourcePath(TEST_GP_FILE_3);
private final Path TEST_GP_FILE_4_PATH = getResolvedResourcePath(TEST_GP_FILE_4);

private final Path getResolvedResourcePath(String path) {
return REOURCE_DIR.resolve(path).toAbsolutePath();
}

@Test
Expand Down

0 comments on commit 4f1a7b5

Please # to comment.