
io.fabric8.kubernetes.api.model.AbstractMetricStatusAssert Maven / Gradle / Ivy
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 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 MetricStatus} specific assertions - Generated by CustomAssertionGenerator.
*/
public abstract class AbstractMetricStatusAssert, A extends MetricStatus> extends AbstractAssert {
/**
* Creates a new {@link AbstractMetricStatusAssert}
to make assertions on actual MetricStatus.
* @param actual the MetricStatus we want to make assertions on.
*/
protected AbstractMetricStatusAssert(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 MetricStatus 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 external so that assertions can be done on it
*/
public ExternalMetricStatusAssert external() {
// check that actual MetricStatus we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (ExternalMetricStatusAssert) assertThat(actual.getExternal()).describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "external"));
}
/**
* Navigates to the property object so that assertions can be done on it
*/
public ObjectMetricStatusAssert object() {
// check that actual MetricStatus we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (ObjectMetricStatusAssert) assertThat(actual.getObject()).describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "object"));
}
/**
* Navigates to the property pods so that assertions can be done on it
*/
public PodsMetricStatusAssert pods() {
// check that actual MetricStatus we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (PodsMetricStatusAssert) assertThat(actual.getPods()).describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "pods"));
}
/**
* Navigates to the property resource so that assertions can be done on it
*/
public ResourceMetricStatusAssert resource() {
// check that actual MetricStatus we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (ResourceMetricStatusAssert) assertThat(actual.getResource()).describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "resource"));
}
/**
* Navigates to the property type so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert type() {
// check that actual MetricStatus we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getType()).describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "type"));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy