
io.fabric8.kubernetes.api.model.admissionregistration.AbstractRuleWithOperationsAssert Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.admissionregistration;
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 RuleWithOperations} specific assertions - Generated by CustomAssertionGenerator.
*/
public abstract class AbstractRuleWithOperationsAssert, A extends RuleWithOperations> extends AbstractAssert {
/**
* Creates a new {@link AbstractRuleWithOperationsAssert}
to make assertions on actual RuleWithOperations.
* @param actual the RuleWithOperations we want to make assertions on.
*/
protected AbstractRuleWithOperationsAssert(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 RuleWithOperations 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 apiGroups so that assertions can be done on it
*/
public NavigationListAssert apiGroups() {
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.getApiGroups(), assertFactory);
answer.describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "apiGroups"));
return answer;
}
/**
* Navigates to the property apiVersions so that assertions can be done on it
*/
public NavigationListAssert apiVersions() {
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.getApiVersions(), assertFactory);
answer.describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "apiVersions"));
return answer;
}
/**
* Navigates to the property operations so that assertions can be done on it
*/
public NavigationListAssert operations() {
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.getOperations(), assertFactory);
answer.describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "operations"));
return answer;
}
/**
* Navigates to the property resources so that assertions can be done on it
*/
public NavigationListAssert resources() {
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.getResources(), assertFactory);
answer.describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "resources"));
return answer;
}
/**
* Navigates to the property scope so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert scope() {
// check that actual RuleWithOperations we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getScope()).describedAs(io.fabric8.kubernetes.assertions.Assertions.joinDescription(this, "scope"));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy