Package com.openshift.internal.client.httpclient

Examples of com.openshift.internal.client.httpclient.BadRequestException


  @Test
  public void shouldThrowWithTextAndExistCode() throws Throwable {
      // pre-conditions
    try {
      mockDirector.mockDeleteDomain("foobarz",
              new BadRequestException(
                  DELETE_DOMAINS_FOOBARZ_KO_EXISTINGAPPS.getContentAsString(),
                  new IOException(
                      "IOException message: Server returned HTTP response code: 400 for URL: https://openshift.redhat.com/broker/rest/domains/foobarz")));
      IDomain domain = user.getDefaultDomain();
      // operation
View Full Code Here


  @Test
  public void shouldNotDestroyDomainWithApp() throws Throwable {
    // pre-conditions
    mockDirector.mockDeleteDomain("foobarz",
        new BadRequestException("Domain contains applications. Delete applications first or set force to true.", null));
    // operation
    final IDomain domain = user.getDomain("foobarz");
    try {
      domain.destroy();
      fail("Expected an exception here..");
View Full Code Here

TOP

Related Classes of com.openshift.internal.client.httpclient.BadRequestException

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.