Package org.iplantc.agave.client.model

Examples of org.iplantc.agave.client.model.SingleClientResponse


      ClientsApi api = new ClientsApi();
      MultipleClientResponse response = api.list(Settings.API_USERNAME, Settings.API_PASSWORD);
      List<Client> clients = response.getResult();
      Assert.assertFalse(clients.isEmpty(), "No clients returned from client service listing");
     
      SingleClientResponse clientResponse = api.getClientByName(Settings.API_USERNAME, Settings.API_PASSWORD, clients.get(0).getName());
      Assert.assertNotNull(clientResponse.getResult(), "Null client description returned for client " + clients.get(0).getName());
    } catch (ApiException e) {
      Assert.fail("Failed to query all apps", e);
    }
  }
View Full Code Here


      request.setName("my-test-client");
      request.setDescription("test client created for unit tests");
      request.setTier("UNLIMITED");
      request.setCallbackUrl(null);
     
      SingleClientResponse response = api.create(Settings.API_USERNAME, Settings.API_PASSWORD, request);
      Client client = response.getResult();
      Assert.assertNotNull(client, "No clients returned after creation");
     
      SingleClientResponse clientResponse = api.getClientByName(Settings.API_USERNAME, Settings.API_PASSWORD, request.getName());
      Assert.assertNotNull(clientResponse.getResult(), "Null client description returned for client " + request.getName());
     
    } catch (ApiException e) {
      Assert.fail("Failed to query all apps", e);
    }
  }
View Full Code Here

      request.setName("my-test-client");
      request.setDescription("test client created for unit tests");
      request.setTier("UNLIMITED");
      request.setCallbackUrl(null);
     
      SingleClientResponse response = api.create(Settings.API_USERNAME, Settings.API_PASSWORD, request);
      Client client = response.getResult();
      Assert.assertNotNull(client, "No clients returned after creation");
     
      SingleClientResponse clientResponse = api.getClientByName(Settings.API_USERNAME, Settings.API_PASSWORD, request.getName());
      Assert.assertNotNull(clientResponse.getResult(), "Null client description returned for client " + request.getName());
     
      api.delete(Settings.API_USERNAME, Settings.API_PASSWORD, request.getName());
     
      clientResponse = api.getClientByName(Settings.API_USERNAME, Settings.API_PASSWORD, request.getName());
      Assert.assertNull(clientResponse.getResult(), "Client description was returned for deleted client " + request.getName());
         
    } catch (ApiException e) {
      Assert.fail("Failed to query all apps", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.iplantc.agave.client.model.SingleClientResponse

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.