
com.foursoft.vecmodel.vec120.AbstractVecApprovalAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vec120-assertions Show documentation
Show all versions of vec120-assertions Show documentation
The Assertions Library for VEC version 1.2.0.
package com.foursoft.vecmodel.vec120;
import org.assertj.core.internal.Iterables;
import org.assertj.core.util.Objects;
/**
* Abstract base class for {@link VecApproval} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecApprovalAssert, A extends VecApproval> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecApprovalAssert}
to make assertions on actual VecApproval.
* @param actual the VecApproval we want to make assertions on.
*/
protected AbstractVecApprovalAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecApproval's additionalLevelInformation is equal to the given one.
* @param additionalLevelInformation the given additionalLevelInformation to compare the actual VecApproval's additionalLevelInformation to.
* @return this assertion object.
* @throws AssertionError - if the actual VecApproval's additionalLevelInformation is not equal to the given one.
*/
public S hasAdditionalLevelInformation(String additionalLevelInformation) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting additionalLevelInformation of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualAdditionalLevelInformation = actual.getAdditionalLevelInformation();
if (!Objects.areEqual(actualAdditionalLevelInformation, additionalLevelInformation)) {
failWithMessage(assertjErrorMessage, actual, additionalLevelInformation, actualAdditionalLevelInformation);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's companyInScopes contains the given String elements.
* @param companyInScopes the given elements that should be contained in actual VecApproval's companyInScopes.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's companyInScopes does not contain all given String elements.
*/
public S hasCompanyInScopes(String... companyInScopes) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given String varargs is not null.
if (companyInScopes == null) failWithMessage("Expecting companyInScopes parameter not to be null.");
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContains(info, actual.getCompanyInScopes(), companyInScopes);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's companyInScopes contains the given String elements in Collection.
* @param companyInScopes the given elements that should be contained in actual VecApproval's companyInScopes.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's companyInScopes does not contain all given String elements.
*/
public S hasCompanyInScopes(java.util.Collection extends String> companyInScopes) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given String collection is not null.
if (companyInScopes == null) {
failWithMessage("Expecting companyInScopes parameter not to be null.");
return myself; // to fool Eclipse "Null pointer access" warning on toArray.
}
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContains(info, actual.getCompanyInScopes(), companyInScopes.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's companyInScopes contains only the given String elements and nothing else in whatever order.
* @param companyInScopes the given elements that should be contained in actual VecApproval's companyInScopes.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's companyInScopes does not contain all given String elements.
*/
public S hasOnlyCompanyInScopes(String... companyInScopes) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given String varargs is not null.
if (companyInScopes == null) failWithMessage("Expecting companyInScopes parameter not to be null.");
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContainsOnly(info, actual.getCompanyInScopes(), companyInScopes);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's companyInScopes contains only the given String elements in Collection and nothing else in whatever order.
* @param companyInScopes the given elements that should be contained in actual VecApproval's companyInScopes.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's companyInScopes does not contain all given String elements.
*/
public S hasOnlyCompanyInScopes(java.util.Collection extends String> companyInScopes) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given String collection is not null.
if (companyInScopes == null) {
failWithMessage("Expecting companyInScopes parameter not to be null.");
return myself; // to fool Eclipse "Null pointer access" warning on toArray.
}
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContainsOnly(info, actual.getCompanyInScopes(), companyInScopes.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's companyInScopes does not contain the given String elements.
*
* @param companyInScopes the given elements that should not be in actual VecApproval's companyInScopes.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's companyInScopes contains any given String elements.
*/
public S doesNotHaveCompanyInScopes(String... companyInScopes) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given String varargs is not null.
if (companyInScopes == null) failWithMessage("Expecting companyInScopes parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getCompanyInScopes(), companyInScopes);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's companyInScopes does not contain the given String elements in Collection.
*
* @param companyInScopes the given elements that should not be in actual VecApproval's companyInScopes.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's companyInScopes contains any given String elements.
*/
public S doesNotHaveCompanyInScopes(java.util.Collection extends String> companyInScopes) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given String collection is not null.
if (companyInScopes == null) {
failWithMessage("Expecting companyInScopes parameter not to be null.");
return myself; // to fool Eclipse "Null pointer access" warning on toArray.
}
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getCompanyInScopes(), companyInScopes.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval has no companyInScopes.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's companyInScopes is not empty.
*/
public S hasNoCompanyInScopes() {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// we override the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting :\n <%s>\nnot to have companyInScopes but had :\n <%s>";
// check
if (actual.getCompanyInScopes().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getCompanyInScopes());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's descriptions contains the given VecAbstractLocalizedString elements.
* @param descriptions the given elements that should be contained in actual VecApproval's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString varargs is not null.
if (descriptions == null) failWithMessage("Expecting descriptions parameter not to be null.");
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContains(info, actual.getDescriptions(), descriptions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's descriptions contains the given VecAbstractLocalizedString elements in Collection.
* @param descriptions the given elements that should be contained in actual VecApproval's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString collection is not null.
if (descriptions == null) {
failWithMessage("Expecting descriptions parameter not to be null.");
return myself; // to fool Eclipse "Null pointer access" warning on toArray.
}
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContains(info, actual.getDescriptions(), descriptions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's descriptions contains only the given VecAbstractLocalizedString elements and nothing else in whatever order.
* @param descriptions the given elements that should be contained in actual VecApproval's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString varargs is not null.
if (descriptions == null) failWithMessage("Expecting descriptions parameter not to be null.");
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContainsOnly(info, actual.getDescriptions(), descriptions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's descriptions contains only the given VecAbstractLocalizedString elements in Collection and nothing else in whatever order.
* @param descriptions the given elements that should be contained in actual VecApproval's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString collection is not null.
if (descriptions == null) {
failWithMessage("Expecting descriptions parameter not to be null.");
return myself; // to fool Eclipse "Null pointer access" warning on toArray.
}
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContainsOnly(info, actual.getDescriptions(), descriptions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's descriptions does not contain the given VecAbstractLocalizedString elements.
*
* @param descriptions the given elements that should not be in actual VecApproval's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString varargs is not null.
if (descriptions == null) failWithMessage("Expecting descriptions parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getDescriptions(), descriptions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's descriptions does not contain the given VecAbstractLocalizedString elements in Collection.
*
* @param descriptions the given elements that should not be in actual VecApproval's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString collection is not null.
if (descriptions == null) {
failWithMessage("Expecting descriptions parameter not to be null.");
return myself; // to fool Eclipse "Null pointer access" warning on toArray.
}
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getDescriptions(), descriptions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval has no descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's descriptions is not empty.
*/
public S hasNoDescriptions() {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// we override the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting :\n <%s>\nnot to have descriptions but had :\n <%s>";
// check
if (actual.getDescriptions().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getDescriptions());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's identification is equal to the given one.
* @param identification the given identification to compare the actual VecApproval's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecApproval's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting identification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualIdentification = actual.getIdentification();
if (!Objects.areEqual(actualIdentification, identification)) {
failWithMessage(assertjErrorMessage, actual, identification, actualIdentification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's levelOfApproval is equal to the given one.
* @param levelOfApproval the given levelOfApproval to compare the actual VecApproval's levelOfApproval to.
* @return this assertion object.
* @throws AssertionError - if the actual VecApproval's levelOfApproval is not equal to the given one.
*/
public S hasLevelOfApproval(String levelOfApproval) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting levelOfApproval of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualLevelOfApproval = actual.getLevelOfApproval();
if (!Objects.areEqual(actualLevelOfApproval, levelOfApproval)) {
failWithMessage(assertjErrorMessage, actual, levelOfApproval, actualLevelOfApproval);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's parentItemVersion is equal to the given one.
* @param parentItemVersion the given parentItemVersion to compare the actual VecApproval's parentItemVersion to.
* @return this assertion object.
* @throws AssertionError - if the actual VecApproval's parentItemVersion is not equal to the given one.
*/
public S hasParentItemVersion(VecItemVersion parentItemVersion) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentItemVersion of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecItemVersion actualParentItemVersion = actual.getParentItemVersion();
if (!Objects.areEqual(actualParentItemVersion, parentItemVersion)) {
failWithMessage(assertjErrorMessage, actual, parentItemVersion, actualParentItemVersion);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's permissions contains the given VecPermission elements.
* @param permissions the given elements that should be contained in actual VecApproval's permissions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's permissions does not contain all given VecPermission elements.
*/
public S hasPermissions(VecPermission... permissions) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given VecPermission varargs is not null.
if (permissions == null) failWithMessage("Expecting permissions parameter not to be null.");
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContains(info, actual.getPermissions(), permissions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's permissions contains the given VecPermission elements in Collection.
* @param permissions the given elements that should be contained in actual VecApproval's permissions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's permissions does not contain all given VecPermission elements.
*/
public S hasPermissions(java.util.Collection extends VecPermission> permissions) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given VecPermission collection is not null.
if (permissions == null) {
failWithMessage("Expecting permissions parameter not to be null.");
return myself; // to fool Eclipse "Null pointer access" warning on toArray.
}
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContains(info, actual.getPermissions(), permissions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's permissions contains only the given VecPermission elements and nothing else in whatever order.
* @param permissions the given elements that should be contained in actual VecApproval's permissions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's permissions does not contain all given VecPermission elements.
*/
public S hasOnlyPermissions(VecPermission... permissions) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given VecPermission varargs is not null.
if (permissions == null) failWithMessage("Expecting permissions parameter not to be null.");
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContainsOnly(info, actual.getPermissions(), permissions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's permissions contains only the given VecPermission elements in Collection and nothing else in whatever order.
* @param permissions the given elements that should be contained in actual VecApproval's permissions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's permissions does not contain all given VecPermission elements.
*/
public S hasOnlyPermissions(java.util.Collection extends VecPermission> permissions) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given VecPermission collection is not null.
if (permissions == null) {
failWithMessage("Expecting permissions parameter not to be null.");
return myself; // to fool Eclipse "Null pointer access" warning on toArray.
}
// check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
Iterables.instance().assertContainsOnly(info, actual.getPermissions(), permissions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's permissions does not contain the given VecPermission elements.
*
* @param permissions the given elements that should not be in actual VecApproval's permissions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's permissions contains any given VecPermission elements.
*/
public S doesNotHavePermissions(VecPermission... permissions) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given VecPermission varargs is not null.
if (permissions == null) failWithMessage("Expecting permissions parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getPermissions(), permissions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's permissions does not contain the given VecPermission elements in Collection.
*
* @param permissions the given elements that should not be in actual VecApproval's permissions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's permissions contains any given VecPermission elements.
*/
public S doesNotHavePermissions(java.util.Collection extends VecPermission> permissions) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// check that given VecPermission collection is not null.
if (permissions == null) {
failWithMessage("Expecting permissions parameter not to be null.");
return myself; // to fool Eclipse "Null pointer access" warning on toArray.
}
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getPermissions(), permissions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval has no permissions.
* @return this assertion object.
* @throws AssertionError if the actual VecApproval's permissions is not empty.
*/
public S hasNoPermissions() {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// we override the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting :\n <%s>\nnot to have permissions but had :\n <%s>";
// check
if (actual.getPermissions().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getPermissions());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecApproval's status is equal to the given one.
* @param status the given status to compare the actual VecApproval's status to.
* @return this assertion object.
* @throws AssertionError - if the actual VecApproval's status is not equal to the given one.
*/
public S hasStatus(String status) {
// check that actual VecApproval we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting status of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualStatus = actual.getStatus();
if (!Objects.areEqual(actualStatus, status)) {
failWithMessage(assertjErrorMessage, actual, status, actualStatus);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy