Package org.apache.deltacloud.client.internal.test.fakes

Examples of org.apache.deltacloud.client.internal.test.fakes.ServerFake


   *             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();
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.deltacloud.client.internal.test.fakes.ServerFake

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.