use of com.hazelcast.simulator.common.AgentsFile in project hazelcast-simulator by hazelcast.
the class TestEnvironmentUtils method createAgentsFileWithLocalhost.
public static void createAgentsFileWithLocalhost() {
agentsFile = new File(getUserDir(), AgentsFile.NAME);
appendText("127.0.0.1", agentsFile);
}
use of com.hazelcast.simulator.common.AgentsFile in project hazelcast-simulator by hazelcast.
the class WizardTest method before.
@Before
public void before() {
setupFakeEnvironment();
simulatorProperties = mock(SimulatorProperties.class);
when(simulatorProperties.getUser()).thenReturn(SSH_USERNAME);
when(simulatorProperties.getSshOptions()).thenReturn("");
bash = mock(Bash.class);
workDir = new File("wizardTestWorkDir").getAbsoluteFile();
testPropertiesFile = new File(workDir, "test.properties");
runScriptFile = new File(workDir, "run");
prepareScriptFile = new File(workDir, "prepare");
simulatorPropertiesFile = new File(workDir, SimulatorProperties.PROPERTIES_FILE_NAME);
agentsFile = new File(workDir, AgentsFile.NAME);
localSimulatorPropertiesFile = new File(SimulatorProperties.PROPERTIES_FILE_NAME).getAbsoluteFile();
profileFile = ensureExistingFile("wizardTest.txt");
wizard = new Wizard();
}
Aggregations