io.fabric8.kubernetes.api.model.AbstractAuthInfoAssert 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 AuthInfo} specific assertions - Generated by CustomAssertionGenerator.
*/
public abstract class AbstractAuthInfoAssert, A extends AuthInfo> extends AbstractAssert {
/**
* Creates a new {@link AbstractAuthInfoAssert}
to make assertions on actual AuthInfo.
* @param actual the AuthInfo we want to make assertions on.
*/
protected AbstractAuthInfoAssert(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 AuthInfo 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 as so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert as() {
// check that actual AuthInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getAs()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "as"));
}
/**
* Navigates to the property asGroups so that assertions can be done on it
*/
public NavigationListAssert asGroups() {
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.getAsGroups(), assertFactory);
answer.describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "asGroups"));
return answer;
}
/**
* Navigates to the property asUserExtra so that assertions can be done on it
*/
public org.assertj.core.api.MapAssert asUserExtra() {
// check that actual AuthInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.MapAssert) assertThat(actual.getAsUserExtra()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "asUserExtra"));
}
/**
* Navigates to the property authProvider so that assertions can be done on it
*/
public AuthProviderConfigAssert authProvider() {
// check that actual AuthInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (AuthProviderConfigAssert) assertThat(actual.getAuthProvider()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "authProvider"));
}
/**
* Navigates to the property clientCertificate so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert clientCertificate() {
// check that actual AuthInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getClientCertificate()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "clientCertificate"));
}
/**
* Navigates to the property clientCertificateData so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert clientCertificateData() {
// check that actual AuthInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getClientCertificateData()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "clientCertificateData"));
}
/**
* Navigates to the property clientKey so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert clientKey() {
// check that actual AuthInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getClientKey()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "clientKey"));
}
/**
* Navigates to the property clientKeyData so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert clientKeyData() {
// check that actual AuthInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getClientKeyData()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "clientKeyData"));
}
/**
* Navigates to the property extensions so that assertions can be done on it
*/
public NavigationListAssert extensions() {
isNotNull();
// return the assertion for the property
AssertFactory assertFactory = new AssertFactory() {
public NamedExtensionAssert createAssert(NamedExtension t) {
return (NamedExtensionAssert) assertThat(t);
}
};
NavigationListAssert answer = new NavigationListAssert(actual.getExtensions(), assertFactory);
answer.describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "extensions"));
return answer;
}
/**
* Navigates to the property password so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert password() {
// check that actual AuthInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getPassword()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "password"));
}
/**
* Navigates to the property token so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert token() {
// check that actual AuthInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getToken()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "token"));
}
/**
* Navigates to the property tokenFile so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert tokenFile() {
// check that actual AuthInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getTokenFile()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "tokenFile"));
}
/**
* Navigates to the property username so that assertions can be done on it
*/
public org.assertj.core.api.StringAssert username() {
// check that actual AuthInfo we want to make assertions on is not null.
isNotNull();
// return the assertion for the property
return (org.assertj.core.api.StringAssert) assertThat(actual.getUsername()).describedAs(com.stakater.kubernetes.assertions.Assertions.joinDescription(this, "username"));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy