new String[]{"0_0", "1_0", "1_4"},
new DummyRemoteServerConfigurationSource(someRemoteConfigs())
);
fail();
} catch (InvalidBrowserSpecificationException e) {
InvalidRemoteMachineUrlBrowserCombination combo = e.createInvalidRemoteRunSpecification();
assertEquals("1, 4", combo.getDisplayString());
}
try {
builder.forIdStringPairs(
new String[]{"0_0", "3_2", "1_0"},
new DummyRemoteServerConfigurationSource(someRemoteConfigs())
);
fail();
} catch (InvalidBrowserSpecificationException e) {
InvalidRemoteMachineUrlBrowserCombination combo = e.createInvalidRemoteRunSpecification();
assertEquals("3, 2", combo.getDisplayString());
}
try {
builder.forIdStringPairs(
new String[]{"0_0", "foobar_2", "1_0"},
new DummyRemoteServerConfigurationSource(someRemoteConfigs())
);
fail();
} catch (InvalidBrowserSpecificationException e) {
InvalidRemoteMachineUrlBrowserCombination combo = e.createInvalidRemoteRunSpecification();
assertEquals("foobar, 2", combo.getDisplayString());
}
try {
builder.forIdStringPairs(
new String[]{"0_0", "5_foobar", "1_0"},
new DummyRemoteServerConfigurationSource(someRemoteConfigs())
);
fail();
} catch (InvalidBrowserSpecificationException e) {
InvalidRemoteMachineUrlBrowserCombination combo = e.createInvalidRemoteRunSpecification();
assertEquals("5, foobar", combo.getDisplayString());
}
}