
com.foursoft.vecmodel.vec120.AbstractVecOccurrenceOrUsageAssert 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 VecOccurrenceOrUsage} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecOccurrenceOrUsageAssert, A extends VecOccurrenceOrUsage> extends AbstractVecConfigurableElementAssert {
/**
* Creates a new {@link AbstractVecOccurrenceOrUsageAssert}
to make assertions on actual VecOccurrenceOrUsage.
* @param actual the VecOccurrenceOrUsage we want to make assertions on.
*/
protected AbstractVecOccurrenceOrUsageAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecOccurrenceOrUsage's abbreviations contains the given VecLocalizedString elements.
* @param abbreviations the given elements that should be contained in actual VecOccurrenceOrUsage's abbreviations.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's abbreviations does not contain all given VecLocalizedString elements.
*/
public S hasAbbreviations(VecLocalizedString... abbreviations) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecLocalizedString varargs is not null.
if (abbreviations == null) failWithMessage("Expecting abbreviations 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.getAbbreviations(), abbreviations);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's abbreviations contains the given VecLocalizedString elements in Collection.
* @param abbreviations the given elements that should be contained in actual VecOccurrenceOrUsage's abbreviations.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's abbreviations does not contain all given VecLocalizedString elements.
*/
public S hasAbbreviations(java.util.Collection extends VecLocalizedString> abbreviations) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecLocalizedString collection is not null.
if (abbreviations == null) {
failWithMessage("Expecting abbreviations 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.getAbbreviations(), abbreviations.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's abbreviations contains only the given VecLocalizedString elements and nothing else in whatever order.
* @param abbreviations the given elements that should be contained in actual VecOccurrenceOrUsage's abbreviations.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's abbreviations does not contain all given VecLocalizedString elements.
*/
public S hasOnlyAbbreviations(VecLocalizedString... abbreviations) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecLocalizedString varargs is not null.
if (abbreviations == null) failWithMessage("Expecting abbreviations 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.getAbbreviations(), abbreviations);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's abbreviations contains only the given VecLocalizedString elements in Collection and nothing else in whatever order.
* @param abbreviations the given elements that should be contained in actual VecOccurrenceOrUsage's abbreviations.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's abbreviations does not contain all given VecLocalizedString elements.
*/
public S hasOnlyAbbreviations(java.util.Collection extends VecLocalizedString> abbreviations) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecLocalizedString collection is not null.
if (abbreviations == null) {
failWithMessage("Expecting abbreviations 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.getAbbreviations(), abbreviations.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's abbreviations does not contain the given VecLocalizedString elements.
*
* @param abbreviations the given elements that should not be in actual VecOccurrenceOrUsage's abbreviations.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's abbreviations contains any given VecLocalizedString elements.
*/
public S doesNotHaveAbbreviations(VecLocalizedString... abbreviations) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecLocalizedString varargs is not null.
if (abbreviations == null) failWithMessage("Expecting abbreviations parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getAbbreviations(), abbreviations);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's abbreviations does not contain the given VecLocalizedString elements in Collection.
*
* @param abbreviations the given elements that should not be in actual VecOccurrenceOrUsage's abbreviations.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's abbreviations contains any given VecLocalizedString elements.
*/
public S doesNotHaveAbbreviations(java.util.Collection extends VecLocalizedString> abbreviations) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecLocalizedString collection is not null.
if (abbreviations == null) {
failWithMessage("Expecting abbreviations 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.getAbbreviations(), abbreviations.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage has no abbreviations.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's abbreviations is not empty.
*/
public S hasNoAbbreviations() {
// check that actual VecOccurrenceOrUsage 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 abbreviations but had :\n <%s>";
// check
if (actual.getAbbreviations().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getAbbreviations());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's aliasIds contains the given VecAliasIdentification elements.
* @param aliasIds the given elements that should be contained in actual VecOccurrenceOrUsage's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's aliasIds does not contain all given VecAliasIdentification elements.
*/
public S hasAliasIds(VecAliasIdentification... aliasIds) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage's aliasIds contains the given VecAliasIdentification elements in Collection.
* @param aliasIds the given elements that should be contained in actual VecOccurrenceOrUsage's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's aliasIds does not contain all given VecAliasIdentification elements.
*/
public S hasAliasIds(java.util.Collection extends VecAliasIdentification> aliasIds) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage'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 VecOccurrenceOrUsage's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's aliasIds does not contain all given VecAliasIdentification elements.
*/
public S hasOnlyAliasIds(VecAliasIdentification... aliasIds) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage'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 VecOccurrenceOrUsage's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's aliasIds does not contain all given VecAliasIdentification elements.
*/
public S hasOnlyAliasIds(java.util.Collection extends VecAliasIdentification> aliasIds) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage's aliasIds does not contain the given VecAliasIdentification elements.
*
* @param aliasIds the given elements that should not be in actual VecOccurrenceOrUsage's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's aliasIds contains any given VecAliasIdentification elements.
*/
public S doesNotHaveAliasIds(VecAliasIdentification... aliasIds) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage's aliasIds does not contain the given VecAliasIdentification elements in Collection.
*
* @param aliasIds the given elements that should not be in actual VecOccurrenceOrUsage's aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's aliasIds contains any given VecAliasIdentification elements.
*/
public S doesNotHaveAliasIds(java.util.Collection extends VecAliasIdentification> aliasIds) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage has no aliasIds.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's aliasIds is not empty.
*/
public S hasNoAliasIds() {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage's descriptions contains the given VecAbstractLocalizedString elements.
* @param descriptions the given elements that should be contained in actual VecOccurrenceOrUsage's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage's descriptions contains the given VecAbstractLocalizedString elements in Collection.
* @param descriptions the given elements that should be contained in actual VecOccurrenceOrUsage's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage'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 VecOccurrenceOrUsage's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage'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 VecOccurrenceOrUsage's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage's descriptions does not contain the given VecAbstractLocalizedString elements.
*
* @param descriptions the given elements that should not be in actual VecOccurrenceOrUsage's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage's descriptions does not contain the given VecAbstractLocalizedString elements in Collection.
*
* @param descriptions the given elements that should not be in actual VecOccurrenceOrUsage's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage has no descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's descriptions is not empty.
*/
public S hasNoDescriptions() {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage's identification is equal to the given one.
* @param identification the given identification to compare the actual VecOccurrenceOrUsage's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecOccurrenceOrUsage's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecOccurrenceOrUsage 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 VecOccurrenceOrUsage's installationInstructions contains the given VecInstruction elements.
* @param installationInstructions the given elements that should be contained in actual VecOccurrenceOrUsage's installationInstructions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's installationInstructions does not contain all given VecInstruction elements.
*/
public S hasInstallationInstructions(VecInstruction... installationInstructions) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecInstruction varargs is not null.
if (installationInstructions == null) failWithMessage("Expecting installationInstructions 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.getInstallationInstructions(), installationInstructions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's installationInstructions contains the given VecInstruction elements in Collection.
* @param installationInstructions the given elements that should be contained in actual VecOccurrenceOrUsage's installationInstructions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's installationInstructions does not contain all given VecInstruction elements.
*/
public S hasInstallationInstructions(java.util.Collection extends VecInstruction> installationInstructions) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecInstruction collection is not null.
if (installationInstructions == null) {
failWithMessage("Expecting installationInstructions 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.getInstallationInstructions(), installationInstructions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's installationInstructions contains only the given VecInstruction elements and nothing else in whatever order.
* @param installationInstructions the given elements that should be contained in actual VecOccurrenceOrUsage's installationInstructions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's installationInstructions does not contain all given VecInstruction elements.
*/
public S hasOnlyInstallationInstructions(VecInstruction... installationInstructions) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecInstruction varargs is not null.
if (installationInstructions == null) failWithMessage("Expecting installationInstructions 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.getInstallationInstructions(), installationInstructions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's installationInstructions contains only the given VecInstruction elements in Collection and nothing else in whatever order.
* @param installationInstructions the given elements that should be contained in actual VecOccurrenceOrUsage's installationInstructions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's installationInstructions does not contain all given VecInstruction elements.
*/
public S hasOnlyInstallationInstructions(java.util.Collection extends VecInstruction> installationInstructions) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecInstruction collection is not null.
if (installationInstructions == null) {
failWithMessage("Expecting installationInstructions 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.getInstallationInstructions(), installationInstructions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's installationInstructions does not contain the given VecInstruction elements.
*
* @param installationInstructions the given elements that should not be in actual VecOccurrenceOrUsage's installationInstructions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's installationInstructions contains any given VecInstruction elements.
*/
public S doesNotHaveInstallationInstructions(VecInstruction... installationInstructions) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecInstruction varargs is not null.
if (installationInstructions == null) failWithMessage("Expecting installationInstructions parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getInstallationInstructions(), installationInstructions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's installationInstructions does not contain the given VecInstruction elements in Collection.
*
* @param installationInstructions the given elements that should not be in actual VecOccurrenceOrUsage's installationInstructions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's installationInstructions contains any given VecInstruction elements.
*/
public S doesNotHaveInstallationInstructions(java.util.Collection extends VecInstruction> installationInstructions) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecInstruction collection is not null.
if (installationInstructions == null) {
failWithMessage("Expecting installationInstructions 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.getInstallationInstructions(), installationInstructions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage has no installationInstructions.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's installationInstructions is not empty.
*/
public S hasNoInstallationInstructions() {
// check that actual VecOccurrenceOrUsage 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 installationInstructions but had :\n <%s>";
// check
if (actual.getInstallationInstructions().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getInstallationInstructions());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's realizedUsageNode is equal to the given one.
* @param realizedUsageNode the given realizedUsageNode to compare the actual VecOccurrenceOrUsage's realizedUsageNode to.
* @return this assertion object.
* @throws AssertionError - if the actual VecOccurrenceOrUsage's realizedUsageNode is not equal to the given one.
*/
public S hasRealizedUsageNode(VecUsageNode realizedUsageNode) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting realizedUsageNode of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecUsageNode actualRealizedUsageNode = actual.getRealizedUsageNode();
if (!Objects.areEqual(actualRealizedUsageNode, realizedUsageNode)) {
failWithMessage(assertjErrorMessage, actual, realizedUsageNode, actualRealizedUsageNode);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refModuleList contains the given VecModuleList elements.
* @param refModuleList the given elements that should be contained in actual VecOccurrenceOrUsage's refModuleList.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refModuleList does not contain all given VecModuleList elements.
*/
public S hasRefModuleList(VecModuleList... refModuleList) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecModuleList varargs is not null.
if (refModuleList == null) failWithMessage("Expecting refModuleList 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.getRefModuleList(), refModuleList);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refModuleList contains the given VecModuleList elements in Collection.
* @param refModuleList the given elements that should be contained in actual VecOccurrenceOrUsage's refModuleList.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refModuleList does not contain all given VecModuleList elements.
*/
public S hasRefModuleList(java.util.Collection extends VecModuleList> refModuleList) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecModuleList collection is not null.
if (refModuleList == null) {
failWithMessage("Expecting refModuleList 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.getRefModuleList(), refModuleList.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refModuleList contains only the given VecModuleList elements and nothing else in whatever order.
* @param refModuleList the given elements that should be contained in actual VecOccurrenceOrUsage's refModuleList.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refModuleList does not contain all given VecModuleList elements.
*/
public S hasOnlyRefModuleList(VecModuleList... refModuleList) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecModuleList varargs is not null.
if (refModuleList == null) failWithMessage("Expecting refModuleList 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.getRefModuleList(), refModuleList);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refModuleList contains only the given VecModuleList elements in Collection and nothing else in whatever order.
* @param refModuleList the given elements that should be contained in actual VecOccurrenceOrUsage's refModuleList.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refModuleList does not contain all given VecModuleList elements.
*/
public S hasOnlyRefModuleList(java.util.Collection extends VecModuleList> refModuleList) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecModuleList collection is not null.
if (refModuleList == null) {
failWithMessage("Expecting refModuleList 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.getRefModuleList(), refModuleList.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refModuleList does not contain the given VecModuleList elements.
*
* @param refModuleList the given elements that should not be in actual VecOccurrenceOrUsage's refModuleList.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refModuleList contains any given VecModuleList elements.
*/
public S doesNotHaveRefModuleList(VecModuleList... refModuleList) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecModuleList varargs is not null.
if (refModuleList == null) failWithMessage("Expecting refModuleList parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefModuleList(), refModuleList);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refModuleList does not contain the given VecModuleList elements in Collection.
*
* @param refModuleList the given elements that should not be in actual VecOccurrenceOrUsage's refModuleList.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refModuleList contains any given VecModuleList elements.
*/
public S doesNotHaveRefModuleList(java.util.Collection extends VecModuleList> refModuleList) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecModuleList collection is not null.
if (refModuleList == null) {
failWithMessage("Expecting refModuleList 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.getRefModuleList(), refModuleList.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage has no refModuleList.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refModuleList is not empty.
*/
public S hasNoRefModuleList() {
// check that actual VecOccurrenceOrUsage 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 refModuleList but had :\n <%s>";
// check
if (actual.getRefModuleList().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefModuleList());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsage contains the given VecOccurrenceOrUsage elements.
* @param refOccurrenceOrUsage the given elements that should be contained in actual VecOccurrenceOrUsage's refOccurrenceOrUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsage does not contain all given VecOccurrenceOrUsage elements.
*/
public S hasRefOccurrenceOrUsage(VecOccurrenceOrUsage... refOccurrenceOrUsage) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsage varargs is not null.
if (refOccurrenceOrUsage == null) failWithMessage("Expecting refOccurrenceOrUsage 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.getRefOccurrenceOrUsage(), refOccurrenceOrUsage);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsage contains the given VecOccurrenceOrUsage elements in Collection.
* @param refOccurrenceOrUsage the given elements that should be contained in actual VecOccurrenceOrUsage's refOccurrenceOrUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsage does not contain all given VecOccurrenceOrUsage elements.
*/
public S hasRefOccurrenceOrUsage(java.util.Collection extends VecOccurrenceOrUsage> refOccurrenceOrUsage) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsage collection is not null.
if (refOccurrenceOrUsage == null) {
failWithMessage("Expecting refOccurrenceOrUsage 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.getRefOccurrenceOrUsage(), refOccurrenceOrUsage.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsage contains only the given VecOccurrenceOrUsage elements and nothing else in whatever order.
* @param refOccurrenceOrUsage the given elements that should be contained in actual VecOccurrenceOrUsage's refOccurrenceOrUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsage does not contain all given VecOccurrenceOrUsage elements.
*/
public S hasOnlyRefOccurrenceOrUsage(VecOccurrenceOrUsage... refOccurrenceOrUsage) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsage varargs is not null.
if (refOccurrenceOrUsage == null) failWithMessage("Expecting refOccurrenceOrUsage 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.getRefOccurrenceOrUsage(), refOccurrenceOrUsage);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsage contains only the given VecOccurrenceOrUsage elements in Collection and nothing else in whatever order.
* @param refOccurrenceOrUsage the given elements that should be contained in actual VecOccurrenceOrUsage's refOccurrenceOrUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsage does not contain all given VecOccurrenceOrUsage elements.
*/
public S hasOnlyRefOccurrenceOrUsage(java.util.Collection extends VecOccurrenceOrUsage> refOccurrenceOrUsage) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsage collection is not null.
if (refOccurrenceOrUsage == null) {
failWithMessage("Expecting refOccurrenceOrUsage 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.getRefOccurrenceOrUsage(), refOccurrenceOrUsage.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsage does not contain the given VecOccurrenceOrUsage elements.
*
* @param refOccurrenceOrUsage the given elements that should not be in actual VecOccurrenceOrUsage's refOccurrenceOrUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsage contains any given VecOccurrenceOrUsage elements.
*/
public S doesNotHaveRefOccurrenceOrUsage(VecOccurrenceOrUsage... refOccurrenceOrUsage) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsage varargs is not null.
if (refOccurrenceOrUsage == null) failWithMessage("Expecting refOccurrenceOrUsage parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefOccurrenceOrUsage(), refOccurrenceOrUsage);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsage does not contain the given VecOccurrenceOrUsage elements in Collection.
*
* @param refOccurrenceOrUsage the given elements that should not be in actual VecOccurrenceOrUsage's refOccurrenceOrUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsage contains any given VecOccurrenceOrUsage elements.
*/
public S doesNotHaveRefOccurrenceOrUsage(java.util.Collection extends VecOccurrenceOrUsage> refOccurrenceOrUsage) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsage collection is not null.
if (refOccurrenceOrUsage == null) {
failWithMessage("Expecting refOccurrenceOrUsage 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.getRefOccurrenceOrUsage(), refOccurrenceOrUsage.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage has no refOccurrenceOrUsage.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsage is not empty.
*/
public S hasNoRefOccurrenceOrUsage() {
// check that actual VecOccurrenceOrUsage 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 refOccurrenceOrUsage but had :\n <%s>";
// check
if (actual.getRefOccurrenceOrUsage().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefOccurrenceOrUsage());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D contains the given VecOccurrenceOrUsageViewItem2D elements.
* @param refOccurrenceOrUsageViewItem2D the given elements that should be contained in actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D does not contain all given VecOccurrenceOrUsageViewItem2D elements.
*/
public S hasRefOccurrenceOrUsageViewItem2D(VecOccurrenceOrUsageViewItem2D... refOccurrenceOrUsageViewItem2D) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem2D varargs is not null.
if (refOccurrenceOrUsageViewItem2D == null) failWithMessage("Expecting refOccurrenceOrUsageViewItem2D 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.getRefOccurrenceOrUsageViewItem2D(), refOccurrenceOrUsageViewItem2D);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D contains the given VecOccurrenceOrUsageViewItem2D elements in Collection.
* @param refOccurrenceOrUsageViewItem2D the given elements that should be contained in actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D does not contain all given VecOccurrenceOrUsageViewItem2D elements.
*/
public S hasRefOccurrenceOrUsageViewItem2D(java.util.Collection extends VecOccurrenceOrUsageViewItem2D> refOccurrenceOrUsageViewItem2D) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem2D collection is not null.
if (refOccurrenceOrUsageViewItem2D == null) {
failWithMessage("Expecting refOccurrenceOrUsageViewItem2D 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.getRefOccurrenceOrUsageViewItem2D(), refOccurrenceOrUsageViewItem2D.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D contains only the given VecOccurrenceOrUsageViewItem2D elements and nothing else in whatever order.
* @param refOccurrenceOrUsageViewItem2D the given elements that should be contained in actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D does not contain all given VecOccurrenceOrUsageViewItem2D elements.
*/
public S hasOnlyRefOccurrenceOrUsageViewItem2D(VecOccurrenceOrUsageViewItem2D... refOccurrenceOrUsageViewItem2D) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem2D varargs is not null.
if (refOccurrenceOrUsageViewItem2D == null) failWithMessage("Expecting refOccurrenceOrUsageViewItem2D 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.getRefOccurrenceOrUsageViewItem2D(), refOccurrenceOrUsageViewItem2D);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D contains only the given VecOccurrenceOrUsageViewItem2D elements in Collection and nothing else in whatever order.
* @param refOccurrenceOrUsageViewItem2D the given elements that should be contained in actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D does not contain all given VecOccurrenceOrUsageViewItem2D elements.
*/
public S hasOnlyRefOccurrenceOrUsageViewItem2D(java.util.Collection extends VecOccurrenceOrUsageViewItem2D> refOccurrenceOrUsageViewItem2D) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem2D collection is not null.
if (refOccurrenceOrUsageViewItem2D == null) {
failWithMessage("Expecting refOccurrenceOrUsageViewItem2D 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.getRefOccurrenceOrUsageViewItem2D(), refOccurrenceOrUsageViewItem2D.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D does not contain the given VecOccurrenceOrUsageViewItem2D elements.
*
* @param refOccurrenceOrUsageViewItem2D the given elements that should not be in actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D contains any given VecOccurrenceOrUsageViewItem2D elements.
*/
public S doesNotHaveRefOccurrenceOrUsageViewItem2D(VecOccurrenceOrUsageViewItem2D... refOccurrenceOrUsageViewItem2D) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem2D varargs is not null.
if (refOccurrenceOrUsageViewItem2D == null) failWithMessage("Expecting refOccurrenceOrUsageViewItem2D parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefOccurrenceOrUsageViewItem2D(), refOccurrenceOrUsageViewItem2D);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D does not contain the given VecOccurrenceOrUsageViewItem2D elements in Collection.
*
* @param refOccurrenceOrUsageViewItem2D the given elements that should not be in actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D contains any given VecOccurrenceOrUsageViewItem2D elements.
*/
public S doesNotHaveRefOccurrenceOrUsageViewItem2D(java.util.Collection extends VecOccurrenceOrUsageViewItem2D> refOccurrenceOrUsageViewItem2D) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem2D collection is not null.
if (refOccurrenceOrUsageViewItem2D == null) {
failWithMessage("Expecting refOccurrenceOrUsageViewItem2D 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.getRefOccurrenceOrUsageViewItem2D(), refOccurrenceOrUsageViewItem2D.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage has no refOccurrenceOrUsageViewItem2D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem2D is not empty.
*/
public S hasNoRefOccurrenceOrUsageViewItem2D() {
// check that actual VecOccurrenceOrUsage 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 refOccurrenceOrUsageViewItem2D but had :\n <%s>";
// check
if (actual.getRefOccurrenceOrUsageViewItem2D().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefOccurrenceOrUsageViewItem2D());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D contains the given VecOccurrenceOrUsageViewItem3D elements.
* @param refOccurrenceOrUsageViewItem3D the given elements that should be contained in actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D does not contain all given VecOccurrenceOrUsageViewItem3D elements.
*/
public S hasRefOccurrenceOrUsageViewItem3D(VecOccurrenceOrUsageViewItem3D... refOccurrenceOrUsageViewItem3D) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem3D varargs is not null.
if (refOccurrenceOrUsageViewItem3D == null) failWithMessage("Expecting refOccurrenceOrUsageViewItem3D 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.getRefOccurrenceOrUsageViewItem3D(), refOccurrenceOrUsageViewItem3D);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D contains the given VecOccurrenceOrUsageViewItem3D elements in Collection.
* @param refOccurrenceOrUsageViewItem3D the given elements that should be contained in actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D does not contain all given VecOccurrenceOrUsageViewItem3D elements.
*/
public S hasRefOccurrenceOrUsageViewItem3D(java.util.Collection extends VecOccurrenceOrUsageViewItem3D> refOccurrenceOrUsageViewItem3D) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem3D collection is not null.
if (refOccurrenceOrUsageViewItem3D == null) {
failWithMessage("Expecting refOccurrenceOrUsageViewItem3D 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.getRefOccurrenceOrUsageViewItem3D(), refOccurrenceOrUsageViewItem3D.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D contains only the given VecOccurrenceOrUsageViewItem3D elements and nothing else in whatever order.
* @param refOccurrenceOrUsageViewItem3D the given elements that should be contained in actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D does not contain all given VecOccurrenceOrUsageViewItem3D elements.
*/
public S hasOnlyRefOccurrenceOrUsageViewItem3D(VecOccurrenceOrUsageViewItem3D... refOccurrenceOrUsageViewItem3D) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem3D varargs is not null.
if (refOccurrenceOrUsageViewItem3D == null) failWithMessage("Expecting refOccurrenceOrUsageViewItem3D 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.getRefOccurrenceOrUsageViewItem3D(), refOccurrenceOrUsageViewItem3D);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D contains only the given VecOccurrenceOrUsageViewItem3D elements in Collection and nothing else in whatever order.
* @param refOccurrenceOrUsageViewItem3D the given elements that should be contained in actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D does not contain all given VecOccurrenceOrUsageViewItem3D elements.
*/
public S hasOnlyRefOccurrenceOrUsageViewItem3D(java.util.Collection extends VecOccurrenceOrUsageViewItem3D> refOccurrenceOrUsageViewItem3D) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem3D collection is not null.
if (refOccurrenceOrUsageViewItem3D == null) {
failWithMessage("Expecting refOccurrenceOrUsageViewItem3D 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.getRefOccurrenceOrUsageViewItem3D(), refOccurrenceOrUsageViewItem3D.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D does not contain the given VecOccurrenceOrUsageViewItem3D elements.
*
* @param refOccurrenceOrUsageViewItem3D the given elements that should not be in actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D contains any given VecOccurrenceOrUsageViewItem3D elements.
*/
public S doesNotHaveRefOccurrenceOrUsageViewItem3D(VecOccurrenceOrUsageViewItem3D... refOccurrenceOrUsageViewItem3D) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem3D varargs is not null.
if (refOccurrenceOrUsageViewItem3D == null) failWithMessage("Expecting refOccurrenceOrUsageViewItem3D parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefOccurrenceOrUsageViewItem3D(), refOccurrenceOrUsageViewItem3D);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D does not contain the given VecOccurrenceOrUsageViewItem3D elements in Collection.
*
* @param refOccurrenceOrUsageViewItem3D the given elements that should not be in actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D contains any given VecOccurrenceOrUsageViewItem3D elements.
*/
public S doesNotHaveRefOccurrenceOrUsageViewItem3D(java.util.Collection extends VecOccurrenceOrUsageViewItem3D> refOccurrenceOrUsageViewItem3D) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsageViewItem3D collection is not null.
if (refOccurrenceOrUsageViewItem3D == null) {
failWithMessage("Expecting refOccurrenceOrUsageViewItem3D 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.getRefOccurrenceOrUsageViewItem3D(), refOccurrenceOrUsageViewItem3D.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage has no refOccurrenceOrUsageViewItem3D.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refOccurrenceOrUsageViewItem3D is not empty.
*/
public S hasNoRefOccurrenceOrUsageViewItem3D() {
// check that actual VecOccurrenceOrUsage 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 refOccurrenceOrUsageViewItem3D but had :\n <%s>";
// check
if (actual.getRefOccurrenceOrUsageViewItem3D().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefOccurrenceOrUsageViewItem3D());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refPartStructureSpecification contains the given VecPartStructureSpecification elements.
* @param refPartStructureSpecification the given elements that should be contained in actual VecOccurrenceOrUsage's refPartStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartStructureSpecification does not contain all given VecPartStructureSpecification elements.
*/
public S hasRefPartStructureSpecification(VecPartStructureSpecification... refPartStructureSpecification) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecPartStructureSpecification varargs is not null.
if (refPartStructureSpecification == null) failWithMessage("Expecting refPartStructureSpecification 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.getRefPartStructureSpecification(), refPartStructureSpecification);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refPartStructureSpecification contains the given VecPartStructureSpecification elements in Collection.
* @param refPartStructureSpecification the given elements that should be contained in actual VecOccurrenceOrUsage's refPartStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartStructureSpecification does not contain all given VecPartStructureSpecification elements.
*/
public S hasRefPartStructureSpecification(java.util.Collection extends VecPartStructureSpecification> refPartStructureSpecification) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecPartStructureSpecification collection is not null.
if (refPartStructureSpecification == null) {
failWithMessage("Expecting refPartStructureSpecification 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.getRefPartStructureSpecification(), refPartStructureSpecification.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refPartStructureSpecification contains only the given VecPartStructureSpecification elements and nothing else in whatever order.
* @param refPartStructureSpecification the given elements that should be contained in actual VecOccurrenceOrUsage's refPartStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartStructureSpecification does not contain all given VecPartStructureSpecification elements.
*/
public S hasOnlyRefPartStructureSpecification(VecPartStructureSpecification... refPartStructureSpecification) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecPartStructureSpecification varargs is not null.
if (refPartStructureSpecification == null) failWithMessage("Expecting refPartStructureSpecification 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.getRefPartStructureSpecification(), refPartStructureSpecification);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refPartStructureSpecification contains only the given VecPartStructureSpecification elements in Collection and nothing else in whatever order.
* @param refPartStructureSpecification the given elements that should be contained in actual VecOccurrenceOrUsage's refPartStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartStructureSpecification does not contain all given VecPartStructureSpecification elements.
*/
public S hasOnlyRefPartStructureSpecification(java.util.Collection extends VecPartStructureSpecification> refPartStructureSpecification) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecPartStructureSpecification collection is not null.
if (refPartStructureSpecification == null) {
failWithMessage("Expecting refPartStructureSpecification 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.getRefPartStructureSpecification(), refPartStructureSpecification.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refPartStructureSpecification does not contain the given VecPartStructureSpecification elements.
*
* @param refPartStructureSpecification the given elements that should not be in actual VecOccurrenceOrUsage's refPartStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartStructureSpecification contains any given VecPartStructureSpecification elements.
*/
public S doesNotHaveRefPartStructureSpecification(VecPartStructureSpecification... refPartStructureSpecification) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecPartStructureSpecification varargs is not null.
if (refPartStructureSpecification == null) failWithMessage("Expecting refPartStructureSpecification parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefPartStructureSpecification(), refPartStructureSpecification);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refPartStructureSpecification does not contain the given VecPartStructureSpecification elements in Collection.
*
* @param refPartStructureSpecification the given elements that should not be in actual VecOccurrenceOrUsage's refPartStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartStructureSpecification contains any given VecPartStructureSpecification elements.
*/
public S doesNotHaveRefPartStructureSpecification(java.util.Collection extends VecPartStructureSpecification> refPartStructureSpecification) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecPartStructureSpecification collection is not null.
if (refPartStructureSpecification == null) {
failWithMessage("Expecting refPartStructureSpecification 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.getRefPartStructureSpecification(), refPartStructureSpecification.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage has no refPartStructureSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartStructureSpecification is not empty.
*/
public S hasNoRefPartStructureSpecification() {
// check that actual VecOccurrenceOrUsage 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 refPartStructureSpecification but had :\n <%s>";
// check
if (actual.getRefPartStructureSpecification().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefPartStructureSpecification());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole contains the given VecPartWithSubComponentsRole elements.
* @param refPartWithSubComponentsRole the given elements that should be contained in actual VecOccurrenceOrUsage's refPartWithSubComponentsRole.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole does not contain all given VecPartWithSubComponentsRole elements.
*/
public S hasRefPartWithSubComponentsRole(VecPartWithSubComponentsRole... refPartWithSubComponentsRole) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecPartWithSubComponentsRole varargs is not null.
if (refPartWithSubComponentsRole == null) failWithMessage("Expecting refPartWithSubComponentsRole 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.getRefPartWithSubComponentsRole(), refPartWithSubComponentsRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole contains the given VecPartWithSubComponentsRole elements in Collection.
* @param refPartWithSubComponentsRole the given elements that should be contained in actual VecOccurrenceOrUsage's refPartWithSubComponentsRole.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole does not contain all given VecPartWithSubComponentsRole elements.
*/
public S hasRefPartWithSubComponentsRole(java.util.Collection extends VecPartWithSubComponentsRole> refPartWithSubComponentsRole) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecPartWithSubComponentsRole collection is not null.
if (refPartWithSubComponentsRole == null) {
failWithMessage("Expecting refPartWithSubComponentsRole 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.getRefPartWithSubComponentsRole(), refPartWithSubComponentsRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole contains only the given VecPartWithSubComponentsRole elements and nothing else in whatever order.
* @param refPartWithSubComponentsRole the given elements that should be contained in actual VecOccurrenceOrUsage's refPartWithSubComponentsRole.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole does not contain all given VecPartWithSubComponentsRole elements.
*/
public S hasOnlyRefPartWithSubComponentsRole(VecPartWithSubComponentsRole... refPartWithSubComponentsRole) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecPartWithSubComponentsRole varargs is not null.
if (refPartWithSubComponentsRole == null) failWithMessage("Expecting refPartWithSubComponentsRole 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.getRefPartWithSubComponentsRole(), refPartWithSubComponentsRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole contains only the given VecPartWithSubComponentsRole elements in Collection and nothing else in whatever order.
* @param refPartWithSubComponentsRole the given elements that should be contained in actual VecOccurrenceOrUsage's refPartWithSubComponentsRole.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole does not contain all given VecPartWithSubComponentsRole elements.
*/
public S hasOnlyRefPartWithSubComponentsRole(java.util.Collection extends VecPartWithSubComponentsRole> refPartWithSubComponentsRole) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecPartWithSubComponentsRole collection is not null.
if (refPartWithSubComponentsRole == null) {
failWithMessage("Expecting refPartWithSubComponentsRole 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.getRefPartWithSubComponentsRole(), refPartWithSubComponentsRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole does not contain the given VecPartWithSubComponentsRole elements.
*
* @param refPartWithSubComponentsRole the given elements that should not be in actual VecOccurrenceOrUsage's refPartWithSubComponentsRole.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole contains any given VecPartWithSubComponentsRole elements.
*/
public S doesNotHaveRefPartWithSubComponentsRole(VecPartWithSubComponentsRole... refPartWithSubComponentsRole) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecPartWithSubComponentsRole varargs is not null.
if (refPartWithSubComponentsRole == null) failWithMessage("Expecting refPartWithSubComponentsRole parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefPartWithSubComponentsRole(), refPartWithSubComponentsRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole does not contain the given VecPartWithSubComponentsRole elements in Collection.
*
* @param refPartWithSubComponentsRole the given elements that should not be in actual VecOccurrenceOrUsage's refPartWithSubComponentsRole.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole contains any given VecPartWithSubComponentsRole elements.
*/
public S doesNotHaveRefPartWithSubComponentsRole(java.util.Collection extends VecPartWithSubComponentsRole> refPartWithSubComponentsRole) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecPartWithSubComponentsRole collection is not null.
if (refPartWithSubComponentsRole == null) {
failWithMessage("Expecting refPartWithSubComponentsRole 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.getRefPartWithSubComponentsRole(), refPartWithSubComponentsRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage has no refPartWithSubComponentsRole.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's refPartWithSubComponentsRole is not empty.
*/
public S hasNoRefPartWithSubComponentsRole() {
// check that actual VecOccurrenceOrUsage 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 refPartWithSubComponentsRole but had :\n <%s>";
// check
if (actual.getRefPartWithSubComponentsRole().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefPartWithSubComponentsRole());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's referenceElement contains the given VecOccurrenceOrUsage elements.
* @param referenceElement the given elements that should be contained in actual VecOccurrenceOrUsage's referenceElement.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's referenceElement does not contain all given VecOccurrenceOrUsage elements.
*/
public S hasReferenceElement(VecOccurrenceOrUsage... referenceElement) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsage varargs is not null.
if (referenceElement == null) failWithMessage("Expecting referenceElement 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.getReferenceElement(), referenceElement);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's referenceElement contains the given VecOccurrenceOrUsage elements in Collection.
* @param referenceElement the given elements that should be contained in actual VecOccurrenceOrUsage's referenceElement.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's referenceElement does not contain all given VecOccurrenceOrUsage elements.
*/
public S hasReferenceElement(java.util.Collection extends VecOccurrenceOrUsage> referenceElement) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsage collection is not null.
if (referenceElement == null) {
failWithMessage("Expecting referenceElement 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.getReferenceElement(), referenceElement.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's referenceElement contains only the given VecOccurrenceOrUsage elements and nothing else in whatever order.
* @param referenceElement the given elements that should be contained in actual VecOccurrenceOrUsage's referenceElement.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's referenceElement does not contain all given VecOccurrenceOrUsage elements.
*/
public S hasOnlyReferenceElement(VecOccurrenceOrUsage... referenceElement) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsage varargs is not null.
if (referenceElement == null) failWithMessage("Expecting referenceElement 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.getReferenceElement(), referenceElement);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's referenceElement contains only the given VecOccurrenceOrUsage elements in Collection and nothing else in whatever order.
* @param referenceElement the given elements that should be contained in actual VecOccurrenceOrUsage's referenceElement.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's referenceElement does not contain all given VecOccurrenceOrUsage elements.
*/
public S hasOnlyReferenceElement(java.util.Collection extends VecOccurrenceOrUsage> referenceElement) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsage collection is not null.
if (referenceElement == null) {
failWithMessage("Expecting referenceElement 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.getReferenceElement(), referenceElement.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's referenceElement does not contain the given VecOccurrenceOrUsage elements.
*
* @param referenceElement the given elements that should not be in actual VecOccurrenceOrUsage's referenceElement.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's referenceElement contains any given VecOccurrenceOrUsage elements.
*/
public S doesNotHaveReferenceElement(VecOccurrenceOrUsage... referenceElement) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsage varargs is not null.
if (referenceElement == null) failWithMessage("Expecting referenceElement parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getReferenceElement(), referenceElement);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's referenceElement does not contain the given VecOccurrenceOrUsage elements in Collection.
*
* @param referenceElement the given elements that should not be in actual VecOccurrenceOrUsage's referenceElement.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's referenceElement contains any given VecOccurrenceOrUsage elements.
*/
public S doesNotHaveReferenceElement(java.util.Collection extends VecOccurrenceOrUsage> referenceElement) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecOccurrenceOrUsage collection is not null.
if (referenceElement == null) {
failWithMessage("Expecting referenceElement 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.getReferenceElement(), referenceElement.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage has no referenceElement.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's referenceElement is not empty.
*/
public S hasNoReferenceElement() {
// check that actual VecOccurrenceOrUsage 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 referenceElement but had :\n <%s>";
// check
if (actual.getReferenceElement().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getReferenceElement());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's roles contains the given VecRole elements.
* @param roles the given elements that should be contained in actual VecOccurrenceOrUsage's roles.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's roles does not contain all given VecRole elements.
*/
public S hasRoles(VecRole... roles) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecRole varargs is not null.
if (roles == null) failWithMessage("Expecting roles 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.getRoles(), roles);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's roles contains the given VecRole elements in Collection.
* @param roles the given elements that should be contained in actual VecOccurrenceOrUsage's roles.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's roles does not contain all given VecRole elements.
*/
public S hasRoles(java.util.Collection extends VecRole> roles) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecRole collection is not null.
if (roles == null) {
failWithMessage("Expecting roles 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.getRoles(), roles.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's roles contains only the given VecRole elements and nothing else in whatever order.
* @param roles the given elements that should be contained in actual VecOccurrenceOrUsage's roles.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's roles does not contain all given VecRole elements.
*/
public S hasOnlyRoles(VecRole... roles) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecRole varargs is not null.
if (roles == null) failWithMessage("Expecting roles 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.getRoles(), roles);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's roles contains only the given VecRole elements in Collection and nothing else in whatever order.
* @param roles the given elements that should be contained in actual VecOccurrenceOrUsage's roles.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's roles does not contain all given VecRole elements.
*/
public S hasOnlyRoles(java.util.Collection extends VecRole> roles) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecRole collection is not null.
if (roles == null) {
failWithMessage("Expecting roles 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.getRoles(), roles.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's roles does not contain the given VecRole elements.
*
* @param roles the given elements that should not be in actual VecOccurrenceOrUsage's roles.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's roles contains any given VecRole elements.
*/
public S doesNotHaveRoles(VecRole... roles) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecRole varargs is not null.
if (roles == null) failWithMessage("Expecting roles parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRoles(), roles);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage's roles does not contain the given VecRole elements in Collection.
*
* @param roles the given elements that should not be in actual VecOccurrenceOrUsage's roles.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's roles contains any given VecRole elements.
*/
public S doesNotHaveRoles(java.util.Collection extends VecRole> roles) {
// check that actual VecOccurrenceOrUsage we want to make assertions on is not null.
isNotNull();
// check that given VecRole collection is not null.
if (roles == null) {
failWithMessage("Expecting roles 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.getRoles(), roles.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecOccurrenceOrUsage has no roles.
* @return this assertion object.
* @throws AssertionError if the actual VecOccurrenceOrUsage's roles is not empty.
*/
public S hasNoRoles() {
// check that actual VecOccurrenceOrUsage 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 roles but had :\n <%s>";
// check
if (actual.getRoles().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRoles());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy