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

io.fabric8.kubernetes.api.model.policy.AbstractRuntimeClassStrategyOptionsAssert Maven / Gradle / Ivy

package io.fabric8.kubernetes.api.model.policy;

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


import org.assertj.core.api.AssertFactory;
import io.fabric8.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 RuntimeClassStrategyOptions} specific assertions - Generated by CustomAssertionGenerator.
 */
public abstract class AbstractRuntimeClassStrategyOptionsAssert, A extends RuntimeClassStrategyOptions> extends AbstractAssert {

  /**
   * Creates a new {@link AbstractRuntimeClassStrategyOptionsAssert} to make assertions on actual RuntimeClassStrategyOptions.
   * @param actual the RuntimeClassStrategyOptions we want to make assertions on.
   */
  protected AbstractRuntimeClassStrategyOptionsAssert(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 RuntimeClassStrategyOptions 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(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "additionalProperties"));
  }


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

    // return the assertion for the property
    AssertFactory assertFactory = new AssertFactory() {
      public org.assertj.core.api.StringAssert createAssert(String t) {
        return (org.assertj.core.api.StringAssert) assertThat(t);
      }
    };
    NavigationListAssert answer = new NavigationListAssert(actual.getAllowedRuntimeClassNames(), assertFactory);
    answer.describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "allowedRuntimeClassNames"));
    return answer;
  }


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

    // return the assertion for the property
    return (org.assertj.core.api.StringAssert) assertThat(actual.getDefaultRuntimeClassName()).describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "defaultRuntimeClassName"));
  }


}