use of com.optimizely.ab.config.ProjectConfig in project java-sdk by optimizely.
the class GsonConfigParserTest method parseProjectConfigV4.
@Test
public void parseProjectConfigV4() throws Exception {
GsonConfigParser parser = new GsonConfigParser();
ProjectConfig actual = parser.parseProjectConfig(validConfigJsonV4());
ProjectConfig expected = validProjectConfigV4();
verifyProjectConfig(actual, expected);
}
use of com.optimizely.ab.config.ProjectConfig in project java-sdk by optimizely.
the class GsonConfigParserTest method parseProjectConfigV3.
@Test
public void parseProjectConfigV3() throws Exception {
GsonConfigParser parser = new GsonConfigParser();
ProjectConfig actual = parser.parseProjectConfig(validConfigJsonV3());
ProjectConfig expected = validProjectConfigV3();
verifyProjectConfig(actual, expected);
}
use of com.optimizely.ab.config.ProjectConfig in project java-sdk by optimizely.
the class GsonConfigParserTest method parseNullFeatureEnabledProjectConfigV4.
@Test
public void parseNullFeatureEnabledProjectConfigV4() throws Exception {
GsonConfigParser parser = new GsonConfigParser();
ProjectConfig actual = parser.parseProjectConfig(nullFeatureEnabledConfigJsonV4());
assertNotNull(actual);
assertNotNull(actual.getExperiments());
assertNotNull(actual.getFeatureFlags());
}
use of com.optimizely.ab.config.ProjectConfig in project java-sdk by optimizely.
the class JsonConfigParserTest method parseProjectConfigV2.
@Test
public void parseProjectConfigV2() throws Exception {
JsonConfigParser parser = new JsonConfigParser();
ProjectConfig actual = parser.parseProjectConfig(validConfigJsonV2());
ProjectConfig expected = validProjectConfigV2();
verifyProjectConfig(actual, expected);
}
use of com.optimizely.ab.config.ProjectConfig in project java-sdk by optimizely.
the class JsonConfigParserTest method parseProjectConfigV3.
@Test
public void parseProjectConfigV3() throws Exception {
JsonConfigParser parser = new JsonConfigParser();
ProjectConfig actual = parser.parseProjectConfig(validConfigJsonV3());
ProjectConfig expected = validProjectConfigV3();
verifyProjectConfig(actual, expected);
}
Aggregations