
com.foursoft.vecmodel.vec120.AbstractVecConnectorHousingSpecificationAssert 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 VecConnectorHousingSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecConnectorHousingSpecificationAssert, A extends VecConnectorHousingSpecification> extends AbstractVecPartOrUsageRelatedSpecificationAssert {
/**
* Creates a new {@link AbstractVecConnectorHousingSpecificationAssert}
to make assertions on actual VecConnectorHousingSpecification.
* @param actual the VecConnectorHousingSpecification we want to make assertions on.
*/
protected AbstractVecConnectorHousingSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecConnectorHousingSpecification's averageWireLengthAddOn is equal to the given one.
* @param averageWireLengthAddOn the given averageWireLengthAddOn to compare the actual VecConnectorHousingSpecification's averageWireLengthAddOn to.
* @return this assertion object.
* @throws AssertionError - if the actual VecConnectorHousingSpecification's averageWireLengthAddOn is not equal to the given one.
*/
public S hasAverageWireLengthAddOn(VecNumericalValue averageWireLengthAddOn) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting averageWireLengthAddOn of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualAverageWireLengthAddOn = actual.getAverageWireLengthAddOn();
if (!Objects.areEqual(actualAverageWireLengthAddOn, averageWireLengthAddOn)) {
failWithMessage(assertjErrorMessage, actual, averageWireLengthAddOn, actualAverageWireLengthAddOn);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's coding is equal to the given one.
* @param coding the given coding to compare the actual VecConnectorHousingSpecification's coding to.
* @return this assertion object.
* @throws AssertionError - if the actual VecConnectorHousingSpecification's coding is not equal to the given one.
*/
public S hasCoding(VecCoding coding) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting coding of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecCoding actualCoding = actual.getCoding();
if (!Objects.areEqual(actualCoding, coding)) {
failWithMessage(assertjErrorMessage, actual, coding, actualCoding);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification is connector position assurance.
* @return this assertion object.
* @throws AssertionError - if the actual VecConnectorHousingSpecification is not connector position assurance.
*/
public S isConnectorPositionAssurance() {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// null safe check
if (Objects.areEqual(Boolean.FALSE, actual.isConnectorPositionAssurance())) {
failWithMessage("\nExpecting that actual VecConnectorHousingSpecification is connector position assurance but is not.");
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification is not connector position assurance.
* @return this assertion object.
* @throws AssertionError - if the actual VecConnectorHousingSpecification is connector position assurance.
*/
public S isNotConnectorPositionAssurance() {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// null safe check
if (Objects.areEqual(Boolean.TRUE, actual.isConnectorPositionAssurance())) {
failWithMessage("\nExpecting that actual VecConnectorHousingSpecification is not connector position assurance but is.");
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification is coupleable.
* @return this assertion object.
* @throws AssertionError - if the actual VecConnectorHousingSpecification is not coupleable.
*/
public S isCoupleable() {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// null safe check
if (Objects.areEqual(Boolean.FALSE, actual.isCoupleable())) {
failWithMessage("\nExpecting that actual VecConnectorHousingSpecification is coupleable but is not.");
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification is not coupleable.
* @return this assertion object.
* @throws AssertionError - if the actual VecConnectorHousingSpecification is coupleable.
*/
public S isNotCoupleable() {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// null safe check
if (Objects.areEqual(Boolean.TRUE, actual.isCoupleable())) {
failWithMessage("\nExpecting that actual VecConnectorHousingSpecification is not coupleable but is.");
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's outletDirection is equal to the given one.
* @param outletDirection the given outletDirection to compare the actual VecConnectorHousingSpecification's outletDirection to.
* @return this assertion object.
* @throws AssertionError - if the actual VecConnectorHousingSpecification's outletDirection is not equal to the given one.
*/
public S hasOutletDirection(String outletDirection) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting outletDirection of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualOutletDirection = actual.getOutletDirection();
if (!Objects.areEqual(actualOutletDirection, outletDirection)) {
failWithMessage(assertjErrorMessage, actual, outletDirection, actualOutletDirection);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's refConnectorHousingRole contains the given VecConnectorHousingRole elements.
* @param refConnectorHousingRole the given elements that should be contained in actual VecConnectorHousingSpecification's refConnectorHousingRole.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refConnectorHousingRole does not contain all given VecConnectorHousingRole elements.
*/
public S hasRefConnectorHousingRole(VecConnectorHousingRole... refConnectorHousingRole) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecConnectorHousingRole varargs is not null.
if (refConnectorHousingRole == null) failWithMessage("Expecting refConnectorHousingRole 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.getRefConnectorHousingRole(), refConnectorHousingRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's refConnectorHousingRole contains the given VecConnectorHousingRole elements in Collection.
* @param refConnectorHousingRole the given elements that should be contained in actual VecConnectorHousingSpecification's refConnectorHousingRole.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refConnectorHousingRole does not contain all given VecConnectorHousingRole elements.
*/
public S hasRefConnectorHousingRole(java.util.Collection extends VecConnectorHousingRole> refConnectorHousingRole) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecConnectorHousingRole collection is not null.
if (refConnectorHousingRole == null) {
failWithMessage("Expecting refConnectorHousingRole 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.getRefConnectorHousingRole(), refConnectorHousingRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's refConnectorHousingRole contains only the given VecConnectorHousingRole elements and nothing else in whatever order.
* @param refConnectorHousingRole the given elements that should be contained in actual VecConnectorHousingSpecification's refConnectorHousingRole.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refConnectorHousingRole does not contain all given VecConnectorHousingRole elements.
*/
public S hasOnlyRefConnectorHousingRole(VecConnectorHousingRole... refConnectorHousingRole) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecConnectorHousingRole varargs is not null.
if (refConnectorHousingRole == null) failWithMessage("Expecting refConnectorHousingRole 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.getRefConnectorHousingRole(), refConnectorHousingRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's refConnectorHousingRole contains only the given VecConnectorHousingRole elements in Collection and nothing else in whatever order.
* @param refConnectorHousingRole the given elements that should be contained in actual VecConnectorHousingSpecification's refConnectorHousingRole.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refConnectorHousingRole does not contain all given VecConnectorHousingRole elements.
*/
public S hasOnlyRefConnectorHousingRole(java.util.Collection extends VecConnectorHousingRole> refConnectorHousingRole) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecConnectorHousingRole collection is not null.
if (refConnectorHousingRole == null) {
failWithMessage("Expecting refConnectorHousingRole 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.getRefConnectorHousingRole(), refConnectorHousingRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's refConnectorHousingRole does not contain the given VecConnectorHousingRole elements.
*
* @param refConnectorHousingRole the given elements that should not be in actual VecConnectorHousingSpecification's refConnectorHousingRole.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refConnectorHousingRole contains any given VecConnectorHousingRole elements.
*/
public S doesNotHaveRefConnectorHousingRole(VecConnectorHousingRole... refConnectorHousingRole) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecConnectorHousingRole varargs is not null.
if (refConnectorHousingRole == null) failWithMessage("Expecting refConnectorHousingRole parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefConnectorHousingRole(), refConnectorHousingRole);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's refConnectorHousingRole does not contain the given VecConnectorHousingRole elements in Collection.
*
* @param refConnectorHousingRole the given elements that should not be in actual VecConnectorHousingSpecification's refConnectorHousingRole.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refConnectorHousingRole contains any given VecConnectorHousingRole elements.
*/
public S doesNotHaveRefConnectorHousingRole(java.util.Collection extends VecConnectorHousingRole> refConnectorHousingRole) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecConnectorHousingRole collection is not null.
if (refConnectorHousingRole == null) {
failWithMessage("Expecting refConnectorHousingRole 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.getRefConnectorHousingRole(), refConnectorHousingRole.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification has no refConnectorHousingRole.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refConnectorHousingRole is not empty.
*/
public S hasNoRefConnectorHousingRole() {
// check that actual VecConnectorHousingSpecification 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 refConnectorHousingRole but had :\n <%s>";
// check
if (actual.getRefConnectorHousingRole().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefConnectorHousingRole());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's refHousingComponent contains the given VecHousingComponent elements.
* @param refHousingComponent the given elements that should be contained in actual VecConnectorHousingSpecification's refHousingComponent.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refHousingComponent does not contain all given VecHousingComponent elements.
*/
public S hasRefHousingComponent(VecHousingComponent... refHousingComponent) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecHousingComponent varargs is not null.
if (refHousingComponent == null) failWithMessage("Expecting refHousingComponent 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.getRefHousingComponent(), refHousingComponent);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's refHousingComponent contains the given VecHousingComponent elements in Collection.
* @param refHousingComponent the given elements that should be contained in actual VecConnectorHousingSpecification's refHousingComponent.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refHousingComponent does not contain all given VecHousingComponent elements.
*/
public S hasRefHousingComponent(java.util.Collection extends VecHousingComponent> refHousingComponent) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecHousingComponent collection is not null.
if (refHousingComponent == null) {
failWithMessage("Expecting refHousingComponent 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.getRefHousingComponent(), refHousingComponent.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's refHousingComponent contains only the given VecHousingComponent elements and nothing else in whatever order.
* @param refHousingComponent the given elements that should be contained in actual VecConnectorHousingSpecification's refHousingComponent.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refHousingComponent does not contain all given VecHousingComponent elements.
*/
public S hasOnlyRefHousingComponent(VecHousingComponent... refHousingComponent) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecHousingComponent varargs is not null.
if (refHousingComponent == null) failWithMessage("Expecting refHousingComponent 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.getRefHousingComponent(), refHousingComponent);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's refHousingComponent contains only the given VecHousingComponent elements in Collection and nothing else in whatever order.
* @param refHousingComponent the given elements that should be contained in actual VecConnectorHousingSpecification's refHousingComponent.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refHousingComponent does not contain all given VecHousingComponent elements.
*/
public S hasOnlyRefHousingComponent(java.util.Collection extends VecHousingComponent> refHousingComponent) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecHousingComponent collection is not null.
if (refHousingComponent == null) {
failWithMessage("Expecting refHousingComponent 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.getRefHousingComponent(), refHousingComponent.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's refHousingComponent does not contain the given VecHousingComponent elements.
*
* @param refHousingComponent the given elements that should not be in actual VecConnectorHousingSpecification's refHousingComponent.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refHousingComponent contains any given VecHousingComponent elements.
*/
public S doesNotHaveRefHousingComponent(VecHousingComponent... refHousingComponent) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecHousingComponent varargs is not null.
if (refHousingComponent == null) failWithMessage("Expecting refHousingComponent parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefHousingComponent(), refHousingComponent);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's refHousingComponent does not contain the given VecHousingComponent elements in Collection.
*
* @param refHousingComponent the given elements that should not be in actual VecConnectorHousingSpecification's refHousingComponent.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refHousingComponent contains any given VecHousingComponent elements.
*/
public S doesNotHaveRefHousingComponent(java.util.Collection extends VecHousingComponent> refHousingComponent) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecHousingComponent collection is not null.
if (refHousingComponent == null) {
failWithMessage("Expecting refHousingComponent 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.getRefHousingComponent(), refHousingComponent.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification has no refHousingComponent.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's refHousingComponent is not empty.
*/
public S hasNoRefHousingComponent() {
// check that actual VecConnectorHousingSpecification 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 refHousingComponent but had :\n <%s>";
// check
if (actual.getRefHousingComponent().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefHousingComponent());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's segmentConnectionPoints contains the given VecSegmentConnectionPoint elements.
* @param segmentConnectionPoints the given elements that should be contained in actual VecConnectorHousingSpecification's segmentConnectionPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's segmentConnectionPoints does not contain all given VecSegmentConnectionPoint elements.
*/
public S hasSegmentConnectionPoints(VecSegmentConnectionPoint... segmentConnectionPoints) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSegmentConnectionPoint varargs is not null.
if (segmentConnectionPoints == null) failWithMessage("Expecting segmentConnectionPoints 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.getSegmentConnectionPoints(), segmentConnectionPoints);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's segmentConnectionPoints contains the given VecSegmentConnectionPoint elements in Collection.
* @param segmentConnectionPoints the given elements that should be contained in actual VecConnectorHousingSpecification's segmentConnectionPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's segmentConnectionPoints does not contain all given VecSegmentConnectionPoint elements.
*/
public S hasSegmentConnectionPoints(java.util.Collection extends VecSegmentConnectionPoint> segmentConnectionPoints) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSegmentConnectionPoint collection is not null.
if (segmentConnectionPoints == null) {
failWithMessage("Expecting segmentConnectionPoints 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.getSegmentConnectionPoints(), segmentConnectionPoints.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's segmentConnectionPoints contains only the given VecSegmentConnectionPoint elements and nothing else in whatever order.
* @param segmentConnectionPoints the given elements that should be contained in actual VecConnectorHousingSpecification's segmentConnectionPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's segmentConnectionPoints does not contain all given VecSegmentConnectionPoint elements.
*/
public S hasOnlySegmentConnectionPoints(VecSegmentConnectionPoint... segmentConnectionPoints) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSegmentConnectionPoint varargs is not null.
if (segmentConnectionPoints == null) failWithMessage("Expecting segmentConnectionPoints 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.getSegmentConnectionPoints(), segmentConnectionPoints);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's segmentConnectionPoints contains only the given VecSegmentConnectionPoint elements in Collection and nothing else in whatever order.
* @param segmentConnectionPoints the given elements that should be contained in actual VecConnectorHousingSpecification's segmentConnectionPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's segmentConnectionPoints does not contain all given VecSegmentConnectionPoint elements.
*/
public S hasOnlySegmentConnectionPoints(java.util.Collection extends VecSegmentConnectionPoint> segmentConnectionPoints) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSegmentConnectionPoint collection is not null.
if (segmentConnectionPoints == null) {
failWithMessage("Expecting segmentConnectionPoints 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.getSegmentConnectionPoints(), segmentConnectionPoints.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's segmentConnectionPoints does not contain the given VecSegmentConnectionPoint elements.
*
* @param segmentConnectionPoints the given elements that should not be in actual VecConnectorHousingSpecification's segmentConnectionPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's segmentConnectionPoints contains any given VecSegmentConnectionPoint elements.
*/
public S doesNotHaveSegmentConnectionPoints(VecSegmentConnectionPoint... segmentConnectionPoints) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSegmentConnectionPoint varargs is not null.
if (segmentConnectionPoints == null) failWithMessage("Expecting segmentConnectionPoints parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getSegmentConnectionPoints(), segmentConnectionPoints);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's segmentConnectionPoints does not contain the given VecSegmentConnectionPoint elements in Collection.
*
* @param segmentConnectionPoints the given elements that should not be in actual VecConnectorHousingSpecification's segmentConnectionPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's segmentConnectionPoints contains any given VecSegmentConnectionPoint elements.
*/
public S doesNotHaveSegmentConnectionPoints(java.util.Collection extends VecSegmentConnectionPoint> segmentConnectionPoints) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSegmentConnectionPoint collection is not null.
if (segmentConnectionPoints == null) {
failWithMessage("Expecting segmentConnectionPoints 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.getSegmentConnectionPoints(), segmentConnectionPoints.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification has no segmentConnectionPoints.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's segmentConnectionPoints is not empty.
*/
public S hasNoSegmentConnectionPoints() {
// check that actual VecConnectorHousingSpecification 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 segmentConnectionPoints but had :\n <%s>";
// check
if (actual.getSegmentConnectionPoints().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getSegmentConnectionPoints());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's slots contains the given VecAbstractSlot elements.
* @param slots the given elements that should be contained in actual VecConnectorHousingSpecification's slots.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's slots does not contain all given VecAbstractSlot elements.
*/
public S hasSlots(VecAbstractSlot... slots) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractSlot varargs is not null.
if (slots == null) failWithMessage("Expecting slots 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.getSlots(), slots);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's slots contains the given VecAbstractSlot elements in Collection.
* @param slots the given elements that should be contained in actual VecConnectorHousingSpecification's slots.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's slots does not contain all given VecAbstractSlot elements.
*/
public S hasSlots(java.util.Collection extends VecAbstractSlot> slots) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractSlot collection is not null.
if (slots == null) {
failWithMessage("Expecting slots 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.getSlots(), slots.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's slots contains only the given VecAbstractSlot elements and nothing else in whatever order.
* @param slots the given elements that should be contained in actual VecConnectorHousingSpecification's slots.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's slots does not contain all given VecAbstractSlot elements.
*/
public S hasOnlySlots(VecAbstractSlot... slots) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractSlot varargs is not null.
if (slots == null) failWithMessage("Expecting slots 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.getSlots(), slots);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's slots contains only the given VecAbstractSlot elements in Collection and nothing else in whatever order.
* @param slots the given elements that should be contained in actual VecConnectorHousingSpecification's slots.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's slots does not contain all given VecAbstractSlot elements.
*/
public S hasOnlySlots(java.util.Collection extends VecAbstractSlot> slots) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractSlot collection is not null.
if (slots == null) {
failWithMessage("Expecting slots 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.getSlots(), slots.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's slots does not contain the given VecAbstractSlot elements.
*
* @param slots the given elements that should not be in actual VecConnectorHousingSpecification's slots.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's slots contains any given VecAbstractSlot elements.
*/
public S doesNotHaveSlots(VecAbstractSlot... slots) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractSlot varargs is not null.
if (slots == null) failWithMessage("Expecting slots parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getSlots(), slots);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's slots does not contain the given VecAbstractSlot elements in Collection.
*
* @param slots the given elements that should not be in actual VecConnectorHousingSpecification's slots.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's slots contains any given VecAbstractSlot elements.
*/
public S doesNotHaveSlots(java.util.Collection extends VecAbstractSlot> slots) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractSlot collection is not null.
if (slots == null) {
failWithMessage("Expecting slots 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.getSlots(), slots.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification has no slots.
* @return this assertion object.
* @throws AssertionError if the actual VecConnectorHousingSpecification's slots is not empty.
*/
public S hasNoSlots() {
// check that actual VecConnectorHousingSpecification 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 slots but had :\n <%s>";
// check
if (actual.getSlots().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getSlots());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecConnectorHousingSpecification's voltageRange is equal to the given one.
* @param voltageRange the given voltageRange to compare the actual VecConnectorHousingSpecification's voltageRange to.
* @return this assertion object.
* @throws AssertionError - if the actual VecConnectorHousingSpecification's voltageRange is not equal to the given one.
*/
public S hasVoltageRange(VecValueRange voltageRange) {
// check that actual VecConnectorHousingSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting voltageRange of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecValueRange actualVoltageRange = actual.getVoltageRange();
if (!Objects.areEqual(actualVoltageRange, voltageRange)) {
failWithMessage(assertjErrorMessage, actual, voltageRange, actualVoltageRange);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy