
com.foursoft.vecmodel.vec120.AbstractVecVariantConfigurationAssert 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 VecVariantConfiguration} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecVariantConfigurationAssert, A extends VecVariantConfiguration> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecVariantConfigurationAssert}
to make assertions on actual VecVariantConfiguration.
* @param actual the VecVariantConfiguration we want to make assertions on.
*/
protected AbstractVecVariantConfigurationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecVariantConfiguration's baseInclusion is equal to the given one.
* @param baseInclusion the given baseInclusion to compare the actual VecVariantConfiguration's baseInclusion to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantConfiguration's baseInclusion is not equal to the given one.
*/
public S hasBaseInclusion(VecVariantConfiguration baseInclusion) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting baseInclusion of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecVariantConfiguration actualBaseInclusion = actual.getBaseInclusion();
if (!Objects.areEqual(actualBaseInclusion, baseInclusion)) {
failWithMessage(assertjErrorMessage, actual, baseInclusion, actualBaseInclusion);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's configurationType is equal to the given one.
* @param configurationType the given configurationType to compare the actual VecVariantConfiguration's configurationType to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantConfiguration's configurationType is not equal to the given one.
*/
public S hasConfigurationType(String configurationType) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting configurationType of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualConfigurationType = actual.getConfigurationType();
if (!Objects.areEqual(actualConfigurationType, configurationType)) {
failWithMessage(assertjErrorMessage, actual, configurationType, actualConfigurationType);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's descriptions contains the given VecAbstractLocalizedString elements.
* @param descriptions the given elements that should be contained in actual VecVariantConfiguration's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecVariantConfiguration 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 VecVariantConfiguration's descriptions contains the given VecAbstractLocalizedString elements in Collection.
* @param descriptions the given elements that should be contained in actual VecVariantConfiguration's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecVariantConfiguration 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 VecVariantConfiguration'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 VecVariantConfiguration's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecVariantConfiguration 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 VecVariantConfiguration'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 VecVariantConfiguration's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecVariantConfiguration 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 VecVariantConfiguration's descriptions does not contain the given VecAbstractLocalizedString elements.
*
* @param descriptions the given elements that should not be in actual VecVariantConfiguration's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecVariantConfiguration 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 VecVariantConfiguration's descriptions does not contain the given VecAbstractLocalizedString elements in Collection.
*
* @param descriptions the given elements that should not be in actual VecVariantConfiguration's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecVariantConfiguration 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 VecVariantConfiguration has no descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's descriptions is not empty.
*/
public S hasNoDescriptions() {
// check that actual VecVariantConfiguration 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 VecVariantConfiguration's identification is equal to the given one.
* @param identification the given identification to compare the actual VecVariantConfiguration's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantConfiguration's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecVariantConfiguration 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 VecVariantConfiguration's logisticControlExpression is equal to the given one.
* @param logisticControlExpression the given logisticControlExpression to compare the actual VecVariantConfiguration's logisticControlExpression to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantConfiguration's logisticControlExpression is not equal to the given one.
*/
public S hasLogisticControlExpression(String logisticControlExpression) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting logisticControlExpression of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualLogisticControlExpression = actual.getLogisticControlExpression();
if (!Objects.areEqual(actualLogisticControlExpression, logisticControlExpression)) {
failWithMessage(assertjErrorMessage, actual, logisticControlExpression, actualLogisticControlExpression);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's logisticControlString is equal to the given one.
* @param logisticControlString the given logisticControlString to compare the actual VecVariantConfiguration's logisticControlString to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantConfiguration's logisticControlString is not equal to the given one.
*/
public S hasLogisticControlString(String logisticControlString) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting logisticControlString of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualLogisticControlString = actual.getLogisticControlString();
if (!Objects.areEqual(actualLogisticControlString, logisticControlString)) {
failWithMessage(assertjErrorMessage, actual, logisticControlString, actualLogisticControlString);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's parentVariantConfigurationSpecification is equal to the given one.
* @param parentVariantConfigurationSpecification the given parentVariantConfigurationSpecification to compare the actual VecVariantConfiguration's parentVariantConfigurationSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecVariantConfiguration's parentVariantConfigurationSpecification is not equal to the given one.
*/
public S hasParentVariantConfigurationSpecification(VecVariantConfigurationSpecification parentVariantConfigurationSpecification) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentVariantConfigurationSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecVariantConfigurationSpecification actualParentVariantConfigurationSpecification = actual.getParentVariantConfigurationSpecification();
if (!Objects.areEqual(actualParentVariantConfigurationSpecification, parentVariantConfigurationSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentVariantConfigurationSpecification, actualParentVariantConfigurationSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's refConfigurableElement contains the given VecConfigurableElement elements.
* @param refConfigurableElement the given elements that should be contained in actual VecVariantConfiguration's refConfigurableElement.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refConfigurableElement does not contain all given VecConfigurableElement elements.
*/
public S hasRefConfigurableElement(VecConfigurableElement... refConfigurableElement) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// check that given VecConfigurableElement varargs is not null.
if (refConfigurableElement == null) failWithMessage("Expecting refConfigurableElement 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.getRefConfigurableElement(), refConfigurableElement);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's refConfigurableElement contains the given VecConfigurableElement elements in Collection.
* @param refConfigurableElement the given elements that should be contained in actual VecVariantConfiguration's refConfigurableElement.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refConfigurableElement does not contain all given VecConfigurableElement elements.
*/
public S hasRefConfigurableElement(java.util.Collection extends VecConfigurableElement> refConfigurableElement) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// check that given VecConfigurableElement collection is not null.
if (refConfigurableElement == null) {
failWithMessage("Expecting refConfigurableElement 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.getRefConfigurableElement(), refConfigurableElement.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's refConfigurableElement contains only the given VecConfigurableElement elements and nothing else in whatever order.
* @param refConfigurableElement the given elements that should be contained in actual VecVariantConfiguration's refConfigurableElement.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refConfigurableElement does not contain all given VecConfigurableElement elements.
*/
public S hasOnlyRefConfigurableElement(VecConfigurableElement... refConfigurableElement) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// check that given VecConfigurableElement varargs is not null.
if (refConfigurableElement == null) failWithMessage("Expecting refConfigurableElement 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.getRefConfigurableElement(), refConfigurableElement);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's refConfigurableElement contains only the given VecConfigurableElement elements in Collection and nothing else in whatever order.
* @param refConfigurableElement the given elements that should be contained in actual VecVariantConfiguration's refConfigurableElement.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refConfigurableElement does not contain all given VecConfigurableElement elements.
*/
public S hasOnlyRefConfigurableElement(java.util.Collection extends VecConfigurableElement> refConfigurableElement) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// check that given VecConfigurableElement collection is not null.
if (refConfigurableElement == null) {
failWithMessage("Expecting refConfigurableElement 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.getRefConfigurableElement(), refConfigurableElement.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's refConfigurableElement does not contain the given VecConfigurableElement elements.
*
* @param refConfigurableElement the given elements that should not be in actual VecVariantConfiguration's refConfigurableElement.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refConfigurableElement contains any given VecConfigurableElement elements.
*/
public S doesNotHaveRefConfigurableElement(VecConfigurableElement... refConfigurableElement) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// check that given VecConfigurableElement varargs is not null.
if (refConfigurableElement == null) failWithMessage("Expecting refConfigurableElement parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefConfigurableElement(), refConfigurableElement);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's refConfigurableElement does not contain the given VecConfigurableElement elements in Collection.
*
* @param refConfigurableElement the given elements that should not be in actual VecVariantConfiguration's refConfigurableElement.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refConfigurableElement contains any given VecConfigurableElement elements.
*/
public S doesNotHaveRefConfigurableElement(java.util.Collection extends VecConfigurableElement> refConfigurableElement) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// check that given VecConfigurableElement collection is not null.
if (refConfigurableElement == null) {
failWithMessage("Expecting refConfigurableElement 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.getRefConfigurableElement(), refConfigurableElement.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration has no refConfigurableElement.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refConfigurableElement is not empty.
*/
public S hasNoRefConfigurableElement() {
// check that actual VecVariantConfiguration 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 refConfigurableElement but had :\n <%s>";
// check
if (actual.getRefConfigurableElement().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefConfigurableElement());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's refVariantConfiguration contains the given VecVariantConfiguration elements.
* @param refVariantConfiguration the given elements that should be contained in actual VecVariantConfiguration's refVariantConfiguration.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refVariantConfiguration does not contain all given VecVariantConfiguration elements.
*/
public S hasRefVariantConfiguration(VecVariantConfiguration... refVariantConfiguration) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// check that given VecVariantConfiguration varargs is not null.
if (refVariantConfiguration == null) failWithMessage("Expecting refVariantConfiguration 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.getRefVariantConfiguration(), refVariantConfiguration);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's refVariantConfiguration contains the given VecVariantConfiguration elements in Collection.
* @param refVariantConfiguration the given elements that should be contained in actual VecVariantConfiguration's refVariantConfiguration.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refVariantConfiguration does not contain all given VecVariantConfiguration elements.
*/
public S hasRefVariantConfiguration(java.util.Collection extends VecVariantConfiguration> refVariantConfiguration) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// check that given VecVariantConfiguration collection is not null.
if (refVariantConfiguration == null) {
failWithMessage("Expecting refVariantConfiguration 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.getRefVariantConfiguration(), refVariantConfiguration.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's refVariantConfiguration contains only the given VecVariantConfiguration elements and nothing else in whatever order.
* @param refVariantConfiguration the given elements that should be contained in actual VecVariantConfiguration's refVariantConfiguration.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refVariantConfiguration does not contain all given VecVariantConfiguration elements.
*/
public S hasOnlyRefVariantConfiguration(VecVariantConfiguration... refVariantConfiguration) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// check that given VecVariantConfiguration varargs is not null.
if (refVariantConfiguration == null) failWithMessage("Expecting refVariantConfiguration 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.getRefVariantConfiguration(), refVariantConfiguration);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's refVariantConfiguration contains only the given VecVariantConfiguration elements in Collection and nothing else in whatever order.
* @param refVariantConfiguration the given elements that should be contained in actual VecVariantConfiguration's refVariantConfiguration.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refVariantConfiguration does not contain all given VecVariantConfiguration elements.
*/
public S hasOnlyRefVariantConfiguration(java.util.Collection extends VecVariantConfiguration> refVariantConfiguration) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// check that given VecVariantConfiguration collection is not null.
if (refVariantConfiguration == null) {
failWithMessage("Expecting refVariantConfiguration 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.getRefVariantConfiguration(), refVariantConfiguration.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's refVariantConfiguration does not contain the given VecVariantConfiguration elements.
*
* @param refVariantConfiguration the given elements that should not be in actual VecVariantConfiguration's refVariantConfiguration.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refVariantConfiguration contains any given VecVariantConfiguration elements.
*/
public S doesNotHaveRefVariantConfiguration(VecVariantConfiguration... refVariantConfiguration) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// check that given VecVariantConfiguration varargs is not null.
if (refVariantConfiguration == null) failWithMessage("Expecting refVariantConfiguration parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefVariantConfiguration(), refVariantConfiguration);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration's refVariantConfiguration does not contain the given VecVariantConfiguration elements in Collection.
*
* @param refVariantConfiguration the given elements that should not be in actual VecVariantConfiguration's refVariantConfiguration.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refVariantConfiguration contains any given VecVariantConfiguration elements.
*/
public S doesNotHaveRefVariantConfiguration(java.util.Collection extends VecVariantConfiguration> refVariantConfiguration) {
// check that actual VecVariantConfiguration we want to make assertions on is not null.
isNotNull();
// check that given VecVariantConfiguration collection is not null.
if (refVariantConfiguration == null) {
failWithMessage("Expecting refVariantConfiguration 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.getRefVariantConfiguration(), refVariantConfiguration.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecVariantConfiguration has no refVariantConfiguration.
* @return this assertion object.
* @throws AssertionError if the actual VecVariantConfiguration's refVariantConfiguration is not empty.
*/
public S hasNoRefVariantConfiguration() {
// check that actual VecVariantConfiguration 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 refVariantConfiguration but had :\n <%s>";
// check
if (actual.getRefVariantConfiguration().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefVariantConfiguration());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy