io.fabric8.kubernetes.api.model.AbstractNodeSystemInfoAssert 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;
import org.assertj.core.api.AbstractAssert;
import org.assertj.core.api.Assertions;
import org.assertj.core.api.AssertFactory;
import com.stakater.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 NodeSystemInfo} specific assertions - Generated by CustomAssertionGenerator.
*/
public abstract class AbstractNodeSystemInfoAssert, A extends NodeSystemInfo> extends AbstractAssert {
/**
* Creates a new {@link AbstractNodeSystemInfoAssert}
to make assertions on actual NodeSystemInfo.
* @param actual the NodeSystemInfo we want to make assertions on.
*/
protected AbstractNodeSystemInfoAssert(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 NodeSystemInfo 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(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "additionalProperties"));
}
/**
* Navigates to the property architecture so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert architecture() {
// check that actual NodeSystemInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getArchitecture()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "architecture"));
}
/**
* Navigates to the property bootID so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert bootID() {
// check that actual NodeSystemInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getBootID()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "bootID"));
}
/**
* Navigates to the property containerRuntimeVersion so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert containerRuntimeVersion() {
// check that actual NodeSystemInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getContainerRuntimeVersion()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "containerRuntimeVersion"));
}
/**
* Navigates to the property kernelVersion so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert kernelVersion() {
// check that actual NodeSystemInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getKernelVersion()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "kernelVersion"));
}
/**
* Navigates to the property kubeProxyVersion so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert kubeProxyVersion() {
// check that actual NodeSystemInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getKubeProxyVersion()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "kubeProxyVersion"));
}
/**
* Navigates to the property kubeletVersion so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert kubeletVersion() {
// check that actual NodeSystemInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getKubeletVersion()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "kubeletVersion"));
}
/**
* Navigates to the property machineID so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert machineID() {
// check that actual NodeSystemInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getMachineID()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "machineID"));
}
/**
* Navigates to the property operatingSystem so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert operatingSystem() {
// check that actual NodeSystemInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getOperatingSystem()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "operatingSystem"));
}
/**
* Navigates to the property osImage so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert osImage() {
// check that actual NodeSystemInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getOsImage()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "osImage"));
}
/**
* Navigates to the property systemUUID so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert systemUUID() {
// check that actual NodeSystemInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getSystemUUID()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "systemUUID"));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy