package hu.bme.mit.codemodel.rifle.visualization;

import java.io.File;

public abstract class TestCase {
    protected static final String branchId = "dummyTestExport";
    protected static final String sessionId = "dummyTestExport";
    protected String testFolderPrefix = "";

    protected String getTestResourcesFolderPath(String testMethodName) {
        try {
            String testResourceFolderWithinResources = this.testFolderPrefix + File.separator + this.getClass().getSimpleName() +
                File.separator + testMethodName;
            String path = this.getClass().getClassLoader().getResource(testResourceFolderWithinResources).getPath();
            return path;
        } catch (NullPointerException e) {
            e.printStackTrace();
            return null;
        }
    }
}

@@ -424,77 +424,151 @@
 his.
-testFolderPrefix + File.separator + this.getClass().getSimpleName() +
+getClass().getSimpleName() + File.separator +%0A                testMethodName;%0A            %0A            if (!this.testFolderPrefix.equals(%22%22)) %7B
 %0A   
@@ -584,40 +584,154 @@
     
-File.separator + testMethodName;
+testResourceFolderWithinResources = this.testFolderPrefix + File.separator +%0A                    testResourceFolderWithinResources;%0A            %7D%0A
 %0A   

Test folder prefix separator should only be added to the path if prefix is not empty