All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fabric8.kubernetes.api.model.AbstractPodStatusAssert Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package io.fabric8.kubernetes.api.model;

import org.assertj.core.api.AbstractAssert;
import org.assertj.core.api.Assertions;


import org.assertj.core.api.AssertFactory;
import com.stakater.kubernetes.assertions.NavigationListAssert;

import static org.assertj.core.api.Assertions.assertThat;
import static io.fabric8.kubernetes.assertions.internal.Assertions.assertThat;

/**
 * Abstract base class for {@link PodStatus} specific assertions - Generated by CustomAssertionGenerator.
 */
public abstract class AbstractPodStatusAssert, A extends PodStatus> extends AbstractAssert {

  /**
   * Creates a new {@link AbstractPodStatusAssert} to make assertions on actual PodStatus.
   * @param actual the PodStatus we want to make assertions on.
   */
  protected AbstractPodStatusAssert(A actual, Class selfType) {
    super(actual, selfType);
  }


  /**
   * Navigates to the property additionalProperties so that assertions can be done on it
   */
  public org.assertj.core.api.MapAssert additionalProperties()  {
    // check that actual PodStatus we want to make assertions on is not null.
    isNotNull();

    // return the assertion for the property
    return (org.assertj.core.api.MapAssert) assertThat(actual.getAdditionalProperties()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "additionalProperties"));
  }


  /**
   * Navigates to the property conditions so that assertions can be done on it
   */
  public NavigationListAssert conditions()  {
    isNotNull();

    // return the assertion for the property
    AssertFactory assertFactory = new AssertFactory() {
      public PodConditionAssert createAssert(PodCondition t) {
        return (PodConditionAssert) assertThat(t);
      }
    };
    NavigationListAssert answer = new NavigationListAssert(actual.getConditions(), assertFactory);
    answer.describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "conditions"));
    return answer;
  }


  /**
   * Navigates to the property containerStatuses so that assertions can be done on it
   */
  public NavigationListAssert containerStatuses()  {
    isNotNull();

    // return the assertion for the property
    AssertFactory assertFactory = new AssertFactory() {
      public ContainerStatusAssert createAssert(ContainerStatus t) {
        return (ContainerStatusAssert) assertThat(t);
      }
    };
    NavigationListAssert answer = new NavigationListAssert(actual.getContainerStatuses(), assertFactory);
    answer.describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "containerStatuses"));
    return answer;
  }


  /**
   * Navigates to the property hostIP so that assertions can be done on it
   */
  public org.assertj.core.api.StringAssert hostIP()  {
    // check that actual PodStatus we want to make assertions on is not null.
    isNotNull();

    // return the assertion for the property
    return (org.assertj.core.api.StringAssert) assertThat(actual.getHostIP()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "hostIP"));
  }


  /**
   * Navigates to the property initContainerStatuses so that assertions can be done on it
   */
  public NavigationListAssert initContainerStatuses()  {
    isNotNull();

    // return the assertion for the property
    AssertFactory assertFactory = new AssertFactory() {
      public ContainerStatusAssert createAssert(ContainerStatus t) {
        return (ContainerStatusAssert) assertThat(t);
      }
    };
    NavigationListAssert answer = new NavigationListAssert(actual.getInitContainerStatuses(), assertFactory);
    answer.describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "initContainerStatuses"));
    return answer;
  }


  /**
   * Navigates to the property message so that assertions can be done on it
   */
  public org.assertj.core.api.StringAssert message()  {
    // check that actual PodStatus we want to make assertions on is not null.
    isNotNull();

    // return the assertion for the property
    return (org.assertj.core.api.StringAssert) assertThat(actual.getMessage()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "message"));
  }


  /**
   * Navigates to the property phase so that assertions can be done on it
   */
  public org.assertj.core.api.StringAssert phase()  {
    // check that actual PodStatus we want to make assertions on is not null.
    isNotNull();

    // return the assertion for the property
    return (org.assertj.core.api.StringAssert) assertThat(actual.getPhase()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "phase"));
  }


  /**
   * Navigates to the property podIP so that assertions can be done on it
   */
  public org.assertj.core.api.StringAssert podIP()  {
    // check that actual PodStatus we want to make assertions on is not null.
    isNotNull();

    // return the assertion for the property
    return (org.assertj.core.api.StringAssert) assertThat(actual.getPodIP()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "podIP"));
  }


  /**
   * Navigates to the property qosClass so that assertions can be done on it
   */
  public org.assertj.core.api.StringAssert qosClass()  {
    // check that actual PodStatus we want to make assertions on is not null.
    isNotNull();

    // return the assertion for the property
    return (org.assertj.core.api.StringAssert) assertThat(actual.getQosClass()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "qosClass"));
  }


  /**
   * Navigates to the property reason so that assertions can be done on it
   */
  public org.assertj.core.api.StringAssert reason()  {
    // check that actual PodStatus we want to make assertions on is not null.
    isNotNull();

    // return the assertion for the property
    return (org.assertj.core.api.StringAssert) assertThat(actual.getReason()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "reason"));
  }


  /**
   * Navigates to the property startTime so that assertions can be done on it
   */
  public org.assertj.core.api.StringAssert startTime()  {
    // check that actual PodStatus we want to make assertions on is not null.
    isNotNull();

    // return the assertion for the property
    return (org.assertj.core.api.StringAssert) assertThat(actual.getStartTime()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "startTime"));
  }


}