
com.foursoft.vecmodel.vec120.AbstractVecVariantCodeAssert 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 VecVariantCode} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecVariantCodeAssert, A extends VecVariantCode> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecVariantCodeAssert}
to make assertions on actual VecVariantCode.
* @param actual the VecVariantCode we want to make assertions on.
*/
protected AbstractVecVariantCodeAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecVariantCode's abbreviation is equal to the given one.
* @param abbreviation the given abbreviation to compare the actual VecVariantCode's abbreviation to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantCode's abbreviation is not equal to the given one.
*/
public S hasAbbreviation(VecLocalizedString abbreviation) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting abbreviation of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecLocalizedString actualAbbreviation = actual.getAbbreviation();
if (!Objects.areEqual(actualAbbreviation, abbreviation)) {
failWithMessage(assertjErrorMessage, actual, abbreviation, actualAbbreviation);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's aliasIds contains the given VecAliasIdentification elements.
* @param aliasIds the given elements that should be contained in actual VecVariantCode's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's aliasIds does not contain all given VecAliasIdentification elements.
*/
public S hasAliasIds(VecAliasIdentification... aliasIds) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// check that given VecAliasIdentification varargs is not null.
if (aliasIds == null) failWithMessage("Expecting aliasIds 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.getAliasIds(), aliasIds);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's aliasIds contains the given VecAliasIdentification elements in Collection.
* @param aliasIds the given elements that should be contained in actual VecVariantCode's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's aliasIds does not contain all given VecAliasIdentification elements.
*/
public S hasAliasIds(java.util.Collection extends VecAliasIdentification> aliasIds) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// check that given VecAliasIdentification collection is not null.
if (aliasIds == null) {
failWithMessage("Expecting aliasIds 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.getAliasIds(), aliasIds.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's aliasIds contains only the given VecAliasIdentification elements and nothing else in whatever order.
* @param aliasIds the given elements that should be contained in actual VecVariantCode's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's aliasIds does not contain all given VecAliasIdentification elements.
*/
public S hasOnlyAliasIds(VecAliasIdentification... aliasIds) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// check that given VecAliasIdentification varargs is not null.
if (aliasIds == null) failWithMessage("Expecting aliasIds 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.getAliasIds(), aliasIds);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's aliasIds contains only the given VecAliasIdentification elements in Collection and nothing else in whatever order.
* @param aliasIds the given elements that should be contained in actual VecVariantCode's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's aliasIds does not contain all given VecAliasIdentification elements.
*/
public S hasOnlyAliasIds(java.util.Collection extends VecAliasIdentification> aliasIds) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// check that given VecAliasIdentification collection is not null.
if (aliasIds == null) {
failWithMessage("Expecting aliasIds 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.getAliasIds(), aliasIds.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's aliasIds does not contain the given VecAliasIdentification elements.
*
* @param aliasIds the given elements that should not be in actual VecVariantCode's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's aliasIds contains any given VecAliasIdentification elements.
*/
public S doesNotHaveAliasIds(VecAliasIdentification... aliasIds) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// check that given VecAliasIdentification varargs is not null.
if (aliasIds == null) failWithMessage("Expecting aliasIds parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getAliasIds(), aliasIds);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's aliasIds does not contain the given VecAliasIdentification elements in Collection.
*
* @param aliasIds the given elements that should not be in actual VecVariantCode's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's aliasIds contains any given VecAliasIdentification elements.
*/
public S doesNotHaveAliasIds(java.util.Collection extends VecAliasIdentification> aliasIds) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// check that given VecAliasIdentification collection is not null.
if (aliasIds == null) {
failWithMessage("Expecting aliasIds 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.getAliasIds(), aliasIds.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode has no aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's aliasIds is not empty.
*/
public S hasNoAliasIds() {
// check that actual VecVariantCode 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 aliasIds but had :\n <%s>";
// check
if (actual.getAliasIds().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getAliasIds());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's codeType is equal to the given one.
* @param codeType the given codeType to compare the actual VecVariantCode's codeType to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantCode's codeType is not equal to the given one.
*/
public S hasCodeType(String codeType) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting codeType of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualCodeType = actual.getCodeType();
if (!Objects.areEqual(actualCodeType, codeType)) {
failWithMessage(assertjErrorMessage, actual, codeType, actualCodeType);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's descriptions contains the given VecAbstractLocalizedString elements.
* @param descriptions the given elements that should be contained in actual VecVariantCode's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecVariantCode 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 VecVariantCode's descriptions contains the given VecAbstractLocalizedString elements in Collection.
* @param descriptions the given elements that should be contained in actual VecVariantCode's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecVariantCode 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 VecVariantCode'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 VecVariantCode's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecVariantCode 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 VecVariantCode'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 VecVariantCode's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecVariantCode 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 VecVariantCode's descriptions does not contain the given VecAbstractLocalizedString elements.
*
* @param descriptions the given elements that should not be in actual VecVariantCode's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecVariantCode 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 VecVariantCode's descriptions does not contain the given VecAbstractLocalizedString elements in Collection.
*
* @param descriptions the given elements that should not be in actual VecVariantCode's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecVariantCode 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 VecVariantCode has no descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's descriptions is not empty.
*/
public S hasNoDescriptions() {
// check that actual VecVariantCode 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 VecVariantCode's identification is equal to the given one.
* @param identification the given identification to compare the actual VecVariantCode's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantCode's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecVariantCode 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 VecVariantCode's parentVariantCodeSpecification is equal to the given one.
* @param parentVariantCodeSpecification the given parentVariantCodeSpecification to compare the actual VecVariantCode's parentVariantCodeSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantCode's parentVariantCodeSpecification is not equal to the given one.
*/
public S hasParentVariantCodeSpecification(VecVariantCodeSpecification parentVariantCodeSpecification) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentVariantCodeSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecVariantCodeSpecification actualParentVariantCodeSpecification = actual.getParentVariantCodeSpecification();
if (!Objects.areEqual(actualParentVariantCodeSpecification, parentVariantCodeSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentVariantCodeSpecification, actualParentVariantCodeSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's refVariantGroup contains the given VecVariantGroup elements.
* @param refVariantGroup the given elements that should be contained in actual VecVariantCode's refVariantGroup.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's refVariantGroup does not contain all given VecVariantGroup elements.
*/
public S hasRefVariantGroup(VecVariantGroup... refVariantGroup) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantGroup varargs is not null.
if (refVariantGroup == null) failWithMessage("Expecting refVariantGroup 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.getRefVariantGroup(), refVariantGroup);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's refVariantGroup contains the given VecVariantGroup elements in Collection.
* @param refVariantGroup the given elements that should be contained in actual VecVariantCode's refVariantGroup.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's refVariantGroup does not contain all given VecVariantGroup elements.
*/
public S hasRefVariantGroup(java.util.Collection extends VecVariantGroup> refVariantGroup) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantGroup collection is not null.
if (refVariantGroup == null) {
failWithMessage("Expecting refVariantGroup 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.getRefVariantGroup(), refVariantGroup.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's refVariantGroup contains only the given VecVariantGroup elements and nothing else in whatever order.
* @param refVariantGroup the given elements that should be contained in actual VecVariantCode's refVariantGroup.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's refVariantGroup does not contain all given VecVariantGroup elements.
*/
public S hasOnlyRefVariantGroup(VecVariantGroup... refVariantGroup) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantGroup varargs is not null.
if (refVariantGroup == null) failWithMessage("Expecting refVariantGroup 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.getRefVariantGroup(), refVariantGroup);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's refVariantGroup contains only the given VecVariantGroup elements in Collection and nothing else in whatever order.
* @param refVariantGroup the given elements that should be contained in actual VecVariantCode's refVariantGroup.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's refVariantGroup does not contain all given VecVariantGroup elements.
*/
public S hasOnlyRefVariantGroup(java.util.Collection extends VecVariantGroup> refVariantGroup) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantGroup collection is not null.
if (refVariantGroup == null) {
failWithMessage("Expecting refVariantGroup 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.getRefVariantGroup(), refVariantGroup.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's refVariantGroup does not contain the given VecVariantGroup elements.
*
* @param refVariantGroup the given elements that should not be in actual VecVariantCode's refVariantGroup.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's refVariantGroup contains any given VecVariantGroup elements.
*/
public S doesNotHaveRefVariantGroup(VecVariantGroup... refVariantGroup) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantGroup varargs is not null.
if (refVariantGroup == null) failWithMessage("Expecting refVariantGroup parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefVariantGroup(), refVariantGroup);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode's refVariantGroup does not contain the given VecVariantGroup elements in Collection.
*
* @param refVariantGroup the given elements that should not be in actual VecVariantCode's refVariantGroup.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's refVariantGroup contains any given VecVariantGroup elements.
*/
public S doesNotHaveRefVariantGroup(java.util.Collection extends VecVariantGroup> refVariantGroup) {
// check that actual VecVariantCode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantGroup collection is not null.
if (refVariantGroup == null) {
failWithMessage("Expecting refVariantGroup 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.getRefVariantGroup(), refVariantGroup.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantCode has no refVariantGroup.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantCode's refVariantGroup is not empty.
*/
public S hasNoRefVariantGroup() {
// check that actual VecVariantCode 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 refVariantGroup but had :\n <%s>";
// check
if (actual.getRefVariantGroup().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefVariantGroup());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy