Examples of EmbeddableCartridge


Examples of com.openshift.client.cartridge.EmbeddableCartridge

  @Test
  public void shouldDownloadableStandaloneNotEqualsDownloadableEmbeddable() throws MalformedURLException {
    // pre-coniditions
    // operation
    // verification
    assertThat(new EmbeddableCartridge(null, new URL(CartridgeTestUtils.FOREMAN_URL)))
        .isNotEqualTo(new StandaloneCartridge(null, new URL(CartridgeTestUtils.GO_URL)));
  }
View Full Code Here

Examples of com.openshift.client.cartridge.EmbeddableCartridge

  @Test
  public void shouldMatchEmbeddableCartridge() {
    // pre-conditions
    LatestVersionQuery redhatSelector = new LatestVersionQuery("redhat");
    LatestVersionQuery jbossSelector = new LatestVersionQuery("jboss");
    IEmbeddableCartridge redhat10 = new EmbeddableCartridge("redhat-1.0");
    IEmbeddableCartridge redhat30 = new EmbeddableCartridge("redhat-3.0");
    IEmbeddableCartridge jboss10 = new EmbeddableCartridge("jboss-1.0");
    LatestVersionQuery closedSourceSelector = new LatestVersionQuery("closedsource");
    // operation
    // verification
    assertTrue(redhatSelector.matches(redhat10));
    assertTrue(redhatSelector.matches(redhat30));
View Full Code Here

Examples of com.openshift.client.cartridge.EmbeddableCartridge

  public void shouldDownloadableStandaloneNotEqualsDownloadableEmbeddable() throws MalformedURLException {
    // pre-coniditions
    // operation
    // verification
    assertThat(new StandaloneCartridge(new URL(CartridgeTestUtils.GO_URL)))
        .isNotEqualTo(new EmbeddableCartridge(new URL(CartridgeTestUtils.FOREMAN_URL)));
  }
View Full Code Here

Examples of com.openshift.client.cartridge.EmbeddableCartridge

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

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

Examples of com.openshift.client.cartridge.EmbeddableCartridge

    final IApplication app = domain.getApplicationByName("springeap6");
    assertThat(app.getEmbeddedCartridges()).hasSize(2);

    // operation
    try {
      app.addEmbeddableCartridge(new EmbeddableCartridge(CartridgeTestUtils.POSTGRESQL_84_NAME));
      fail("Expected an exception here...");
    } catch (OpenShiftTimeoutException e) {
      // ok
    }
View Full Code Here

Examples of com.openshift.client.cartridge.EmbeddableCartridge

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

Examples of com.openshift.client.cartridge.EmbeddableCartridge

        List<IEmbeddableCartridge> list = new ArrayList<IEmbeddableCartridge>();
        for (int idx = 1,  size = cartridgeUrls.length; idx < size; idx++) {
            String embeddedUrl = cartridgeUrls[idx];
            LOG.info("Adding embedded cartridge: " + embeddedUrl);
            if (embeddedUrl.startsWith(PREFIX_CARTRIDGE_ID)) {
                list.add(new EmbeddableCartridge(embeddedUrl.substring(PREFIX_CARTRIDGE_ID.length())));
            } else {
                list.add(new EmbeddableCartridge(new URL(embeddedUrl)));
            }
        }
        if (!list.isEmpty()) {
            application.addEmbeddableCartridges(list);
        }
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.