
io.fabric8.kubernetes.api.model.AbstractObjectMetricStatusAssert 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 ObjectMetricStatus} specific assertions - Generated by CustomAssertionGenerator.
*/
public abstract class AbstractObjectMetricStatusAssert, A extends ObjectMetricStatus> extends AbstractAssert {
/**
* Creates a new {@link AbstractObjectMetricStatusAssert}
to make assertions on actual ObjectMetricStatus.
* @param actual the ObjectMetricStatus we want to make assertions on.
*/
protected AbstractObjectMetricStatusAssert(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 ObjectMetricStatus 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 current so that assertions can be done on it
*/
public MetricValueStatusAssert current() {
// check that actual ObjectMetricStatus we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (MetricValueStatusAssert) assertThat(actual.getCurrent()).describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "current"));
}
/**
* Navigates to the property describedObject so that assertions can be done on it
*/
public CrossVersionObjectReferenceAssert describedObject() {
// check that actual ObjectMetricStatus we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (CrossVersionObjectReferenceAssert) assertThat(actual.getDescribedObject()).describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "describedObject"));
}
/**
* Navigates to the property metric so that assertions can be done on it
*/
public MetricIdentifierAssert metric() {
// check that actual ObjectMetricStatus we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (MetricIdentifierAssert) assertThat(actual.getMetric()).describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "metric"));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy