Skip to content

Commit

Permalink
Fix Unit Test on AdvancedConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
ks167484 authored and ks167484 committed Aug 8, 2024
1 parent c863024 commit aaf1d8b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void listOpiFilesTest() {
String tmpOpiFolder = "src/test/resources/opiFiles";
File file = new File(tmpOpiFolder);

List<String> listOpiFiles = AdvancedConverter.listOpiFiles(file.getAbsolutePath());
List<String> listOpiFiles = AdvancedConverter.getInstance().listOpiFiles(file.getAbsolutePath());
assertTrue(listOpiFiles.size() == 4);

for (String opiFile : listOpiFiles) {
Expand All @@ -33,11 +33,11 @@ public void listScriptFilesTest() {
String tmpOpiFolder = "src/test/resources/opiFiles";
File file = new File(tmpOpiFolder);

List<String> listScriptFiles = AdvancedConverter.listScriptFiles(file.getAbsolutePath());
List<String> listScriptFiles = AdvancedConverter.getInstance().listScriptFiles(file.getAbsolutePath());
assertTrue(listScriptFiles.size() == 4);

for (String scriptFile : listScriptFiles) {
assertTrue(AdvancedConverter.isScriptFile(scriptFile));
assertTrue(AdvancedConverter.getInstance().isScriptFile(scriptFile));
}
}

Expand All @@ -48,7 +48,7 @@ public void generateRecursiveArgumentsTest() {
String tmpOpiFolder = "src/test/resources/opiFiles";
File file = new File(tmpOpiFolder);
String[] arg = new String[] { file.getAbsolutePath() };
String[] generateArguments = AdvancedConverter.generateRecursiveArguments(arg);
String[] generateArguments = AdvancedConverter.getInstance().generateRecursiveArguments(arg);
// System.out.println(Arrays.toString(generateArguments));
// System.out.println(generateArguments.length);
assertTrue(generateArguments.length == 6);
Expand Down

0 comments on commit aaf1d8b

Please sign in to comment.