I have gone through several related questions and solutions to solve my problem but none seem to solve mine. So here is my problem I have a properties file under
and I need to read this properties file , here's my code
public class DBSPatientContext {
public static final Logger logger = LoggerFactory.getLogger("TESTCONTEXT");
public static final String DBS_PROPERTIES = "dbsautomationconfig.properties";
static {
try {
TestContext.loadProperties(this.class.getClassLoader().getResourceAsStream(DBS_PROPERTIES));
} catch (IOException var1) {
logger.debug(var1.getMessage(), var1);
}
}
It's always returning null. Any help is appreciated