
com.foursoft.vecmodel.vec120.AbstractVecCableLeadThroughAssert 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 VecCableLeadThrough} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecCableLeadThroughAssert, A extends VecCableLeadThrough> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecCableLeadThroughAssert}
to make assertions on actual VecCableLeadThrough.
* @param actual the VecCableLeadThrough we want to make assertions on.
*/
protected AbstractVecCableLeadThroughAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecCableLeadThrough's cableLeadThroughSpecification is equal to the given one.
* @param cableLeadThroughSpecification the given cableLeadThroughSpecification to compare the actual VecCableLeadThrough's cableLeadThroughSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableLeadThrough's cableLeadThroughSpecification is not equal to the given one.
*/
public S hasCableLeadThroughSpecification(VecCableLeadThroughSpecification cableLeadThroughSpecification) {
// check that actual VecCableLeadThrough we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting cableLeadThroughSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecCableLeadThroughSpecification actualCableLeadThroughSpecification = actual.getCableLeadThroughSpecification();
if (!Objects.areEqual(actualCableLeadThroughSpecification, cableLeadThroughSpecification)) {
failWithMessage(assertjErrorMessage, actual, cableLeadThroughSpecification, actualCableLeadThroughSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThrough's identification is equal to the given one.
* @param identification the given identification to compare the actual VecCableLeadThrough's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableLeadThrough's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecCableLeadThrough 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 VecCableLeadThrough's parentGrommetSpecification is equal to the given one.
* @param parentGrommetSpecification the given parentGrommetSpecification to compare the actual VecCableLeadThrough's parentGrommetSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableLeadThrough's parentGrommetSpecification is not equal to the given one.
*/
public S hasParentGrommetSpecification(VecGrommetSpecification parentGrommetSpecification) {
// check that actual VecCableLeadThrough we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentGrommetSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecGrommetSpecification actualParentGrommetSpecification = actual.getParentGrommetSpecification();
if (!Objects.areEqual(actualParentGrommetSpecification, parentGrommetSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentGrommetSpecification, actualParentGrommetSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThrough's placementPoint is equal to the given one.
* @param placementPoint the given placementPoint to compare the actual VecCableLeadThrough's placementPoint to.
* @return this assertion object.
* @throws AssertionError - if the actual VecCableLeadThrough's placementPoint is not equal to the given one.
*/
public S hasPlacementPoint(VecPlacementPoint placementPoint) {
// check that actual VecCableLeadThrough 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 VecCableLeadThrough's refCableLeadThroughReference contains the given VecCableLeadThroughReference elements.
* @param refCableLeadThroughReference the given elements that should be contained in actual VecCableLeadThrough's refCableLeadThroughReference.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThrough's refCableLeadThroughReference does not contain all given VecCableLeadThroughReference elements.
*/
public S hasRefCableLeadThroughReference(VecCableLeadThroughReference... refCableLeadThroughReference) {
// check that actual VecCableLeadThrough we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThroughReference varargs is not null.
if (refCableLeadThroughReference == null) failWithMessage("Expecting refCableLeadThroughReference 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.getRefCableLeadThroughReference(), refCableLeadThroughReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThrough's refCableLeadThroughReference contains the given VecCableLeadThroughReference elements in Collection.
* @param refCableLeadThroughReference the given elements that should be contained in actual VecCableLeadThrough's refCableLeadThroughReference.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThrough's refCableLeadThroughReference does not contain all given VecCableLeadThroughReference elements.
*/
public S hasRefCableLeadThroughReference(java.util.Collection extends VecCableLeadThroughReference> refCableLeadThroughReference) {
// check that actual VecCableLeadThrough we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThroughReference collection is not null.
if (refCableLeadThroughReference == null) {
failWithMessage("Expecting refCableLeadThroughReference 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.getRefCableLeadThroughReference(), refCableLeadThroughReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThrough's refCableLeadThroughReference contains only the given VecCableLeadThroughReference elements and nothing else in whatever order.
* @param refCableLeadThroughReference the given elements that should be contained in actual VecCableLeadThrough's refCableLeadThroughReference.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThrough's refCableLeadThroughReference does not contain all given VecCableLeadThroughReference elements.
*/
public S hasOnlyRefCableLeadThroughReference(VecCableLeadThroughReference... refCableLeadThroughReference) {
// check that actual VecCableLeadThrough we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThroughReference varargs is not null.
if (refCableLeadThroughReference == null) failWithMessage("Expecting refCableLeadThroughReference 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.getRefCableLeadThroughReference(), refCableLeadThroughReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThrough's refCableLeadThroughReference contains only the given VecCableLeadThroughReference elements in Collection and nothing else in whatever order.
* @param refCableLeadThroughReference the given elements that should be contained in actual VecCableLeadThrough's refCableLeadThroughReference.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThrough's refCableLeadThroughReference does not contain all given VecCableLeadThroughReference elements.
*/
public S hasOnlyRefCableLeadThroughReference(java.util.Collection extends VecCableLeadThroughReference> refCableLeadThroughReference) {
// check that actual VecCableLeadThrough we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThroughReference collection is not null.
if (refCableLeadThroughReference == null) {
failWithMessage("Expecting refCableLeadThroughReference 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.getRefCableLeadThroughReference(), refCableLeadThroughReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThrough's refCableLeadThroughReference does not contain the given VecCableLeadThroughReference elements.
*
* @param refCableLeadThroughReference the given elements that should not be in actual VecCableLeadThrough's refCableLeadThroughReference.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThrough's refCableLeadThroughReference contains any given VecCableLeadThroughReference elements.
*/
public S doesNotHaveRefCableLeadThroughReference(VecCableLeadThroughReference... refCableLeadThroughReference) {
// check that actual VecCableLeadThrough we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThroughReference varargs is not null.
if (refCableLeadThroughReference == null) failWithMessage("Expecting refCableLeadThroughReference parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefCableLeadThroughReference(), refCableLeadThroughReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThrough's refCableLeadThroughReference does not contain the given VecCableLeadThroughReference elements in Collection.
*
* @param refCableLeadThroughReference the given elements that should not be in actual VecCableLeadThrough's refCableLeadThroughReference.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThrough's refCableLeadThroughReference contains any given VecCableLeadThroughReference elements.
*/
public S doesNotHaveRefCableLeadThroughReference(java.util.Collection extends VecCableLeadThroughReference> refCableLeadThroughReference) {
// check that actual VecCableLeadThrough we want to make assertions on is not null.
isNotNull();
// check that given VecCableLeadThroughReference collection is not null.
if (refCableLeadThroughReference == null) {
failWithMessage("Expecting refCableLeadThroughReference 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.getRefCableLeadThroughReference(), refCableLeadThroughReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecCableLeadThrough has no refCableLeadThroughReference.
* @return this assertion object.
* @throws AssertionError if the actual VecCableLeadThrough's refCableLeadThroughReference is not empty.
*/
public S hasNoRefCableLeadThroughReference() {
// check that actual VecCableLeadThrough 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 refCableLeadThroughReference but had :\n <%s>";
// check
if (actual.getRefCableLeadThroughReference().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefCableLeadThroughReference());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy