
com.foursoft.vecmodel.vec120.AbstractVecNetworkPortAssert 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 VecNetworkPort} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecNetworkPortAssert, A extends VecNetworkPort> extends AbstractVecConfigurableElementAssert {
/**
* Creates a new {@link AbstractVecNetworkPortAssert}
to make assertions on actual VecNetworkPort.
* @param actual the VecNetworkPort we want to make assertions on.
*/
protected AbstractVecNetworkPortAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecNetworkPort's descriptions contains the given VecAbstractLocalizedString elements.
* @param descriptions the given elements that should be contained in actual VecNetworkPort's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecNetworkPort 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 VecNetworkPort's descriptions contains the given VecAbstractLocalizedString elements in Collection.
* @param descriptions the given elements that should be contained in actual VecNetworkPort's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecNetworkPort 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 VecNetworkPort'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 VecNetworkPort's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecNetworkPort 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 VecNetworkPort'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 VecNetworkPort's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecNetworkPort 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 VecNetworkPort's descriptions does not contain the given VecAbstractLocalizedString elements.
*
* @param descriptions the given elements that should not be in actual VecNetworkPort's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecNetworkPort 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 VecNetworkPort's descriptions does not contain the given VecAbstractLocalizedString elements in Collection.
*
* @param descriptions the given elements that should not be in actual VecNetworkPort's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecNetworkPort 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 VecNetworkPort has no descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's descriptions is not empty.
*/
public S hasNoDescriptions() {
// check that actual VecNetworkPort 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 VecNetworkPort's identification is equal to the given one.
* @param identification the given identification to compare the actual VecNetworkPort's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecNetworkPort's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecNetworkPort 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 VecNetworkPort's netType is equal to the given one.
* @param netType the given netType to compare the actual VecNetworkPort's netType to.
* @return this assertion object.
* @throws AssertionError - if the actual VecNetworkPort's netType is not equal to the given one.
*/
public S hasNetType(VecNetType netType) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting netType of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNetType actualNetType = actual.getNetType();
if (!Objects.areEqual(actualNetType, netType)) {
failWithMessage(assertjErrorMessage, actual, netType, actualNetType);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's parentNetworkNode is equal to the given one.
* @param parentNetworkNode the given parentNetworkNode to compare the actual VecNetworkPort's parentNetworkNode to.
* @return this assertion object.
* @throws AssertionError - if the actual VecNetworkPort's parentNetworkNode is not equal to the given one.
*/
public S hasParentNetworkNode(VecNetworkNode parentNetworkNode) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentNetworkNode of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNetworkNode actualParentNetworkNode = actual.getParentNetworkNode();
if (!Objects.areEqual(actualParentNetworkNode, parentNetworkNode)) {
failWithMessage(assertjErrorMessage, actual, parentNetworkNode, actualParentNetworkNode);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's refComponentPort contains the given VecComponentPort elements.
* @param refComponentPort the given elements that should be contained in actual VecNetworkPort's refComponentPort.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refComponentPort does not contain all given VecComponentPort elements.
*/
public S hasRefComponentPort(VecComponentPort... refComponentPort) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// check that given VecComponentPort varargs is not null.
if (refComponentPort == null) failWithMessage("Expecting refComponentPort 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.getRefComponentPort(), refComponentPort);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's refComponentPort contains the given VecComponentPort elements in Collection.
* @param refComponentPort the given elements that should be contained in actual VecNetworkPort's refComponentPort.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refComponentPort does not contain all given VecComponentPort elements.
*/
public S hasRefComponentPort(java.util.Collection extends VecComponentPort> refComponentPort) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// check that given VecComponentPort collection is not null.
if (refComponentPort == null) {
failWithMessage("Expecting refComponentPort 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.getRefComponentPort(), refComponentPort.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's refComponentPort contains only the given VecComponentPort elements and nothing else in whatever order.
* @param refComponentPort the given elements that should be contained in actual VecNetworkPort's refComponentPort.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refComponentPort does not contain all given VecComponentPort elements.
*/
public S hasOnlyRefComponentPort(VecComponentPort... refComponentPort) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// check that given VecComponentPort varargs is not null.
if (refComponentPort == null) failWithMessage("Expecting refComponentPort 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.getRefComponentPort(), refComponentPort);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's refComponentPort contains only the given VecComponentPort elements in Collection and nothing else in whatever order.
* @param refComponentPort the given elements that should be contained in actual VecNetworkPort's refComponentPort.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refComponentPort does not contain all given VecComponentPort elements.
*/
public S hasOnlyRefComponentPort(java.util.Collection extends VecComponentPort> refComponentPort) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// check that given VecComponentPort collection is not null.
if (refComponentPort == null) {
failWithMessage("Expecting refComponentPort 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.getRefComponentPort(), refComponentPort.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's refComponentPort does not contain the given VecComponentPort elements.
*
* @param refComponentPort the given elements that should not be in actual VecNetworkPort's refComponentPort.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refComponentPort contains any given VecComponentPort elements.
*/
public S doesNotHaveRefComponentPort(VecComponentPort... refComponentPort) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// check that given VecComponentPort varargs is not null.
if (refComponentPort == null) failWithMessage("Expecting refComponentPort parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefComponentPort(), refComponentPort);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's refComponentPort does not contain the given VecComponentPort elements in Collection.
*
* @param refComponentPort the given elements that should not be in actual VecNetworkPort's refComponentPort.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refComponentPort contains any given VecComponentPort elements.
*/
public S doesNotHaveRefComponentPort(java.util.Collection extends VecComponentPort> refComponentPort) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// check that given VecComponentPort collection is not null.
if (refComponentPort == null) {
failWithMessage("Expecting refComponentPort 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.getRefComponentPort(), refComponentPort.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort has no refComponentPort.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refComponentPort is not empty.
*/
public S hasNoRefComponentPort() {
// check that actual VecNetworkPort 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 refComponentPort but had :\n <%s>";
// check
if (actual.getRefComponentPort().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefComponentPort());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's refNet contains the given VecNet elements.
* @param refNet the given elements that should be contained in actual VecNetworkPort's refNet.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refNet does not contain all given VecNet elements.
*/
public S hasRefNet(VecNet... refNet) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// check that given VecNet varargs is not null.
if (refNet == null) failWithMessage("Expecting refNet 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.getRefNet(), refNet);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's refNet contains the given VecNet elements in Collection.
* @param refNet the given elements that should be contained in actual VecNetworkPort's refNet.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refNet does not contain all given VecNet elements.
*/
public S hasRefNet(java.util.Collection extends VecNet> refNet) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// check that given VecNet collection is not null.
if (refNet == null) {
failWithMessage("Expecting refNet 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.getRefNet(), refNet.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's refNet contains only the given VecNet elements and nothing else in whatever order.
* @param refNet the given elements that should be contained in actual VecNetworkPort's refNet.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refNet does not contain all given VecNet elements.
*/
public S hasOnlyRefNet(VecNet... refNet) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// check that given VecNet varargs is not null.
if (refNet == null) failWithMessage("Expecting refNet 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.getRefNet(), refNet);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's refNet contains only the given VecNet elements in Collection and nothing else in whatever order.
* @param refNet the given elements that should be contained in actual VecNetworkPort's refNet.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refNet does not contain all given VecNet elements.
*/
public S hasOnlyRefNet(java.util.Collection extends VecNet> refNet) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// check that given VecNet collection is not null.
if (refNet == null) {
failWithMessage("Expecting refNet 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.getRefNet(), refNet.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's refNet does not contain the given VecNet elements.
*
* @param refNet the given elements that should not be in actual VecNetworkPort's refNet.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refNet contains any given VecNet elements.
*/
public S doesNotHaveRefNet(VecNet... refNet) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// check that given VecNet varargs is not null.
if (refNet == null) failWithMessage("Expecting refNet parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefNet(), refNet);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's refNet does not contain the given VecNet elements in Collection.
*
* @param refNet the given elements that should not be in actual VecNetworkPort's refNet.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refNet contains any given VecNet elements.
*/
public S doesNotHaveRefNet(java.util.Collection extends VecNet> refNet) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// check that given VecNet collection is not null.
if (refNet == null) {
failWithMessage("Expecting refNet 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.getRefNet(), refNet.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort has no refNet.
* @return this assertion object.
* @throws AssertionError if the actual VecNetworkPort's refNet is not empty.
*/
public S hasNoRefNet() {
// check that actual VecNetworkPort 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 refNet but had :\n <%s>";
// check
if (actual.getRefNet().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefNet());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecNetworkPort's signalDirection is equal to the given one.
* @param signalDirection the given signalDirection to compare the actual VecNetworkPort's signalDirection to.
* @return this assertion object.
* @throws AssertionError - if the actual VecNetworkPort's signalDirection is not equal to the given one.
*/
public S hasSignalDirection(VecSignalDirection signalDirection) {
// check that actual VecNetworkPort we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting signalDirection of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecSignalDirection actualSignalDirection = actual.getSignalDirection();
if (!Objects.areEqual(actualSignalDirection, signalDirection)) {
failWithMessage(assertjErrorMessage, actual, signalDirection, actualSignalDirection);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy