Examples of BaseCartridge


Examples of com.openshift.internal.client.cartridge.BaseCartridge

public class NamedCartridgeSpec implements ICartridgeQuery {

  private final ICartridge cartridge;

  protected NamedCartridgeSpec(String name) {
    this.cartridge = new BaseCartridge(name);
  }
View Full Code Here

Examples of com.openshift.internal.client.cartridge.BaseCartridge

  protected DownloadableCartridgeSpec(String url) throws MalformedURLException {
    this(new URL(url));
  }

  protected DownloadableCartridgeSpec(URL url) {
    this.cartridge = new BaseCartridge(url);
  }
View Full Code Here

Examples of com.openshift.internal.client.cartridge.BaseCartridge

  @Test
  public void shouldNonDownloadableEqualsNonDownloadable() {
    // pre-coniditions
    // operation
    // verification
    assertThat(new BaseCartridge("redhat"))
        .isEqualTo(new BaseCartridge("redhat"));
    assertThat(new BaseCartridge("redhat"))
        .isNotEqualTo(new BaseCartridge("jboss"));
  }
View Full Code Here

Examples of com.openshift.internal.client.cartridge.BaseCartridge

  @Test
  public void shouldDownloadableEqualsDownloadable() throws MalformedURLException {
    // pre-coniditions
    // operation
    // verification
    assertThat(new BaseCartridge(new URL(CartridgeTestUtils.GO_URL)))
        .isEqualTo(new BaseCartridge(new URL(CartridgeTestUtils.GO_URL)));
  }
View Full Code Here

Examples of com.openshift.internal.client.cartridge.BaseCartridge

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

Examples of com.openshift.internal.client.cartridge.BaseCartridge

  @Test
  public void shouldNotHaveUrlInNonDownloadableCartridge() throws Throwable {
    // pre-conditions

    // operation
    ICartridge mysql = new BaseCartridge(CartridgeTestUtils.MYSQL_51_NAME);

    // verifications
    new CartridgeAssert<ICartridge>(mysql)
        .hasNoUrl();
  }
View Full Code Here

Examples of com.openshift.internal.client.cartridge.BaseCartridge

  }

  @Test
  public void shouldNotBeDownloadableCartridge() throws Throwable {
    // pre-conditions
    ICartridge jbossAsCartridge = new BaseCartridge("jboss-7");
    ICartridge jbossEapCartridge = new BaseCartridge("jbosseap-6");

    // operation
    // verifications
    assertThat(jbossAsCartridge.isDownloadable()).isFalse();
    assertThat(jbossAsCartridge.getUrl()).isNull();
    assertThat(jbossEapCartridge.isDownloadable()).isFalse();
    assertThat(jbossEapCartridge.getUrl()).isNull();
  }
View Full Code Here

Examples of com.openshift.internal.client.cartridge.BaseCartridge

  }
 
  public static List<ICartridge> createCartridges(String... names) {
    List<ICartridge> cartridges = new ArrayList<ICartridge>();
    for (String name : names) {
      cartridges.add(new BaseCartridge(name));
    }
    return cartridges;
  }
View Full Code Here

Examples of com.openshift.internal.client.cartridge.BaseCartridge

        .hasTags("drupal")
        .hasLanguage("PHP")
        .hasProvider("community")
        .hasCartridges(
            Arrays.<ICartridge> asList(
                new BaseCartridge(
                    new URL(
                        "https://cartreflect-claytondev.rhcloud.com/reflect?github=phase2/openshift-php-fpm")),
                CartridgeTestUtils.mysql51(),
                new BaseCartridge(
                    new URL(
                        "https://cartreflect-claytondev.rhcloud.com/reflect?github=phase2/openshift-community-drush-master"))));
  }
View Full Code Here

Examples of com.openshift.internal.client.cartridge.BaseCartridge

        // expression :=
        // https://cartreflect-claytondev.rhcloud.com/reflect?github=aerogear/openshift-origin-cartridge-aerogear-push#AeroGear,
        // mysql-5
        .hasCartridges(
            Arrays.<ICartridge> asList(
                new BaseCartridge(
                    new URL(
                        "https://cartreflect-claytondev.rhcloud.com/reflect?github=aerogear/openshift-origin-cartridge-aerogear-push#AeroGear")),
                CartridgeTestUtils.mysql51()));
  }
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.