Examples of GearState


Examples of com.openshift.client.GearState

    super(service);
    this.uuid = uuid;
    this.name = name;
    this.gears = new ArrayList<IGear>();
    for(GearResourceDTO dto : gearDTOs) {
      this.gears.add(new Gear(dto.getUuid(), new GearState(dto.getState()), dto.getSshUrl()));
    }
    this.cartridges = new ArrayList<ICartridge>();
    for(Iterator<Entry<String, CartridgeResourceDTO>> iterator = cartridgeDTOs.entrySet().iterator(); iterator.hasNext();) {
      final String cartridgeName = iterator.next().getKey();
      final ICartridge cartridge = application.getCartridge(cartridgeName);
View Full Code Here

Examples of com.openshift.client.GearState

    this.uuid = uuid;
    this.name = name;
    this.gears = new ArrayList<IGear>();
    this.additionalStorage = additionalStorage;
    for(GearResourceDTO dto : gearDTOs) {
      this.gears.add(new Gear(dto.getUuid(), new GearState(dto.getState()), dto.getSshUrl()));
    }
    this.cartridges = new ArrayList<ICartridge>();
    for(Iterator<Entry<String, CartridgeResourceDTO>> iterator = cartridgeDTOs.entrySet().iterator(); iterator.hasNext();) {
      final String cartridgeName = iterator.next().getKey();
      final ICartridge cartridge = application.getCartridge(cartridgeName);
View Full Code Here

Examples of com.openshift.client.GearState

public class GearTest extends TestTimer {

  @Test
  public void nullShouldCreateUnknownGearState() {
    // operation
    GearState state = new GearState(null);
    // verification
    assertThat(state).isEqualTo(new GearState("UNKNOWN"));
  }
View Full Code Here

Examples of com.openshift.client.GearState

  }

  @Test
  public void emptyShouldCreateUnknownGearState() {
    // operation
    GearState state = new GearState("");
    // verification
    assertThat(state).isEqualTo(new GearState("UNKNOWN"));
  }
View Full Code Here

Examples of com.openshift.client.GearState

  }

  @Test
  public void stateCaseShouldNotMatter() {
    // operation
    GearState state = new GearState("sTaRtEd");
    // verification
    assertThat(state).isEqualTo(new GearState("STARTED"));
  }
View Full Code Here

Examples of com.openshift.client.GearState

  }

  @Test
  public void bogusStateShouldBeUnknown() {
    // operation
    GearState state = new GearState("BOGUS!");
    // verification
    assertThat(state).isEqualTo(new GearState("BOGUS!"));
  }
View Full Code Here

Examples of com.openshift.client.GearState

    // verifications
    assertThat(new GearGroupsAssert(gearGroups)).hasSize(2);
    assertThat(new GearGroupsAssert(gearGroups)).assertGroup("514207b84382ec1fef0000ab")
        .hasUUID("514207b84382ec1fef0000ab")
        .hasAdditionalStorageSize(8)
        .assertGear("514207b84382ec1fef000098").inState(new GearState("idle"))
        .assertGear("514207b84382ec1fef000098").hasSshUrl("ssh://52380549e0b8cd1e0e000032@springeap6-foobarz.rhcloud.com")
        .assertGear("5146f047500446f12d00002e").inState(new GearState("building"))
        .hasCartridges("jbosseap-6", "mongodb-2.2");
    assertThat(new GearGroupsAssert(gearGroups)).assertGroup("514212ce500446b64e0000c0")
        .hasUUID("514212ce500446b64e0000c0")
        .assertGear("514212ce500446b64e0000b4").hasSshUrl("ssh://523809b75973ca569600019b@523809b75973ca569600019b-foobarz.rhcloud.com")
        .assertGear("514212ce500446b64e0000b4").inState(new GearState("deploying"))
        .hasCartridges("mongodb-2.2");
  }
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.