Examples of listKey()


Examples of org.apache.deltacloud.client.DeltaCloudClient.listKey()

    DeltaCloudClient client = testSetup.getClient();
    Key key = client.createKey(id);
    assertNotNull(key);
    assertEquals(id, key.getId());
    key.destroy(client);
    client.listKey(key.getId());
  }

  /**
   * checks if the client throws a {@link DeltaCloudNotFoundClientException}
   * if an unknown key is requested.
View Full Code Here

Examples of org.apache.deltacloud.client.DeltaCloudClient.listKey()

  public void canListKey() throws DeltaCloudClientException {
    String id = String.valueOf(System.currentTimeMillis());
    DeltaCloudClient client = testSetup.getClient();
    try {
      Key createdKey = client.createKey(id);
      Key listedKey = client.listKey(id);
      assertEquals(createdKey.getId(), listedKey.getId());
    } finally {
      quietlyDeleteKey(id);
    }
  }
View Full Code Here

Examples of org.apache.deltacloud.client.DeltaCloudClient.listKey()

  }

  private void quietlyDeleteKey(String id) {
    try {
      DeltaCloudClient client = testSetup.getClient();
      Key key = client.listKey(id);
      key.destroy(client);
    } catch (Exception e) {
      // ignore
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.