io.fabric8.kubernetes.api.model.extensions.NetworkPolicySpecAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of assertions Show documentation
Show all versions of assertions Show documentation
A port of Kubernetes Assertions Library by Fabric8
The newest version!
package io.fabric8.kubernetes.api.model.extensions;
/**
* {@link NetworkPolicySpec} specific assertions - Generated by CustomAssertionGenerator.
*
* Although this class is not final to allow Soft assertions proxy, if you wish to extend it,
* extend {@link AbstractNetworkPolicySpecAssert} instead.
*/
public class NetworkPolicySpecAssert extends AbstractNetworkPolicySpecAssert {
/**
* Creates a new {@link NetworkPolicySpecAssert}
to make assertions on actual NetworkPolicySpec.
* @param actual the NetworkPolicySpec we want to make assertions on.
*/
public NetworkPolicySpecAssert(NetworkPolicySpec actual) {
super(actual, NetworkPolicySpecAssert.class);
}
/**
* An entry point for NetworkPolicySpecAssert to follow AssertJ standard assertThat()
statements.
* With a static import, one can write directly: assertThat(myNetworkPolicySpec)
and get specific assertion with code completion.
* @param actual the NetworkPolicySpec we want to make assertions on.
* @return a new {@link NetworkPolicySpecAssert}
*/
public static NetworkPolicySpecAssert assertThat(NetworkPolicySpec actual) {
return new NetworkPolicySpecAssert(actual);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy