use of com.seleniumtests.core.config.ConfigReader in project seleniumRobot by bhecquet.
the class TestConfigReader method readConfigurationWithoutValueOverride.
@Test(groups = { "ut" })
public void readConfigurationWithoutValueOverride() {
Map<String, TestVariable> config = new ConfigReader("VNR", null).readConfig(Thread.currentThread().getContextClassLoader().getResourceAsStream("tu/env.ini"));
Assert.assertEquals(config.get("key1").getValue(), "value1", "Key should not be overriden");
}
use of com.seleniumtests.core.config.ConfigReader in project seleniumRobot by bhecquet.
the class TestConfigReader method readConfigurationWithValueOverride.
@Test(groups = { "ut" })
public void readConfigurationWithValueOverride() {
Map<String, TestVariable> config = new ConfigReader("DEV", null).readConfig(Thread.currentThread().getContextClassLoader().getResourceAsStream("tu/env.ini"));
Assert.assertEquals(config.get("key1").getValue(), "value4", "Key override does not work");
}
Aggregations