* Signals that an I/O exception has occurred.
* @throws DeltaCloudClientException
*/
@Test
public void reportsUnknownUrl() throws IOException, DeltaCloudClientException {
ServerFake serverFake =
new ServerFake(
new URL(MockIntegrationTestContext.SERVERFAKE_URL).getPort(),
"<dummy></dummy>");
serverFake.start();
try {
assertEquals(
Driver.UNKNOWN,
new DeltaCloudClientImpl(
MockIntegrationTestContext.SERVERFAKE_URL, MockIntegrationTestContext.DELTACLOUD_USER,
MockIntegrationTestContext.DELTACLOUD_PASSWORD).getServerType());
} finally {
serverFake.stop();
}
}