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

io.fabric8.openshift.api.model.AbstractRouteIngressAssert Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package io.fabric8.openshift.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 RouteIngress} specific assertions - Generated by CustomAssertionGenerator.
 */
public abstract class AbstractRouteIngressAssert, A extends RouteIngress> extends AbstractAssert {

  /**
   * Creates a new {@link AbstractRouteIngressAssert} to make assertions on actual RouteIngress.
   * @param actual the RouteIngress we want to make assertions on.
   */
  protected AbstractRouteIngressAssert(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 RouteIngress 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 RouteIngressConditionAssert createAssert(RouteIngressCondition t) {
        return (RouteIngressConditionAssert) 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 host so that assertions can be done on it
   */
  public org.assertj.core.api.StringAssert host()  {
    // check that actual RouteIngress we want to make assertions on is not null.
    isNotNull();

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


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

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


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

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


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

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


}