EnvironmentConfig implements Serializable { public ExecMode getExecMode() { return execMode; } EnvironmentConfig(); ExecMode getExecMode(); boolean getAutoResizeWindow(); String getHubHost(); int getHubPort(); int getMaxThreadCount(); int getMaxThreadExecuteTime(); int getMaxDriverWait(); int getScriptTimeout(); String getCapabilitiesFilePath(); String getPersister(); WebDriverSessionLevel getWebDriverSessionLevel(); boolean isDebug(); void setWebDriverSessionLevel(WebDriverSessionLevel webDriverSessionLevel); void setDebug(boolean debug); @Override String toString(); static Builder builder();  }
@Test public void testAnnotatedProperties_PtlConfigurationProperty() throws Exception { Map<String, String> props = new HashMap<String, String>(); props.put("environmentConfig", "com/htmlhifive/pitalium/core/config/EnvironmentConfigTest_allProperties.json"); props.put("execMode", "TAKE_SCREENSHOT"); PtlTestConfig config = new PtlTestConfig(props); EnvironmentConfig env = config.getConfig(EnvironmentConfig.class); assertThat(env.getExecMode(), is(ExecMode.TAKE_SCREENSHOT)); }