I have a JUnit test class that is triggered by the maven build.
It loads a file `src/test/resources/ConfigTest.json`
When running locally from the command line it works as expected, but when running in the bitbucket-pipeline this test fails:
```
import java.io.File;
import org.junit.Assert;
import org.junit.Test;
public class ClassLoaderTest {
@techoneway
public final void test() {
ClassLoader c = this.getClass().getClassLoader();
// THIS line fails with a null pointer
File configFile = new File(c.getResource("ConfigTest.json").getFile());
Assert.assertTrue(configFile.exists());
}
}
```
What do I miss?