
com.foursoft.vecmodel.vec120.AbstractVecTerminalReceptionAssert 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 VecTerminalReception} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecTerminalReceptionAssert, A extends VecTerminalReception> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecTerminalReceptionAssert}
to make assertions on actual VecTerminalReception.
* @param actual the VecTerminalReception we want to make assertions on.
*/
protected AbstractVecTerminalReceptionAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecTerminalReception's gender is equal to the given one.
* @param gender the given gender to compare the actual VecTerminalReception's gender to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTerminalReception's gender is not equal to the given one.
*/
public S hasGender(String gender) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting gender of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualGender = actual.getGender();
if (!Objects.areEqual(actualGender, gender)) {
failWithMessage(assertjErrorMessage, actual, gender, actualGender);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's identification is equal to the given one.
* @param identification the given identification to compare the actual VecTerminalReception's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTerminalReception's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecTerminalReception 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 VecTerminalReception's parentTerminalSpecification is equal to the given one.
* @param parentTerminalSpecification the given parentTerminalSpecification to compare the actual VecTerminalReception's parentTerminalSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTerminalReception's parentTerminalSpecification is not equal to the given one.
*/
public S hasParentTerminalSpecification(VecTerminalSpecification parentTerminalSpecification) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentTerminalSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecTerminalSpecification actualParentTerminalSpecification = actual.getParentTerminalSpecification();
if (!Objects.areEqual(actualParentTerminalSpecification, parentTerminalSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentTerminalSpecification, actualParentTerminalSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's refInternalTerminalConnection contains the given VecInternalTerminalConnection elements.
* @param refInternalTerminalConnection the given elements that should be contained in actual VecTerminalReception's refInternalTerminalConnection.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refInternalTerminalConnection does not contain all given VecInternalTerminalConnection elements.
*/
public S hasRefInternalTerminalConnection(VecInternalTerminalConnection... refInternalTerminalConnection) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// check that given VecInternalTerminalConnection varargs is not null.
if (refInternalTerminalConnection == null) failWithMessage("Expecting refInternalTerminalConnection 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.getRefInternalTerminalConnection(), refInternalTerminalConnection);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's refInternalTerminalConnection contains the given VecInternalTerminalConnection elements in Collection.
* @param refInternalTerminalConnection the given elements that should be contained in actual VecTerminalReception's refInternalTerminalConnection.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refInternalTerminalConnection does not contain all given VecInternalTerminalConnection elements.
*/
public S hasRefInternalTerminalConnection(java.util.Collection extends VecInternalTerminalConnection> refInternalTerminalConnection) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// check that given VecInternalTerminalConnection collection is not null.
if (refInternalTerminalConnection == null) {
failWithMessage("Expecting refInternalTerminalConnection 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.getRefInternalTerminalConnection(), refInternalTerminalConnection.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's refInternalTerminalConnection contains only the given VecInternalTerminalConnection elements and nothing else in whatever order.
* @param refInternalTerminalConnection the given elements that should be contained in actual VecTerminalReception's refInternalTerminalConnection.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refInternalTerminalConnection does not contain all given VecInternalTerminalConnection elements.
*/
public S hasOnlyRefInternalTerminalConnection(VecInternalTerminalConnection... refInternalTerminalConnection) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// check that given VecInternalTerminalConnection varargs is not null.
if (refInternalTerminalConnection == null) failWithMessage("Expecting refInternalTerminalConnection 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.getRefInternalTerminalConnection(), refInternalTerminalConnection);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's refInternalTerminalConnection contains only the given VecInternalTerminalConnection elements in Collection and nothing else in whatever order.
* @param refInternalTerminalConnection the given elements that should be contained in actual VecTerminalReception's refInternalTerminalConnection.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refInternalTerminalConnection does not contain all given VecInternalTerminalConnection elements.
*/
public S hasOnlyRefInternalTerminalConnection(java.util.Collection extends VecInternalTerminalConnection> refInternalTerminalConnection) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// check that given VecInternalTerminalConnection collection is not null.
if (refInternalTerminalConnection == null) {
failWithMessage("Expecting refInternalTerminalConnection 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.getRefInternalTerminalConnection(), refInternalTerminalConnection.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's refInternalTerminalConnection does not contain the given VecInternalTerminalConnection elements.
*
* @param refInternalTerminalConnection the given elements that should not be in actual VecTerminalReception's refInternalTerminalConnection.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refInternalTerminalConnection contains any given VecInternalTerminalConnection elements.
*/
public S doesNotHaveRefInternalTerminalConnection(VecInternalTerminalConnection... refInternalTerminalConnection) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// check that given VecInternalTerminalConnection varargs is not null.
if (refInternalTerminalConnection == null) failWithMessage("Expecting refInternalTerminalConnection parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefInternalTerminalConnection(), refInternalTerminalConnection);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's refInternalTerminalConnection does not contain the given VecInternalTerminalConnection elements in Collection.
*
* @param refInternalTerminalConnection the given elements that should not be in actual VecTerminalReception's refInternalTerminalConnection.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refInternalTerminalConnection contains any given VecInternalTerminalConnection elements.
*/
public S doesNotHaveRefInternalTerminalConnection(java.util.Collection extends VecInternalTerminalConnection> refInternalTerminalConnection) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// check that given VecInternalTerminalConnection collection is not null.
if (refInternalTerminalConnection == null) {
failWithMessage("Expecting refInternalTerminalConnection 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.getRefInternalTerminalConnection(), refInternalTerminalConnection.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception has no refInternalTerminalConnection.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refInternalTerminalConnection is not empty.
*/
public S hasNoRefInternalTerminalConnection() {
// check that actual VecTerminalReception 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 refInternalTerminalConnection but had :\n <%s>";
// check
if (actual.getRefInternalTerminalConnection().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefInternalTerminalConnection());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's refTerminalReceptionReference contains the given VecTerminalReceptionReference elements.
* @param refTerminalReceptionReference the given elements that should be contained in actual VecTerminalReception's refTerminalReceptionReference.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refTerminalReceptionReference does not contain all given VecTerminalReceptionReference elements.
*/
public S hasRefTerminalReceptionReference(VecTerminalReceptionReference... refTerminalReceptionReference) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// check that given VecTerminalReceptionReference varargs is not null.
if (refTerminalReceptionReference == null) failWithMessage("Expecting refTerminalReceptionReference 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.getRefTerminalReceptionReference(), refTerminalReceptionReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's refTerminalReceptionReference contains the given VecTerminalReceptionReference elements in Collection.
* @param refTerminalReceptionReference the given elements that should be contained in actual VecTerminalReception's refTerminalReceptionReference.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refTerminalReceptionReference does not contain all given VecTerminalReceptionReference elements.
*/
public S hasRefTerminalReceptionReference(java.util.Collection extends VecTerminalReceptionReference> refTerminalReceptionReference) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// check that given VecTerminalReceptionReference collection is not null.
if (refTerminalReceptionReference == null) {
failWithMessage("Expecting refTerminalReceptionReference 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.getRefTerminalReceptionReference(), refTerminalReceptionReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's refTerminalReceptionReference contains only the given VecTerminalReceptionReference elements and nothing else in whatever order.
* @param refTerminalReceptionReference the given elements that should be contained in actual VecTerminalReception's refTerminalReceptionReference.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refTerminalReceptionReference does not contain all given VecTerminalReceptionReference elements.
*/
public S hasOnlyRefTerminalReceptionReference(VecTerminalReceptionReference... refTerminalReceptionReference) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// check that given VecTerminalReceptionReference varargs is not null.
if (refTerminalReceptionReference == null) failWithMessage("Expecting refTerminalReceptionReference 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.getRefTerminalReceptionReference(), refTerminalReceptionReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's refTerminalReceptionReference contains only the given VecTerminalReceptionReference elements in Collection and nothing else in whatever order.
* @param refTerminalReceptionReference the given elements that should be contained in actual VecTerminalReception's refTerminalReceptionReference.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refTerminalReceptionReference does not contain all given VecTerminalReceptionReference elements.
*/
public S hasOnlyRefTerminalReceptionReference(java.util.Collection extends VecTerminalReceptionReference> refTerminalReceptionReference) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// check that given VecTerminalReceptionReference collection is not null.
if (refTerminalReceptionReference == null) {
failWithMessage("Expecting refTerminalReceptionReference 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.getRefTerminalReceptionReference(), refTerminalReceptionReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's refTerminalReceptionReference does not contain the given VecTerminalReceptionReference elements.
*
* @param refTerminalReceptionReference the given elements that should not be in actual VecTerminalReception's refTerminalReceptionReference.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refTerminalReceptionReference contains any given VecTerminalReceptionReference elements.
*/
public S doesNotHaveRefTerminalReceptionReference(VecTerminalReceptionReference... refTerminalReceptionReference) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// check that given VecTerminalReceptionReference varargs is not null.
if (refTerminalReceptionReference == null) failWithMessage("Expecting refTerminalReceptionReference parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefTerminalReceptionReference(), refTerminalReceptionReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's refTerminalReceptionReference does not contain the given VecTerminalReceptionReference elements in Collection.
*
* @param refTerminalReceptionReference the given elements that should not be in actual VecTerminalReception's refTerminalReceptionReference.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refTerminalReceptionReference contains any given VecTerminalReceptionReference elements.
*/
public S doesNotHaveRefTerminalReceptionReference(java.util.Collection extends VecTerminalReceptionReference> refTerminalReceptionReference) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// check that given VecTerminalReceptionReference collection is not null.
if (refTerminalReceptionReference == null) {
failWithMessage("Expecting refTerminalReceptionReference 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.getRefTerminalReceptionReference(), refTerminalReceptionReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception has no refTerminalReceptionReference.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalReception's refTerminalReceptionReference is not empty.
*/
public S hasNoRefTerminalReceptionReference() {
// check that actual VecTerminalReception 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 refTerminalReceptionReference but had :\n <%s>";
// check
if (actual.getRefTerminalReceptionReference().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefTerminalReceptionReference());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalReception's terminalReceptionSpecification is equal to the given one.
* @param terminalReceptionSpecification the given terminalReceptionSpecification to compare the actual VecTerminalReception's terminalReceptionSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTerminalReception's terminalReceptionSpecification is not equal to the given one.
*/
public S hasTerminalReceptionSpecification(VecTerminalReceptionSpecification terminalReceptionSpecification) {
// check that actual VecTerminalReception we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting terminalReceptionSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecTerminalReceptionSpecification actualTerminalReceptionSpecification = actual.getTerminalReceptionSpecification();
if (!Objects.areEqual(actualTerminalReceptionSpecification, terminalReceptionSpecification)) {
failWithMessage(assertjErrorMessage, actual, terminalReceptionSpecification, actualTerminalReceptionSpecification);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy