Package com.openshift.client.cartridge

Examples of com.openshift.client.cartridge.EmbeddableCartridge


            new StandaloneCartridge(
                cartridgeDTO.getName(), cartridgeDTO.getDisplayName(), cartridgeDTO.getDescription()));
        break;
      case EMBEDDED:
        this.embeddedCartridgeNames.add(
            new EmbeddableCartridge(
                cartridgeDTO.getName(), cartridgeDTO.getDisplayName(), cartridgeDTO.getDescription()));
        break;
      default:
      }
    }
View Full Code Here


      standaloneCartridges.add(
          new StandaloneCartridge(dto.getName(), dto.getDisplayName(), dto.getDescription(), dto.getObsolete()));
      break;
    case EMBEDDED:
      embeddableCartridges.add(
          new EmbeddableCartridge(dto.getName(), dto.getDisplayName(), dto.getDescription(), dto.getObsolete()));
      break;
    case UNDEFINED:
      break;
    }
  }
View Full Code Here

            new StandaloneCartridge(
                cartridgeDTO.getName(), cartridgeDTO.getDisplayName(), cartridgeDTO.getDescription()));
        break;
      case EMBEDDED:
        this.embeddedCartridgeNames.add(
            new EmbeddableCartridge(
                cartridgeDTO.getName(), cartridgeDTO.getDisplayName(), cartridgeDTO.getDescription()));
        break;
      default:
      }
    }
View Full Code Here

          new StandaloneCartridge(dto.getName(), dto.getDisplayName(), dto.getDescription(), dto
              .getObsolete()));
      break;
    case EMBEDDED:
      embeddableCartridges.add(
          new EmbeddableCartridge(dto.getName(), dto.getDisplayName(), dto.getDescription(), dto
              .getObsolete()));
      break;
    case UNDEFINED:
      break;
    }
View Full Code Here

    // pre-coniditions
    IEmbeddedCartridge embeddedCartridgeFake = createEmbeddedCartridgeFake("redhat");

    // operation
    // verification
    assertThat(new EmbeddableCartridge("redhat")).isEqualTo(embeddedCartridgeFake);
    assertThat(embeddedCartridgeFake).isEqualTo(new EmbeddableCartridge("redhat"));
    assertThat(new EmbeddableCartridge("redhat")).isNotEqualTo(new EmbeddableCartridge("jboss"));
  }
View Full Code Here

  public void shouldHaveSameHashCode() {
    // pre-coniditions
    IEmbeddedCartridge embeddedCartridgeFake = createEmbeddedCartridgeFake("redhat");
    // operation
    // verification
    assertThat(embeddedCartridgeFake.hashCode()).isEqualTo(new EmbeddableCartridge("redhat").hashCode());
  }
View Full Code Here

  @Test
  public void shouldEmbeddableCartridgeWithNameEqualsEmbeddedCartridgeWithoutName() throws MalformedURLException {
    // pre-coniditions
    // operation
    // verification
    assertEquals(new EmbeddableCartridge(null, new URL(CartridgeTestUtils.FOREMAN_URL)),
        new EmbeddableCartridge("redhat", new URL(CartridgeTestUtils.FOREMAN_URL)));
  }
View Full Code Here

    IEmbeddedCartridge embeddedCartridgeMock = createEmbeddedCartridgeFake("redhat");
    HashSet<IEmbeddedCartridge> cartridges = new HashSet<IEmbeddedCartridge>();
    cartridges.add(embeddedCartridgeMock);
    assertEquals(cartridges.size(), 1);
    // operation
    boolean removed = cartridges.remove(new EmbeddableCartridge("redhat"));

    // verification
    assertTrue(removed);
    assertEquals(0, cartridges.size());
  }
View Full Code Here

  }

  @Test
  public void shouldNotHaveUrlInNonDownloadableCartridge() throws Throwable {
    // pre-conditions
    IEmbeddableCartridge mysql = new EmbeddableCartridge(CartridgeTestUtils.MYSQL_51_NAME);
    assertThat(mysql.getUrl()).isNull();

    // operation
    IEmbeddedCartridge embeddedMysql = application.getEmbeddedCartridge(mysql);
    // verifications
    new EmbeddedCartridgeAssert(embeddedMysql)
View Full Code Here

   
    IDomain domain = mockDirector.getDomain("foobarz");
    IApplication downloadablecartApp = domain.getApplicationByName("downloadablecart");
    assertThat(downloadablecartApp).isNotNull();

    IEmbeddableCartridge foreman = new EmbeddableCartridge(new URL(FOREMAN_URL));
    new CartridgeAssert<IEmbeddableCartridge>(foreman)
        .hasUrl(CartridgeTestUtils.FOREMAN_URL)
        .hasName(null)
        .hasDescription(null)
        .hasDisplayName(null);
View Full Code Here

TOP

Related Classes of com.openshift.client.cartridge.EmbeddableCartridge

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.