package org.exist.mongodb.test.bson;

import org.apache.commons.lang3.StringUtils;
import xquery.TestRunner;

public class ParserTests extends TestRunner {

    @Override
    protected String getDirectory() {
        
        ClassLoader loader = this.getClass().getClassLoader();
        String className = this.getClass().getCanonicalName().replaceAll("\\.", "\\/");
        
        String fullPath = loader.getResource(className + ".class").getFile();
        String directory = StringUtils.substringBeforeLast(fullPath, "/");
          
        return directory;
    }
}

@@ -46,531 +46,170 @@
 org.
-apache.commons.lang3.StringUtils;%0Aimport xquery.TestRunner;%0A%0Apublic class ParserTests extends TestRunner %7B%0A%0A    @Override%0A    protected String getDirectory() %7B%0A        %0A        ClassLoader loader = this.getClass().getClassLoader();%0A        String className = this.getClass().getCanonicalName().replaceAll(%22%5C%5C.%22, %22%5C%5C/%22);%0A        %0A        String fullPath = loader.getResource(className + %22.class%22).getFile();%0A        String directory = StringUtils.substringBeforeLast(fullPath, %22/%22);%0A          %0A        return directory;%0A    %7D
+exist.test.runner.XSuite;%0Aimport org.junit.runner.RunWith;%0A%0A@RunWith(XSuite.class)%0A@XSuite.XSuiteFiles(%7B%0A        %22src/test/xquery%22%0A%7D)%0A%0Apublic class ParserTests  %7B%0A
 %0A%7D%0A

Fix build