
com.foursoft.vecmodel.vec120.AbstractVecComponentConnectorAssert 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 VecComponentConnector} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecComponentConnectorAssert, A extends VecComponentConnector> extends AbstractVecConfigurableElementAssert {
/**
* Creates a new {@link AbstractVecComponentConnectorAssert}
to make assertions on actual VecComponentConnector.
* @param actual the VecComponentConnector we want to make assertions on.
*/
protected AbstractVecComponentConnectorAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecComponentConnector's componentPorts contains the given VecComponentPort elements.
* @param componentPorts the given elements that should be contained in actual VecComponentConnector's componentPorts.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's componentPorts does not contain all given VecComponentPort elements.
*/
public S hasComponentPorts(VecComponentPort... componentPorts) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecComponentPort varargs is not null.
if (componentPorts == null) failWithMessage("Expecting componentPorts 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.getComponentPorts(), componentPorts);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's componentPorts contains the given VecComponentPort elements in Collection.
* @param componentPorts the given elements that should be contained in actual VecComponentConnector's componentPorts.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's componentPorts does not contain all given VecComponentPort elements.
*/
public S hasComponentPorts(java.util.Collection extends VecComponentPort> componentPorts) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecComponentPort collection is not null.
if (componentPorts == null) {
failWithMessage("Expecting componentPorts 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.getComponentPorts(), componentPorts.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's componentPorts contains only the given VecComponentPort elements and nothing else in whatever order.
* @param componentPorts the given elements that should be contained in actual VecComponentConnector's componentPorts.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's componentPorts does not contain all given VecComponentPort elements.
*/
public S hasOnlyComponentPorts(VecComponentPort... componentPorts) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecComponentPort varargs is not null.
if (componentPorts == null) failWithMessage("Expecting componentPorts 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.getComponentPorts(), componentPorts);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's componentPorts contains only the given VecComponentPort elements in Collection and nothing else in whatever order.
* @param componentPorts the given elements that should be contained in actual VecComponentConnector's componentPorts.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's componentPorts does not contain all given VecComponentPort elements.
*/
public S hasOnlyComponentPorts(java.util.Collection extends VecComponentPort> componentPorts) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecComponentPort collection is not null.
if (componentPorts == null) {
failWithMessage("Expecting componentPorts 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.getComponentPorts(), componentPorts.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's componentPorts does not contain the given VecComponentPort elements.
*
* @param componentPorts the given elements that should not be in actual VecComponentConnector's componentPorts.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's componentPorts contains any given VecComponentPort elements.
*/
public S doesNotHaveComponentPorts(VecComponentPort... componentPorts) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecComponentPort varargs is not null.
if (componentPorts == null) failWithMessage("Expecting componentPorts parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getComponentPorts(), componentPorts);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's componentPorts does not contain the given VecComponentPort elements in Collection.
*
* @param componentPorts the given elements that should not be in actual VecComponentConnector's componentPorts.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's componentPorts contains any given VecComponentPort elements.
*/
public S doesNotHaveComponentPorts(java.util.Collection extends VecComponentPort> componentPorts) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecComponentPort collection is not null.
if (componentPorts == null) {
failWithMessage("Expecting componentPorts 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.getComponentPorts(), componentPorts.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector has no componentPorts.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's componentPorts is not empty.
*/
public S hasNoComponentPorts() {
// check that actual VecComponentConnector 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 componentPorts but had :\n <%s>";
// check
if (actual.getComponentPorts().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getComponentPorts());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's descriptions contains the given VecAbstractLocalizedString elements.
* @param descriptions the given elements that should be contained in actual VecComponentConnector's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString varargs is not null.
if (descriptions == null) failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's descriptions contains the given VecAbstractLocalizedString elements in Collection.
* @param descriptions the given elements that should be contained in actual VecComponentConnector's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString collection is not null.
if (descriptions == null) {
failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's descriptions contains only the given VecAbstractLocalizedString elements and nothing else in whatever order.
* @param descriptions the given elements that should be contained in actual VecComponentConnector's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString varargs is not null.
if (descriptions == null) failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's descriptions contains only the given VecAbstractLocalizedString elements in Collection and nothing else in whatever order.
* @param descriptions the given elements that should be contained in actual VecComponentConnector's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString collection is not null.
if (descriptions == null) {
failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's descriptions does not contain the given VecAbstractLocalizedString elements.
*
* @param descriptions the given elements that should not be in actual VecComponentConnector's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString varargs is not null.
if (descriptions == null) failWithMessage("Expecting descriptions parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getDescriptions(), descriptions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's descriptions does not contain the given VecAbstractLocalizedString elements in Collection.
*
* @param descriptions the given elements that should not be in actual VecComponentConnector's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString collection is not null.
if (descriptions == null) {
failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector has no descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's descriptions is not empty.
*/
public S hasNoDescriptions() {
// check that actual VecComponentConnector 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 descriptions but had :\n <%s>";
// check
if (actual.getDescriptions().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getDescriptions());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's identification is equal to the given one.
* @param identification the given identification to compare the actual VecComponentConnector's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecComponentConnector's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecComponentConnector 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 VecComponentConnector's parentComponentNode is equal to the given one.
* @param parentComponentNode the given parentComponentNode to compare the actual VecComponentConnector's parentComponentNode to.
* @return this assertion object.
* @throws AssertionError - if the actual VecComponentConnector's parentComponentNode is not equal to the given one.
*/
public S hasParentComponentNode(VecComponentNode parentComponentNode) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentComponentNode of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecComponentNode actualParentComponentNode = actual.getParentComponentNode();
if (!Objects.areEqual(actualParentComponentNode, parentComponentNode)) {
failWithMessage(assertjErrorMessage, actual, parentComponentNode, actualParentComponentNode);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's refHousingComponentReference contains the given VecHousingComponentReference elements.
* @param refHousingComponentReference the given elements that should be contained in actual VecComponentConnector's refHousingComponentReference.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's refHousingComponentReference does not contain all given VecHousingComponentReference elements.
*/
public S hasRefHousingComponentReference(VecHousingComponentReference... refHousingComponentReference) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecHousingComponentReference varargs is not null.
if (refHousingComponentReference == null) failWithMessage("Expecting refHousingComponentReference 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.getRefHousingComponentReference(), refHousingComponentReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's refHousingComponentReference contains the given VecHousingComponentReference elements in Collection.
* @param refHousingComponentReference the given elements that should be contained in actual VecComponentConnector's refHousingComponentReference.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's refHousingComponentReference does not contain all given VecHousingComponentReference elements.
*/
public S hasRefHousingComponentReference(java.util.Collection extends VecHousingComponentReference> refHousingComponentReference) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecHousingComponentReference collection is not null.
if (refHousingComponentReference == null) {
failWithMessage("Expecting refHousingComponentReference 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.getRefHousingComponentReference(), refHousingComponentReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's refHousingComponentReference contains only the given VecHousingComponentReference elements and nothing else in whatever order.
* @param refHousingComponentReference the given elements that should be contained in actual VecComponentConnector's refHousingComponentReference.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's refHousingComponentReference does not contain all given VecHousingComponentReference elements.
*/
public S hasOnlyRefHousingComponentReference(VecHousingComponentReference... refHousingComponentReference) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecHousingComponentReference varargs is not null.
if (refHousingComponentReference == null) failWithMessage("Expecting refHousingComponentReference 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.getRefHousingComponentReference(), refHousingComponentReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's refHousingComponentReference contains only the given VecHousingComponentReference elements in Collection and nothing else in whatever order.
* @param refHousingComponentReference the given elements that should be contained in actual VecComponentConnector's refHousingComponentReference.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's refHousingComponentReference does not contain all given VecHousingComponentReference elements.
*/
public S hasOnlyRefHousingComponentReference(java.util.Collection extends VecHousingComponentReference> refHousingComponentReference) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecHousingComponentReference collection is not null.
if (refHousingComponentReference == null) {
failWithMessage("Expecting refHousingComponentReference 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.getRefHousingComponentReference(), refHousingComponentReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's refHousingComponentReference does not contain the given VecHousingComponentReference elements.
*
* @param refHousingComponentReference the given elements that should not be in actual VecComponentConnector's refHousingComponentReference.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's refHousingComponentReference contains any given VecHousingComponentReference elements.
*/
public S doesNotHaveRefHousingComponentReference(VecHousingComponentReference... refHousingComponentReference) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecHousingComponentReference varargs is not null.
if (refHousingComponentReference == null) failWithMessage("Expecting refHousingComponentReference parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefHousingComponentReference(), refHousingComponentReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector's refHousingComponentReference does not contain the given VecHousingComponentReference elements in Collection.
*
* @param refHousingComponentReference the given elements that should not be in actual VecComponentConnector's refHousingComponentReference.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's refHousingComponentReference contains any given VecHousingComponentReference elements.
*/
public S doesNotHaveRefHousingComponentReference(java.util.Collection extends VecHousingComponentReference> refHousingComponentReference) {
// check that actual VecComponentConnector we want to make assertions on is not null.
isNotNull();
// check that given VecHousingComponentReference collection is not null.
if (refHousingComponentReference == null) {
failWithMessage("Expecting refHousingComponentReference 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.getRefHousingComponentReference(), refHousingComponentReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecComponentConnector has no refHousingComponentReference.
* @return this assertion object.
* @throws AssertionError if the actual VecComponentConnector's refHousingComponentReference is not empty.
*/
public S hasNoRefHousingComponentReference() {
// check that actual VecComponentConnector 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 refHousingComponentReference but had :\n <%s>";
// check
if (actual.getRefHousingComponentReference().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefHousingComponentReference());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy