use of org.eclipse.che.api.workspace.server.model.impl.ExtendedMachineImpl in project che by eclipse.
the class DockerfileEnvironmentParserTest method shouldThrowExceptionOnParseOfDockerfileEnvWithSeveralExtendedMachines.
@Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = "Environment of type '.*' doesn't support multiple machines, but contains machines: .*")
public void shouldThrowExceptionOnParseOfDockerfileEnvWithSeveralExtendedMachines() throws Exception {
// given
EnvironmentImpl environment = createDockerfileEnvConfig();
environment.getMachines().put("anotherMachine", new ExtendedMachineImpl(emptyList(), emptyMap(), emptyMap()));
// when
parser.parse(environment);
}
Aggregations