Fixed class to load resources, use getClass().
@@ -15,7 +15,6 @@ import org.junit.jupiter.api.Test;
import edu.hm.hafner.analysis.assertj.SoftAssertions;
import static edu.hm.hafner.analysis.assertj.SoftAssertions.*;
-import edu.hm.hafner.analysis.parser.ParserTester;
import edu.hm.hafner.util.Ensure;
import static org.assertj.core.api.Assertions.*;
@@ -116,7 +115,7 @@ public abstract class AbstractParserTest {
}
private InputStream asStream(final String fileName) {
- InputStream resourceAsStream = ParserTester.class.getResourceAsStream(fileName);
+ InputStream resourceAsStream = getClass().getResourceAsStream(fileName);
Ensure.that(resourceAsStream).isNotNull("File %s not found!", fileName);
