
com.foursoft.vecmodel.vec120.AbstractVecVariantStructureNodeAssert 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 VecVariantStructureNode} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecVariantStructureNodeAssert, A extends VecVariantStructureNode> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecVariantStructureNodeAssert}
to make assertions on actual VecVariantStructureNode.
* @param actual the VecVariantStructureNode we want to make assertions on.
*/
protected AbstractVecVariantStructureNodeAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecVariantStructureNode's abbreviation is equal to the given one.
* @param abbreviation the given abbreviation to compare the actual VecVariantStructureNode's abbreviation to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantStructureNode's abbreviation is not equal to the given one.
*/
public S hasAbbreviation(VecLocalizedString abbreviation) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode's aliasIds contains the given VecAliasIdentification elements.
* @param aliasIds the given elements that should be contained in actual VecVariantStructureNode's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's aliasIds does not contain all given VecAliasIdentification elements.
*/
public S hasAliasIds(VecAliasIdentification... aliasIds) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode's aliasIds contains the given VecAliasIdentification elements in Collection.
* @param aliasIds the given elements that should be contained in actual VecVariantStructureNode's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's aliasIds does not contain all given VecAliasIdentification elements.
*/
public S hasAliasIds(java.util.Collection extends VecAliasIdentification> aliasIds) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode'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 VecVariantStructureNode's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's aliasIds does not contain all given VecAliasIdentification elements.
*/
public S hasOnlyAliasIds(VecAliasIdentification... aliasIds) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode'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 VecVariantStructureNode's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's aliasIds does not contain all given VecAliasIdentification elements.
*/
public S hasOnlyAliasIds(java.util.Collection extends VecAliasIdentification> aliasIds) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode's aliasIds does not contain the given VecAliasIdentification elements.
*
* @param aliasIds the given elements that should not be in actual VecVariantStructureNode's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's aliasIds contains any given VecAliasIdentification elements.
*/
public S doesNotHaveAliasIds(VecAliasIdentification... aliasIds) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode's aliasIds does not contain the given VecAliasIdentification elements in Collection.
*
* @param aliasIds the given elements that should not be in actual VecVariantStructureNode's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's aliasIds contains any given VecAliasIdentification elements.
*/
public S doesNotHaveAliasIds(java.util.Collection extends VecAliasIdentification> aliasIds) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode has no aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's aliasIds is not empty.
*/
public S hasNoAliasIds() {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode's childNodes contains the given VecVariantStructureNode elements.
* @param childNodes the given elements that should be contained in actual VecVariantStructureNode's childNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's childNodes does not contain all given VecVariantStructureNode elements.
*/
public S hasChildNodes(VecVariantStructureNode... childNodes) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantStructureNode varargs is not null.
if (childNodes == null) failWithMessage("Expecting childNodes 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.getChildNodes(), childNodes);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's childNodes contains the given VecVariantStructureNode elements in Collection.
* @param childNodes the given elements that should be contained in actual VecVariantStructureNode's childNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's childNodes does not contain all given VecVariantStructureNode elements.
*/
public S hasChildNodes(java.util.Collection extends VecVariantStructureNode> childNodes) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantStructureNode collection is not null.
if (childNodes == null) {
failWithMessage("Expecting childNodes 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.getChildNodes(), childNodes.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's childNodes contains only the given VecVariantStructureNode elements and nothing else in whatever order.
* @param childNodes the given elements that should be contained in actual VecVariantStructureNode's childNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's childNodes does not contain all given VecVariantStructureNode elements.
*/
public S hasOnlyChildNodes(VecVariantStructureNode... childNodes) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantStructureNode varargs is not null.
if (childNodes == null) failWithMessage("Expecting childNodes 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.getChildNodes(), childNodes);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's childNodes contains only the given VecVariantStructureNode elements in Collection and nothing else in whatever order.
* @param childNodes the given elements that should be contained in actual VecVariantStructureNode's childNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's childNodes does not contain all given VecVariantStructureNode elements.
*/
public S hasOnlyChildNodes(java.util.Collection extends VecVariantStructureNode> childNodes) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantStructureNode collection is not null.
if (childNodes == null) {
failWithMessage("Expecting childNodes 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.getChildNodes(), childNodes.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's childNodes does not contain the given VecVariantStructureNode elements.
*
* @param childNodes the given elements that should not be in actual VecVariantStructureNode's childNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's childNodes contains any given VecVariantStructureNode elements.
*/
public S doesNotHaveChildNodes(VecVariantStructureNode... childNodes) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantStructureNode varargs is not null.
if (childNodes == null) failWithMessage("Expecting childNodes parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getChildNodes(), childNodes);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's childNodes does not contain the given VecVariantStructureNode elements in Collection.
*
* @param childNodes the given elements that should not be in actual VecVariantStructureNode's childNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's childNodes contains any given VecVariantStructureNode elements.
*/
public S doesNotHaveChildNodes(java.util.Collection extends VecVariantStructureNode> childNodes) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantStructureNode collection is not null.
if (childNodes == null) {
failWithMessage("Expecting childNodes 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.getChildNodes(), childNodes.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode has no childNodes.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's childNodes is not empty.
*/
public S hasNoChildNodes() {
// check that actual VecVariantStructureNode 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 childNodes but had :\n <%s>";
// check
if (actual.getChildNodes().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getChildNodes());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's containedGroups contains the given VecVariantGroup elements.
* @param containedGroups the given elements that should be contained in actual VecVariantStructureNode's containedGroups.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's containedGroups does not contain all given VecVariantGroup elements.
*/
public S hasContainedGroups(VecVariantGroup... containedGroups) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantGroup varargs is not null.
if (containedGroups == null) failWithMessage("Expecting containedGroups 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.getContainedGroups(), containedGroups);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's containedGroups contains the given VecVariantGroup elements in Collection.
* @param containedGroups the given elements that should be contained in actual VecVariantStructureNode's containedGroups.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's containedGroups does not contain all given VecVariantGroup elements.
*/
public S hasContainedGroups(java.util.Collection extends VecVariantGroup> containedGroups) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantGroup collection is not null.
if (containedGroups == null) {
failWithMessage("Expecting containedGroups 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.getContainedGroups(), containedGroups.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's containedGroups contains only the given VecVariantGroup elements and nothing else in whatever order.
* @param containedGroups the given elements that should be contained in actual VecVariantStructureNode's containedGroups.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's containedGroups does not contain all given VecVariantGroup elements.
*/
public S hasOnlyContainedGroups(VecVariantGroup... containedGroups) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantGroup varargs is not null.
if (containedGroups == null) failWithMessage("Expecting containedGroups 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.getContainedGroups(), containedGroups);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's containedGroups contains only the given VecVariantGroup elements in Collection and nothing else in whatever order.
* @param containedGroups the given elements that should be contained in actual VecVariantStructureNode's containedGroups.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's containedGroups does not contain all given VecVariantGroup elements.
*/
public S hasOnlyContainedGroups(java.util.Collection extends VecVariantGroup> containedGroups) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantGroup collection is not null.
if (containedGroups == null) {
failWithMessage("Expecting containedGroups 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.getContainedGroups(), containedGroups.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's containedGroups does not contain the given VecVariantGroup elements.
*
* @param containedGroups the given elements that should not be in actual VecVariantStructureNode's containedGroups.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's containedGroups contains any given VecVariantGroup elements.
*/
public S doesNotHaveContainedGroups(VecVariantGroup... containedGroups) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantGroup varargs is not null.
if (containedGroups == null) failWithMessage("Expecting containedGroups parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getContainedGroups(), containedGroups);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's containedGroups does not contain the given VecVariantGroup elements in Collection.
*
* @param containedGroups the given elements that should not be in actual VecVariantStructureNode's containedGroups.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's containedGroups contains any given VecVariantGroup elements.
*/
public S doesNotHaveContainedGroups(java.util.Collection extends VecVariantGroup> containedGroups) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantGroup collection is not null.
if (containedGroups == null) {
failWithMessage("Expecting containedGroups 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.getContainedGroups(), containedGroups.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode has no containedGroups.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's containedGroups is not empty.
*/
public S hasNoContainedGroups() {
// check that actual VecVariantStructureNode 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 containedGroups but had :\n <%s>";
// check
if (actual.getContainedGroups().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getContainedGroups());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's descriptions contains the given VecAbstractLocalizedString elements.
* @param descriptions the given elements that should be contained in actual VecVariantStructureNode's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode's descriptions contains the given VecAbstractLocalizedString elements in Collection.
* @param descriptions the given elements that should be contained in actual VecVariantStructureNode's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode'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 VecVariantStructureNode's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode'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 VecVariantStructureNode's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode's descriptions does not contain the given VecAbstractLocalizedString elements.
*
* @param descriptions the given elements that should not be in actual VecVariantStructureNode's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode's descriptions does not contain the given VecAbstractLocalizedString elements in Collection.
*
* @param descriptions the given elements that should not be in actual VecVariantStructureNode's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode has no descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's descriptions is not empty.
*/
public S hasNoDescriptions() {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode's identification is equal to the given one.
* @param identification the given identification to compare the actual VecVariantStructureNode's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantStructureNode's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecVariantStructureNode 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 VecVariantStructureNode's parentVariantStructureNode is equal to the given one.
* @param parentVariantStructureNode the given parentVariantStructureNode to compare the actual VecVariantStructureNode's parentVariantStructureNode to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantStructureNode's parentVariantStructureNode is not equal to the given one.
*/
public S hasParentVariantStructureNode(VecVariantStructureNode parentVariantStructureNode) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentVariantStructureNode of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecVariantStructureNode actualParentVariantStructureNode = actual.getParentVariantStructureNode();
if (!Objects.areEqual(actualParentVariantStructureNode, parentVariantStructureNode)) {
failWithMessage(assertjErrorMessage, actual, parentVariantStructureNode, actualParentVariantStructureNode);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's refVariantStructureSpecification contains the given VecVariantStructureSpecification elements.
* @param refVariantStructureSpecification the given elements that should be contained in actual VecVariantStructureNode's refVariantStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's refVariantStructureSpecification does not contain all given VecVariantStructureSpecification elements.
*/
public S hasRefVariantStructureSpecification(VecVariantStructureSpecification... refVariantStructureSpecification) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantStructureSpecification varargs is not null.
if (refVariantStructureSpecification == null) failWithMessage("Expecting refVariantStructureSpecification 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.getRefVariantStructureSpecification(), refVariantStructureSpecification);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's refVariantStructureSpecification contains the given VecVariantStructureSpecification elements in Collection.
* @param refVariantStructureSpecification the given elements that should be contained in actual VecVariantStructureNode's refVariantStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's refVariantStructureSpecification does not contain all given VecVariantStructureSpecification elements.
*/
public S hasRefVariantStructureSpecification(java.util.Collection extends VecVariantStructureSpecification> refVariantStructureSpecification) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantStructureSpecification collection is not null.
if (refVariantStructureSpecification == null) {
failWithMessage("Expecting refVariantStructureSpecification 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.getRefVariantStructureSpecification(), refVariantStructureSpecification.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's refVariantStructureSpecification contains only the given VecVariantStructureSpecification elements and nothing else in whatever order.
* @param refVariantStructureSpecification the given elements that should be contained in actual VecVariantStructureNode's refVariantStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's refVariantStructureSpecification does not contain all given VecVariantStructureSpecification elements.
*/
public S hasOnlyRefVariantStructureSpecification(VecVariantStructureSpecification... refVariantStructureSpecification) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantStructureSpecification varargs is not null.
if (refVariantStructureSpecification == null) failWithMessage("Expecting refVariantStructureSpecification 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.getRefVariantStructureSpecification(), refVariantStructureSpecification);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's refVariantStructureSpecification contains only the given VecVariantStructureSpecification elements in Collection and nothing else in whatever order.
* @param refVariantStructureSpecification the given elements that should be contained in actual VecVariantStructureNode's refVariantStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's refVariantStructureSpecification does not contain all given VecVariantStructureSpecification elements.
*/
public S hasOnlyRefVariantStructureSpecification(java.util.Collection extends VecVariantStructureSpecification> refVariantStructureSpecification) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantStructureSpecification collection is not null.
if (refVariantStructureSpecification == null) {
failWithMessage("Expecting refVariantStructureSpecification 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.getRefVariantStructureSpecification(), refVariantStructureSpecification.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's refVariantStructureSpecification does not contain the given VecVariantStructureSpecification elements.
*
* @param refVariantStructureSpecification the given elements that should not be in actual VecVariantStructureNode's refVariantStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's refVariantStructureSpecification contains any given VecVariantStructureSpecification elements.
*/
public S doesNotHaveRefVariantStructureSpecification(VecVariantStructureSpecification... refVariantStructureSpecification) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantStructureSpecification varargs is not null.
if (refVariantStructureSpecification == null) failWithMessage("Expecting refVariantStructureSpecification parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefVariantStructureSpecification(), refVariantStructureSpecification);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode's refVariantStructureSpecification does not contain the given VecVariantStructureSpecification elements in Collection.
*
* @param refVariantStructureSpecification the given elements that should not be in actual VecVariantStructureNode's refVariantStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's refVariantStructureSpecification contains any given VecVariantStructureSpecification elements.
*/
public S doesNotHaveRefVariantStructureSpecification(java.util.Collection extends VecVariantStructureSpecification> refVariantStructureSpecification) {
// check that actual VecVariantStructureNode we want to make assertions on is not null.
isNotNull();
// check that given VecVariantStructureSpecification collection is not null.
if (refVariantStructureSpecification == null) {
failWithMessage("Expecting refVariantStructureSpecification 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.getRefVariantStructureSpecification(), refVariantStructureSpecification.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantStructureNode has no refVariantStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantStructureNode's refVariantStructureSpecification is not empty.
*/
public S hasNoRefVariantStructureSpecification() {
// check that actual VecVariantStructureNode 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 refVariantStructureSpecification but had :\n <%s>";
// check
if (actual.getRefVariantStructureSpecification().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefVariantStructureSpecification());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy