
com.foursoft.vecmodel.vec120.AbstractVecWireMountingDetailAssert 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 VecWireMountingDetail} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecWireMountingDetailAssert, A extends VecWireMountingDetail> extends AbstractVecExtendableElementAssert {
/**
* Creates a new {@link AbstractVecWireMountingDetailAssert}
to make assertions on actual VecWireMountingDetail.
* @param actual the VecWireMountingDetail we want to make assertions on.
*/
protected AbstractVecWireMountingDetailAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecWireMountingDetail's contactedWireReception is equal to the given one.
* @param contactedWireReception the given contactedWireReception to compare the actual VecWireMountingDetail's contactedWireReception to.
* @return this assertion object.
* @throws AssertionError - if the actual VecWireMountingDetail's contactedWireReception is not equal to the given one.
*/
public S hasContactedWireReception(VecWireReceptionReference contactedWireReception) {
// check that actual VecWireMountingDetail we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting contactedWireReception of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecWireReceptionReference actualContactedWireReception = actual.getContactedWireReception();
if (!Objects.areEqual(actualContactedWireReception, contactedWireReception)) {
failWithMessage(assertjErrorMessage, actual, contactedWireReception, actualContactedWireReception);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireMountingDetail's parentWireMounting is equal to the given one.
* @param parentWireMounting the given parentWireMounting to compare the actual VecWireMountingDetail's parentWireMounting to.
* @return this assertion object.
* @throws AssertionError - if the actual VecWireMountingDetail's parentWireMounting is not equal to the given one.
*/
public S hasParentWireMounting(VecWireMounting parentWireMounting) {
// check that actual VecWireMountingDetail we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentWireMounting of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecWireMounting actualParentWireMounting = actual.getParentWireMounting();
if (!Objects.areEqual(actualParentWireMounting, parentWireMounting)) {
failWithMessage(assertjErrorMessage, actual, parentWireMounting, actualParentWireMounting);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireMountingDetail's referencedWireEnd contains the given VecWireEnd elements.
* @param referencedWireEnd the given elements that should be contained in actual VecWireMountingDetail's referencedWireEnd.
* @return this assertion object.
* @throws AssertionError if the actual VecWireMountingDetail's referencedWireEnd does not contain all given VecWireEnd elements.
*/
public S hasReferencedWireEnd(VecWireEnd... referencedWireEnd) {
// check that actual VecWireMountingDetail we want to make assertions on is not null.
isNotNull();
// check that given VecWireEnd varargs is not null.
if (referencedWireEnd == null) failWithMessage("Expecting referencedWireEnd 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.getReferencedWireEnd(), referencedWireEnd);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireMountingDetail's referencedWireEnd contains the given VecWireEnd elements in Collection.
* @param referencedWireEnd the given elements that should be contained in actual VecWireMountingDetail's referencedWireEnd.
* @return this assertion object.
* @throws AssertionError if the actual VecWireMountingDetail's referencedWireEnd does not contain all given VecWireEnd elements.
*/
public S hasReferencedWireEnd(java.util.Collection extends VecWireEnd> referencedWireEnd) {
// check that actual VecWireMountingDetail we want to make assertions on is not null.
isNotNull();
// check that given VecWireEnd collection is not null.
if (referencedWireEnd == null) {
failWithMessage("Expecting referencedWireEnd 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.getReferencedWireEnd(), referencedWireEnd.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireMountingDetail's referencedWireEnd contains only the given VecWireEnd elements and nothing else in whatever order.
* @param referencedWireEnd the given elements that should be contained in actual VecWireMountingDetail's referencedWireEnd.
* @return this assertion object.
* @throws AssertionError if the actual VecWireMountingDetail's referencedWireEnd does not contain all given VecWireEnd elements.
*/
public S hasOnlyReferencedWireEnd(VecWireEnd... referencedWireEnd) {
// check that actual VecWireMountingDetail we want to make assertions on is not null.
isNotNull();
// check that given VecWireEnd varargs is not null.
if (referencedWireEnd == null) failWithMessage("Expecting referencedWireEnd 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.getReferencedWireEnd(), referencedWireEnd);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireMountingDetail's referencedWireEnd contains only the given VecWireEnd elements in Collection and nothing else in whatever order.
* @param referencedWireEnd the given elements that should be contained in actual VecWireMountingDetail's referencedWireEnd.
* @return this assertion object.
* @throws AssertionError if the actual VecWireMountingDetail's referencedWireEnd does not contain all given VecWireEnd elements.
*/
public S hasOnlyReferencedWireEnd(java.util.Collection extends VecWireEnd> referencedWireEnd) {
// check that actual VecWireMountingDetail we want to make assertions on is not null.
isNotNull();
// check that given VecWireEnd collection is not null.
if (referencedWireEnd == null) {
failWithMessage("Expecting referencedWireEnd 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.getReferencedWireEnd(), referencedWireEnd.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireMountingDetail's referencedWireEnd does not contain the given VecWireEnd elements.
*
* @param referencedWireEnd the given elements that should not be in actual VecWireMountingDetail's referencedWireEnd.
* @return this assertion object.
* @throws AssertionError if the actual VecWireMountingDetail's referencedWireEnd contains any given VecWireEnd elements.
*/
public S doesNotHaveReferencedWireEnd(VecWireEnd... referencedWireEnd) {
// check that actual VecWireMountingDetail we want to make assertions on is not null.
isNotNull();
// check that given VecWireEnd varargs is not null.
if (referencedWireEnd == null) failWithMessage("Expecting referencedWireEnd parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getReferencedWireEnd(), referencedWireEnd);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireMountingDetail's referencedWireEnd does not contain the given VecWireEnd elements in Collection.
*
* @param referencedWireEnd the given elements that should not be in actual VecWireMountingDetail's referencedWireEnd.
* @return this assertion object.
* @throws AssertionError if the actual VecWireMountingDetail's referencedWireEnd contains any given VecWireEnd elements.
*/
public S doesNotHaveReferencedWireEnd(java.util.Collection extends VecWireEnd> referencedWireEnd) {
// check that actual VecWireMountingDetail we want to make assertions on is not null.
isNotNull();
// check that given VecWireEnd collection is not null.
if (referencedWireEnd == null) {
failWithMessage("Expecting referencedWireEnd 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.getReferencedWireEnd(), referencedWireEnd.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecWireMountingDetail has no referencedWireEnd.
* @return this assertion object.
* @throws AssertionError if the actual VecWireMountingDetail's referencedWireEnd is not empty.
*/
public S hasNoReferencedWireEnd() {
// check that actual VecWireMountingDetail 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 referencedWireEnd but had :\n <%s>";
// check
if (actual.getReferencedWireEnd().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getReferencedWireEnd());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy