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;
    }
}

package org.exist.mongodb.test.bson;

import org.exist.test.runner.XSuite;
import org.junit.runner.RunWith;

@RunWith(XSuite.class)
@XSuite.XSuiteFiles({
        "src/test/xquery"
})

public class ParserTests  {

}

Fix build