
com.foursoft.vecmodel.vec120.AbstractVecWireGroupingAssert 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 VecWireGrouping} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecWireGroupingAssert, A extends VecWireGrouping> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecWireGroupingAssert}
to make assertions on actual VecWireGrouping.
* @param actual the VecWireGrouping we want to make assertions on.
*/
protected AbstractVecWireGroupingAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecWireGrouping's connectionGroup is equal to the given one.
* @param connectionGroup the given connectionGroup to compare the actual VecWireGrouping's connectionGroup to.
* @return this assertion object.
* @throws AssertionError - if the actual VecWireGrouping's connectionGroup is not equal to the given one.
*/
public S hasConnectionGroup(VecConnectionGroup connectionGroup) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting connectionGroup of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecConnectionGroup actualConnectionGroup = actual.getConnectionGroup();
if (!Objects.areEqual(actualConnectionGroup, connectionGroup)) {
failWithMessage(assertjErrorMessage, actual, connectionGroup, actualConnectionGroup);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's containedWireGroupings contains the given VecWireGrouping elements.
* @param containedWireGroupings the given elements that should be contained in actual VecWireGrouping's containedWireGroupings.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's containedWireGroupings does not contain all given VecWireGrouping elements.
*/
public S hasContainedWireGroupings(VecWireGrouping... containedWireGroupings) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// check that given VecWireGrouping varargs is not null.
if (containedWireGroupings == null) failWithMessage("Expecting containedWireGroupings 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.getContainedWireGroupings(), containedWireGroupings);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's containedWireGroupings contains the given VecWireGrouping elements in Collection.
* @param containedWireGroupings the given elements that should be contained in actual VecWireGrouping's containedWireGroupings.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's containedWireGroupings does not contain all given VecWireGrouping elements.
*/
public S hasContainedWireGroupings(java.util.Collection extends VecWireGrouping> containedWireGroupings) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// check that given VecWireGrouping collection is not null.
if (containedWireGroupings == null) {
failWithMessage("Expecting containedWireGroupings 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.getContainedWireGroupings(), containedWireGroupings.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's containedWireGroupings contains only the given VecWireGrouping elements and nothing else in whatever order.
* @param containedWireGroupings the given elements that should be contained in actual VecWireGrouping's containedWireGroupings.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's containedWireGroupings does not contain all given VecWireGrouping elements.
*/
public S hasOnlyContainedWireGroupings(VecWireGrouping... containedWireGroupings) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// check that given VecWireGrouping varargs is not null.
if (containedWireGroupings == null) failWithMessage("Expecting containedWireGroupings 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.getContainedWireGroupings(), containedWireGroupings);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's containedWireGroupings contains only the given VecWireGrouping elements in Collection and nothing else in whatever order.
* @param containedWireGroupings the given elements that should be contained in actual VecWireGrouping's containedWireGroupings.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's containedWireGroupings does not contain all given VecWireGrouping elements.
*/
public S hasOnlyContainedWireGroupings(java.util.Collection extends VecWireGrouping> containedWireGroupings) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// check that given VecWireGrouping collection is not null.
if (containedWireGroupings == null) {
failWithMessage("Expecting containedWireGroupings 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.getContainedWireGroupings(), containedWireGroupings.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's containedWireGroupings does not contain the given VecWireGrouping elements.
*
* @param containedWireGroupings the given elements that should not be in actual VecWireGrouping's containedWireGroupings.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's containedWireGroupings contains any given VecWireGrouping elements.
*/
public S doesNotHaveContainedWireGroupings(VecWireGrouping... containedWireGroupings) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// check that given VecWireGrouping varargs is not null.
if (containedWireGroupings == null) failWithMessage("Expecting containedWireGroupings parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getContainedWireGroupings(), containedWireGroupings);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's containedWireGroupings does not contain the given VecWireGrouping elements in Collection.
*
* @param containedWireGroupings the given elements that should not be in actual VecWireGrouping's containedWireGroupings.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's containedWireGroupings contains any given VecWireGrouping elements.
*/
public S doesNotHaveContainedWireGroupings(java.util.Collection extends VecWireGrouping> containedWireGroupings) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// check that given VecWireGrouping collection is not null.
if (containedWireGroupings == null) {
failWithMessage("Expecting containedWireGroupings 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.getContainedWireGroupings(), containedWireGroupings.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping has no containedWireGroupings.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's containedWireGroupings is not empty.
*/
public S hasNoContainedWireGroupings() {
// check that actual VecWireGrouping 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 containedWireGroupings but had :\n <%s>";
// check
if (actual.getContainedWireGroupings().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getContainedWireGroupings());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's identification is equal to the given one.
* @param identification the given identification to compare the actual VecWireGrouping's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecWireGrouping's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecWireGrouping 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 VecWireGrouping's parentWireGrouping is equal to the given one.
* @param parentWireGrouping the given parentWireGrouping to compare the actual VecWireGrouping's parentWireGrouping to.
* @return this assertion object.
* @throws AssertionError - if the actual VecWireGrouping's parentWireGrouping is not equal to the given one.
*/
public S hasParentWireGrouping(VecWireGrouping parentWireGrouping) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentWireGrouping of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecWireGrouping actualParentWireGrouping = actual.getParentWireGrouping();
if (!Objects.areEqual(actualParentWireGrouping, parentWireGrouping)) {
failWithMessage(assertjErrorMessage, actual, parentWireGrouping, actualParentWireGrouping);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's parentWireGroupingSpecification is equal to the given one.
* @param parentWireGroupingSpecification the given parentWireGroupingSpecification to compare the actual VecWireGrouping's parentWireGroupingSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecWireGrouping's parentWireGroupingSpecification is not equal to the given one.
*/
public S hasParentWireGroupingSpecification(VecWireGroupingSpecification parentWireGroupingSpecification) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentWireGroupingSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecWireGroupingSpecification actualParentWireGroupingSpecification = actual.getParentWireGroupingSpecification();
if (!Objects.areEqual(actualParentWireGroupingSpecification, parentWireGroupingSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentWireGroupingSpecification, actualParentWireGroupingSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's relatedWireElementReference contains the given VecWireElementReference elements.
* @param relatedWireElementReference the given elements that should be contained in actual VecWireGrouping's relatedWireElementReference.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's relatedWireElementReference does not contain all given VecWireElementReference elements.
*/
public S hasRelatedWireElementReference(VecWireElementReference... relatedWireElementReference) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// check that given VecWireElementReference varargs is not null.
if (relatedWireElementReference == null) failWithMessage("Expecting relatedWireElementReference 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.getRelatedWireElementReference(), relatedWireElementReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's relatedWireElementReference contains the given VecWireElementReference elements in Collection.
* @param relatedWireElementReference the given elements that should be contained in actual VecWireGrouping's relatedWireElementReference.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's relatedWireElementReference does not contain all given VecWireElementReference elements.
*/
public S hasRelatedWireElementReference(java.util.Collection extends VecWireElementReference> relatedWireElementReference) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// check that given VecWireElementReference collection is not null.
if (relatedWireElementReference == null) {
failWithMessage("Expecting relatedWireElementReference 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.getRelatedWireElementReference(), relatedWireElementReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's relatedWireElementReference contains only the given VecWireElementReference elements and nothing else in whatever order.
* @param relatedWireElementReference the given elements that should be contained in actual VecWireGrouping's relatedWireElementReference.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's relatedWireElementReference does not contain all given VecWireElementReference elements.
*/
public S hasOnlyRelatedWireElementReference(VecWireElementReference... relatedWireElementReference) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// check that given VecWireElementReference varargs is not null.
if (relatedWireElementReference == null) failWithMessage("Expecting relatedWireElementReference 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.getRelatedWireElementReference(), relatedWireElementReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's relatedWireElementReference contains only the given VecWireElementReference elements in Collection and nothing else in whatever order.
* @param relatedWireElementReference the given elements that should be contained in actual VecWireGrouping's relatedWireElementReference.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's relatedWireElementReference does not contain all given VecWireElementReference elements.
*/
public S hasOnlyRelatedWireElementReference(java.util.Collection extends VecWireElementReference> relatedWireElementReference) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// check that given VecWireElementReference collection is not null.
if (relatedWireElementReference == null) {
failWithMessage("Expecting relatedWireElementReference 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.getRelatedWireElementReference(), relatedWireElementReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's relatedWireElementReference does not contain the given VecWireElementReference elements.
*
* @param relatedWireElementReference the given elements that should not be in actual VecWireGrouping's relatedWireElementReference.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's relatedWireElementReference contains any given VecWireElementReference elements.
*/
public S doesNotHaveRelatedWireElementReference(VecWireElementReference... relatedWireElementReference) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// check that given VecWireElementReference varargs is not null.
if (relatedWireElementReference == null) failWithMessage("Expecting relatedWireElementReference parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRelatedWireElementReference(), relatedWireElementReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's relatedWireElementReference does not contain the given VecWireElementReference elements in Collection.
*
* @param relatedWireElementReference the given elements that should not be in actual VecWireGrouping's relatedWireElementReference.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's relatedWireElementReference contains any given VecWireElementReference elements.
*/
public S doesNotHaveRelatedWireElementReference(java.util.Collection extends VecWireElementReference> relatedWireElementReference) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// check that given VecWireElementReference collection is not null.
if (relatedWireElementReference == null) {
failWithMessage("Expecting relatedWireElementReference 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.getRelatedWireElementReference(), relatedWireElementReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping has no relatedWireElementReference.
* @return this assertion object.
* @throws AssertionError if the actual VecWireGrouping's relatedWireElementReference is not empty.
*/
public S hasNoRelatedWireElementReference() {
// check that actual VecWireGrouping 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 relatedWireElementReference but had :\n <%s>";
// check
if (actual.getRelatedWireElementReference().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRelatedWireElementReference());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireGrouping's wireGroupSpecification is equal to the given one.
* @param wireGroupSpecification the given wireGroupSpecification to compare the actual VecWireGrouping's wireGroupSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecWireGrouping's wireGroupSpecification is not equal to the given one.
*/
public S hasWireGroupSpecification(VecWireGroupSpecification wireGroupSpecification) {
// check that actual VecWireGrouping we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting wireGroupSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecWireGroupSpecification actualWireGroupSpecification = actual.getWireGroupSpecification();
if (!Objects.areEqual(actualWireGroupSpecification, wireGroupSpecification)) {
failWithMessage(assertjErrorMessage, actual, wireGroupSpecification, actualWireGroupSpecification);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy