final Artifact slaveId = new Artifact("groupId", "slaveId", "2.0", "car");
nameBuilder.buildSlaveConfigurationName(configId);
modify().returnValue(slaveId);
storeClient.install(clusterInfo, configurationData);
modify().args(is.AS_RECORDED, new AbstractExpression() {
public void describeWith(ExpressionDescriber arg) throws IOException {
}
public boolean passes(Object arg) {
ConfigurationData configurationData = (ConfigurationData) arg;
assertSame(slaveId, configurationData.getId());
return true;
}
});
delegate.install(configurationData);
modify().args(new AbstractExpression() {
public void describeWith(ExpressionDescriber arg) throws IOException {
}
public boolean passes(Object arg) {
ConfigurationData configurationData = (ConfigurationData) arg;
assertSame(slaveId, configurationData.getId());
return true;
}
});
NodeInfo nodeInfo = (NodeInfo) mock(NodeInfo.class);
nodeInfo.getName();
final String nodeName = "nodeName";
modify().multiplicity(expect.from(0)).returnValue(nodeName);
clusterInfo.getNodeInfos();
modify().returnValue(Collections.singleton(nodeInfo));
delegate.createNewConfigurationDir(configId);
final File masterDir = new File("masterDir");
modify().returnValue(masterDir);
delegate.install(null);
modify().args(new AbstractExpression() {
public void describeWith(ExpressionDescriber arg) throws IOException {
}
public boolean passes(Object arg) {
ConfigurationData configurationData = (ConfigurationData) arg;