com.slickqa.executioner.dummyagent.DummyAgentConfigurationImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of executioner-dummyagent Show documentation
Show all versions of executioner-dummyagent Show documentation
A testing agent to validate that the internal workings of Executioner are functioning.
package com.slickqa.executioner.dummyagent;
import io.vertx.core.json.JsonObject;
/**
* Implementation of dummy agent configuration based on vertx context configuration.
*/
public class DummyAgentConfigurationImpl implements DummyAgentConfiguration {
private JsonObject config;
public DummyAgentConfigurationImpl(JsonObject config) {
this.config = config;
}
@Override
public int getDummyAgentNumber() {
return config.getInteger("agentNumber", 0);
}
}