
com.foursoft.vecmodel.vec120.AbstractVecSegmentConnectionPointAssert 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 VecSegmentConnectionPoint} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecSegmentConnectionPointAssert, A extends VecSegmentConnectionPoint> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecSegmentConnectionPointAssert}
to make assertions on actual VecSegmentConnectionPoint.
* @param actual the VecSegmentConnectionPoint we want to make assertions on.
*/
protected AbstractVecSegmentConnectionPointAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecSegmentConnectionPoint's cavityAddOns contains the given VecCavityAddOn elements.
* @param cavityAddOns the given elements that should be contained in actual VecSegmentConnectionPoint's cavityAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's cavityAddOns does not contain all given VecCavityAddOn elements.
*/
public S hasCavityAddOns(VecCavityAddOn... cavityAddOns) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecCavityAddOn varargs is not null.
if (cavityAddOns == null) failWithMessage("Expecting cavityAddOns 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.getCavityAddOns(), cavityAddOns);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's cavityAddOns contains the given VecCavityAddOn elements in Collection.
* @param cavityAddOns the given elements that should be contained in actual VecSegmentConnectionPoint's cavityAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's cavityAddOns does not contain all given VecCavityAddOn elements.
*/
public S hasCavityAddOns(java.util.Collection extends VecCavityAddOn> cavityAddOns) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecCavityAddOn collection is not null.
if (cavityAddOns == null) {
failWithMessage("Expecting cavityAddOns 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.getCavityAddOns(), cavityAddOns.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's cavityAddOns contains only the given VecCavityAddOn elements and nothing else in whatever order.
* @param cavityAddOns the given elements that should be contained in actual VecSegmentConnectionPoint's cavityAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's cavityAddOns does not contain all given VecCavityAddOn elements.
*/
public S hasOnlyCavityAddOns(VecCavityAddOn... cavityAddOns) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecCavityAddOn varargs is not null.
if (cavityAddOns == null) failWithMessage("Expecting cavityAddOns 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.getCavityAddOns(), cavityAddOns);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's cavityAddOns contains only the given VecCavityAddOn elements in Collection and nothing else in whatever order.
* @param cavityAddOns the given elements that should be contained in actual VecSegmentConnectionPoint's cavityAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's cavityAddOns does not contain all given VecCavityAddOn elements.
*/
public S hasOnlyCavityAddOns(java.util.Collection extends VecCavityAddOn> cavityAddOns) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecCavityAddOn collection is not null.
if (cavityAddOns == null) {
failWithMessage("Expecting cavityAddOns 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.getCavityAddOns(), cavityAddOns.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's cavityAddOns does not contain the given VecCavityAddOn elements.
*
* @param cavityAddOns the given elements that should not be in actual VecSegmentConnectionPoint's cavityAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's cavityAddOns contains any given VecCavityAddOn elements.
*/
public S doesNotHaveCavityAddOns(VecCavityAddOn... cavityAddOns) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecCavityAddOn varargs is not null.
if (cavityAddOns == null) failWithMessage("Expecting cavityAddOns parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getCavityAddOns(), cavityAddOns);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's cavityAddOns does not contain the given VecCavityAddOn elements in Collection.
*
* @param cavityAddOns the given elements that should not be in actual VecSegmentConnectionPoint's cavityAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's cavityAddOns contains any given VecCavityAddOn elements.
*/
public S doesNotHaveCavityAddOns(java.util.Collection extends VecCavityAddOn> cavityAddOns) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecCavityAddOn collection is not null.
if (cavityAddOns == null) {
failWithMessage("Expecting cavityAddOns 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.getCavityAddOns(), cavityAddOns.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint has no cavityAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's cavityAddOns is not empty.
*/
public S hasNoCavityAddOns() {
// check that actual VecSegmentConnectionPoint 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 cavityAddOns but had :\n <%s>";
// check
if (actual.getCavityAddOns().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getCavityAddOns());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's identification is equal to the given one.
* @param identification the given identification to compare the actual VecSegmentConnectionPoint's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSegmentConnectionPoint's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecSegmentConnectionPoint 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 VecSegmentConnectionPoint's modularSlotAddOns contains the given VecModularSlotAddOn elements.
* @param modularSlotAddOns the given elements that should be contained in actual VecSegmentConnectionPoint's modularSlotAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's modularSlotAddOns does not contain all given VecModularSlotAddOn elements.
*/
public S hasModularSlotAddOns(VecModularSlotAddOn... modularSlotAddOns) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecModularSlotAddOn varargs is not null.
if (modularSlotAddOns == null) failWithMessage("Expecting modularSlotAddOns 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.getModularSlotAddOns(), modularSlotAddOns);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's modularSlotAddOns contains the given VecModularSlotAddOn elements in Collection.
* @param modularSlotAddOns the given elements that should be contained in actual VecSegmentConnectionPoint's modularSlotAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's modularSlotAddOns does not contain all given VecModularSlotAddOn elements.
*/
public S hasModularSlotAddOns(java.util.Collection extends VecModularSlotAddOn> modularSlotAddOns) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecModularSlotAddOn collection is not null.
if (modularSlotAddOns == null) {
failWithMessage("Expecting modularSlotAddOns 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.getModularSlotAddOns(), modularSlotAddOns.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's modularSlotAddOns contains only the given VecModularSlotAddOn elements and nothing else in whatever order.
* @param modularSlotAddOns the given elements that should be contained in actual VecSegmentConnectionPoint's modularSlotAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's modularSlotAddOns does not contain all given VecModularSlotAddOn elements.
*/
public S hasOnlyModularSlotAddOns(VecModularSlotAddOn... modularSlotAddOns) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecModularSlotAddOn varargs is not null.
if (modularSlotAddOns == null) failWithMessage("Expecting modularSlotAddOns 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.getModularSlotAddOns(), modularSlotAddOns);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's modularSlotAddOns contains only the given VecModularSlotAddOn elements in Collection and nothing else in whatever order.
* @param modularSlotAddOns the given elements that should be contained in actual VecSegmentConnectionPoint's modularSlotAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's modularSlotAddOns does not contain all given VecModularSlotAddOn elements.
*/
public S hasOnlyModularSlotAddOns(java.util.Collection extends VecModularSlotAddOn> modularSlotAddOns) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecModularSlotAddOn collection is not null.
if (modularSlotAddOns == null) {
failWithMessage("Expecting modularSlotAddOns 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.getModularSlotAddOns(), modularSlotAddOns.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's modularSlotAddOns does not contain the given VecModularSlotAddOn elements.
*
* @param modularSlotAddOns the given elements that should not be in actual VecSegmentConnectionPoint's modularSlotAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's modularSlotAddOns contains any given VecModularSlotAddOn elements.
*/
public S doesNotHaveModularSlotAddOns(VecModularSlotAddOn... modularSlotAddOns) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecModularSlotAddOn varargs is not null.
if (modularSlotAddOns == null) failWithMessage("Expecting modularSlotAddOns parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getModularSlotAddOns(), modularSlotAddOns);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's modularSlotAddOns does not contain the given VecModularSlotAddOn elements in Collection.
*
* @param modularSlotAddOns the given elements that should not be in actual VecSegmentConnectionPoint's modularSlotAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's modularSlotAddOns contains any given VecModularSlotAddOn elements.
*/
public S doesNotHaveModularSlotAddOns(java.util.Collection extends VecModularSlotAddOn> modularSlotAddOns) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecModularSlotAddOn collection is not null.
if (modularSlotAddOns == null) {
failWithMessage("Expecting modularSlotAddOns 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.getModularSlotAddOns(), modularSlotAddOns.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint has no modularSlotAddOns.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's modularSlotAddOns is not empty.
*/
public S hasNoModularSlotAddOns() {
// check that actual VecSegmentConnectionPoint 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 modularSlotAddOns but had :\n <%s>";
// check
if (actual.getModularSlotAddOns().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getModularSlotAddOns());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's parentConnectorHousingSpecification is equal to the given one.
* @param parentConnectorHousingSpecification the given parentConnectorHousingSpecification to compare the actual VecSegmentConnectionPoint's parentConnectorHousingSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSegmentConnectionPoint's parentConnectorHousingSpecification is not equal to the given one.
*/
public S hasParentConnectorHousingSpecification(VecConnectorHousingSpecification parentConnectorHousingSpecification) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentConnectorHousingSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecConnectorHousingSpecification actualParentConnectorHousingSpecification = actual.getParentConnectorHousingSpecification();
if (!Objects.areEqual(actualParentConnectorHousingSpecification, parentConnectorHousingSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentConnectorHousingSpecification, actualParentConnectorHousingSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's placementPoint is equal to the given one.
* @param placementPoint the given placementPoint to compare the actual VecSegmentConnectionPoint's placementPoint to.
* @return this assertion object.
* @throws AssertionError - if the actual VecSegmentConnectionPoint's placementPoint is not equal to the given one.
*/
public S hasPlacementPoint(VecPlacementPoint placementPoint) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting placementPoint of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecPlacementPoint actualPlacementPoint = actual.getPlacementPoint();
if (!Objects.areEqual(actualPlacementPoint, placementPoint)) {
failWithMessage(assertjErrorMessage, actual, placementPoint, actualPlacementPoint);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's reachableCavities contains the given VecCavity elements.
* @param reachableCavities the given elements that should be contained in actual VecSegmentConnectionPoint's reachableCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's reachableCavities does not contain all given VecCavity elements.
*/
public S hasReachableCavities(VecCavity... reachableCavities) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecCavity varargs is not null.
if (reachableCavities == null) failWithMessage("Expecting reachableCavities 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.getReachableCavities(), reachableCavities);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's reachableCavities contains the given VecCavity elements in Collection.
* @param reachableCavities the given elements that should be contained in actual VecSegmentConnectionPoint's reachableCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's reachableCavities does not contain all given VecCavity elements.
*/
public S hasReachableCavities(java.util.Collection extends VecCavity> reachableCavities) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecCavity collection is not null.
if (reachableCavities == null) {
failWithMessage("Expecting reachableCavities 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.getReachableCavities(), reachableCavities.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's reachableCavities contains only the given VecCavity elements and nothing else in whatever order.
* @param reachableCavities the given elements that should be contained in actual VecSegmentConnectionPoint's reachableCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's reachableCavities does not contain all given VecCavity elements.
*/
public S hasOnlyReachableCavities(VecCavity... reachableCavities) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecCavity varargs is not null.
if (reachableCavities == null) failWithMessage("Expecting reachableCavities 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.getReachableCavities(), reachableCavities);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's reachableCavities contains only the given VecCavity elements in Collection and nothing else in whatever order.
* @param reachableCavities the given elements that should be contained in actual VecSegmentConnectionPoint's reachableCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's reachableCavities does not contain all given VecCavity elements.
*/
public S hasOnlyReachableCavities(java.util.Collection extends VecCavity> reachableCavities) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecCavity collection is not null.
if (reachableCavities == null) {
failWithMessage("Expecting reachableCavities 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.getReachableCavities(), reachableCavities.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's reachableCavities does not contain the given VecCavity elements.
*
* @param reachableCavities the given elements that should not be in actual VecSegmentConnectionPoint's reachableCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's reachableCavities contains any given VecCavity elements.
*/
public S doesNotHaveReachableCavities(VecCavity... reachableCavities) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecCavity varargs is not null.
if (reachableCavities == null) failWithMessage("Expecting reachableCavities parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getReachableCavities(), reachableCavities);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint's reachableCavities does not contain the given VecCavity elements in Collection.
*
* @param reachableCavities the given elements that should not be in actual VecSegmentConnectionPoint's reachableCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's reachableCavities contains any given VecCavity elements.
*/
public S doesNotHaveReachableCavities(java.util.Collection extends VecCavity> reachableCavities) {
// check that actual VecSegmentConnectionPoint we want to make assertions on is not null.
isNotNull();
// check that given VecCavity collection is not null.
if (reachableCavities == null) {
failWithMessage("Expecting reachableCavities 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.getReachableCavities(), reachableCavities.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecSegmentConnectionPoint has no reachableCavities.
* @return this assertion object.
* @throws AssertionError if the actual VecSegmentConnectionPoint's reachableCavities is not empty.
*/
public S hasNoReachableCavities() {
// check that actual VecSegmentConnectionPoint 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 reachableCavities but had :\n <%s>";
// check
if (actual.getReachableCavities().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getReachableCavities());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy