io.fabric8.kubernetes.api.model.extensions.NetworkPolicyAssert 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
package io.fabric8.kubernetes.api.model.extensions;
/**
* {@link NetworkPolicy} specific assertions - Generated by CustomAssertionGenerator.
*
* Although this class is not final to allow Soft assertions proxy, if you wish to extend it,
* extend {@link AbstractNetworkPolicyAssert} instead.
*/
public class NetworkPolicyAssert extends AbstractNetworkPolicyAssert {
/**
* Creates a new {@link NetworkPolicyAssert}
to make assertions on actual NetworkPolicy.
* @param actual the NetworkPolicy we want to make assertions on.
*/
public NetworkPolicyAssert(NetworkPolicy actual) {
super(actual, NetworkPolicyAssert.class);
}
/**
* An entry point for NetworkPolicyAssert to follow AssertJ standard assertThat()
statements.
* With a static import, one can write directly: assertThat(myNetworkPolicy)
and get specific assertion with code completion.
* @param actual the NetworkPolicy we want to make assertions on.
* @return a new {@link NetworkPolicyAssert}
*/
public static NetworkPolicyAssert assertThat(NetworkPolicy actual) {
return new NetworkPolicyAssert(actual);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy