Examples of IEmbeddableCartridge


Examples of com.openshift.client.cartridge.IEmbeddableCartridge

    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.IEmbeddableCartridge

    // pre-conditions
    ApplicationTestUtils.destroyIfMoreThan(2, domain);
    String applicationName =
        ApplicationTestUtils.createRandomApplicationName();
    IStandaloneCartridge php = LatestVersionOf.php().get(user);
    IEmbeddableCartridge mySql = LatestVersionOf.mySQL().get(domain.getUser());
    int timeout = 5 * 60 * 1000;
   
    // operation
    IApplication application = domain.createApplication(
        applicationName, php, ApplicationScale.NO_SCALE, GearProfileTestUtils.getFirstAvailableGearProfile(domain), null, timeout, mySql);

    // verification
    new ApplicationAssert(application)
        .hasName(applicationName)
        .hasUUID()
        .hasCreationTime()
        .hasCartridge(php)
        .hasValidApplicationUrl()
        .hasEmbeddedCartridgeNames(mySql.getName())
        .hasAlias();
  }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

        // pre-conditions
    ApplicationTestUtils.destroyAllApplications(domain);
    String applicationName =
        ApplicationTestUtils.createRandomApplicationName();
    IStandaloneCartridge php = LatestVersionOf.php().get(user);
    IEmbeddableCartridge cron = LatestVersionOf.cron().get(user);
   
        // operation
    IApplication app = new ApplicationBuilder(domain)
      .setName(applicationName)
      .setStandaloneCartridge(php)
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

      return false;
    }
    if (!(IEmbeddableCartridge.class.isAssignableFrom(obj.getClass()))) {
      return false;
    }
    IEmbeddableCartridge other = (IEmbeddableCartridge) obj;
    if (name == null) {
      if (other.getName() != null) {
        return false;
      }
    }
    if (!name.equals(other.getName())) {
      return false;
    }
    return true;
  }
View Full Code Here

Examples of com.openshift.client.cartridge.IEmbeddableCartridge

      return true;
    if (obj == null)
      return false;
    if (!(IEmbeddableCartridge.class.isAssignableFrom(obj.getClass())))
      return false;
    IEmbeddableCartridge other = (IEmbeddableCartridge) obj;
    if (name == null) {
      if (other.getName() != null)
        return false;
    } else if (!name.equals(other.getName()))
      return false;
    return true;
  }
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.