
com.foursoft.vecmodel.vec120.AbstractVecInternalComponentConnectionAssert 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 VecInternalComponentConnection} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecInternalComponentConnectionAssert, A extends VecInternalComponentConnection> extends AbstractVecConfigurableElementAssert {
/**
* Creates a new {@link AbstractVecInternalComponentConnectionAssert}
to make assertions on actual VecInternalComponentConnection.
* @param actual the VecInternalComponentConnection we want to make assertions on.
*/
protected AbstractVecInternalComponentConnectionAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecInternalComponentConnection's conductorSpecification is equal to the given one.
* @param conductorSpecification the given conductorSpecification to compare the actual VecInternalComponentConnection's conductorSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecInternalComponentConnection's conductorSpecification is not equal to the given one.
*/
public S hasConductorSpecification(VecConductorSpecification conductorSpecification) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting conductorSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecConductorSpecification actualConductorSpecification = actual.getConductorSpecification();
if (!Objects.areEqual(actualConductorSpecification, conductorSpecification)) {
failWithMessage(assertjErrorMessage, actual, conductorSpecification, actualConductorSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's identification is equal to the given one.
* @param identification the given identification to compare the actual VecInternalComponentConnection's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecInternalComponentConnection's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecInternalComponentConnection 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 VecInternalComponentConnection's parentEEComponentSpecification is equal to the given one.
* @param parentEEComponentSpecification the given parentEEComponentSpecification to compare the actual VecInternalComponentConnection's parentEEComponentSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecInternalComponentConnection's parentEEComponentSpecification is not equal to the given one.
*/
public S hasParentEEComponentSpecification(VecEEComponentSpecification parentEEComponentSpecification) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentEEComponentSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecEEComponentSpecification actualParentEEComponentSpecification = actual.getParentEEComponentSpecification();
if (!Objects.areEqual(actualParentEEComponentSpecification, parentEEComponentSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentEEComponentSpecification, actualParentEEComponentSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's pins contains the given VecPinComponent elements.
* @param pins the given elements that should be contained in actual VecInternalComponentConnection's pins.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's pins does not contain all given VecPinComponent elements.
*/
public S hasPins(VecPinComponent... pins) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// check that given VecPinComponent varargs is not null.
if (pins == null) failWithMessage("Expecting pins 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.getPins(), pins);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's pins contains the given VecPinComponent elements in Collection.
* @param pins the given elements that should be contained in actual VecInternalComponentConnection's pins.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's pins does not contain all given VecPinComponent elements.
*/
public S hasPins(java.util.Collection extends VecPinComponent> pins) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// check that given VecPinComponent collection is not null.
if (pins == null) {
failWithMessage("Expecting pins 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.getPins(), pins.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's pins contains only the given VecPinComponent elements and nothing else in whatever order.
* @param pins the given elements that should be contained in actual VecInternalComponentConnection's pins.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's pins does not contain all given VecPinComponent elements.
*/
public S hasOnlyPins(VecPinComponent... pins) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// check that given VecPinComponent varargs is not null.
if (pins == null) failWithMessage("Expecting pins 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.getPins(), pins);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's pins contains only the given VecPinComponent elements in Collection and nothing else in whatever order.
* @param pins the given elements that should be contained in actual VecInternalComponentConnection's pins.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's pins does not contain all given VecPinComponent elements.
*/
public S hasOnlyPins(java.util.Collection extends VecPinComponent> pins) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// check that given VecPinComponent collection is not null.
if (pins == null) {
failWithMessage("Expecting pins 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.getPins(), pins.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's pins does not contain the given VecPinComponent elements.
*
* @param pins the given elements that should not be in actual VecInternalComponentConnection's pins.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's pins contains any given VecPinComponent elements.
*/
public S doesNotHavePins(VecPinComponent... pins) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// check that given VecPinComponent varargs is not null.
if (pins == null) failWithMessage("Expecting pins parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getPins(), pins);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's pins does not contain the given VecPinComponent elements in Collection.
*
* @param pins the given elements that should not be in actual VecInternalComponentConnection's pins.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's pins contains any given VecPinComponent elements.
*/
public S doesNotHavePins(java.util.Collection extends VecPinComponent> pins) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// check that given VecPinComponent collection is not null.
if (pins == null) {
failWithMessage("Expecting pins 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.getPins(), pins.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection has no pins.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's pins is not empty.
*/
public S hasNoPins() {
// check that actual VecInternalComponentConnection 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 pins but had :\n <%s>";
// check
if (actual.getPins().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getPins());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's refSwitchingState contains the given VecSwitchingState elements.
* @param refSwitchingState the given elements that should be contained in actual VecInternalComponentConnection's refSwitchingState.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's refSwitchingState does not contain all given VecSwitchingState elements.
*/
public S hasRefSwitchingState(VecSwitchingState... refSwitchingState) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// check that given VecSwitchingState varargs is not null.
if (refSwitchingState == null) failWithMessage("Expecting refSwitchingState 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.getRefSwitchingState(), refSwitchingState);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's refSwitchingState contains the given VecSwitchingState elements in Collection.
* @param refSwitchingState the given elements that should be contained in actual VecInternalComponentConnection's refSwitchingState.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's refSwitchingState does not contain all given VecSwitchingState elements.
*/
public S hasRefSwitchingState(java.util.Collection extends VecSwitchingState> refSwitchingState) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// check that given VecSwitchingState collection is not null.
if (refSwitchingState == null) {
failWithMessage("Expecting refSwitchingState 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.getRefSwitchingState(), refSwitchingState.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's refSwitchingState contains only the given VecSwitchingState elements and nothing else in whatever order.
* @param refSwitchingState the given elements that should be contained in actual VecInternalComponentConnection's refSwitchingState.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's refSwitchingState does not contain all given VecSwitchingState elements.
*/
public S hasOnlyRefSwitchingState(VecSwitchingState... refSwitchingState) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// check that given VecSwitchingState varargs is not null.
if (refSwitchingState == null) failWithMessage("Expecting refSwitchingState 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.getRefSwitchingState(), refSwitchingState);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's refSwitchingState contains only the given VecSwitchingState elements in Collection and nothing else in whatever order.
* @param refSwitchingState the given elements that should be contained in actual VecInternalComponentConnection's refSwitchingState.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's refSwitchingState does not contain all given VecSwitchingState elements.
*/
public S hasOnlyRefSwitchingState(java.util.Collection extends VecSwitchingState> refSwitchingState) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// check that given VecSwitchingState collection is not null.
if (refSwitchingState == null) {
failWithMessage("Expecting refSwitchingState 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.getRefSwitchingState(), refSwitchingState.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's refSwitchingState does not contain the given VecSwitchingState elements.
*
* @param refSwitchingState the given elements that should not be in actual VecInternalComponentConnection's refSwitchingState.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's refSwitchingState contains any given VecSwitchingState elements.
*/
public S doesNotHaveRefSwitchingState(VecSwitchingState... refSwitchingState) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// check that given VecSwitchingState varargs is not null.
if (refSwitchingState == null) failWithMessage("Expecting refSwitchingState parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefSwitchingState(), refSwitchingState);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection's refSwitchingState does not contain the given VecSwitchingState elements in Collection.
*
* @param refSwitchingState the given elements that should not be in actual VecInternalComponentConnection's refSwitchingState.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's refSwitchingState contains any given VecSwitchingState elements.
*/
public S doesNotHaveRefSwitchingState(java.util.Collection extends VecSwitchingState> refSwitchingState) {
// check that actual VecInternalComponentConnection we want to make assertions on is not null.
isNotNull();
// check that given VecSwitchingState collection is not null.
if (refSwitchingState == null) {
failWithMessage("Expecting refSwitchingState 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.getRefSwitchingState(), refSwitchingState.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInternalComponentConnection has no refSwitchingState.
* @return this assertion object.
* @throws AssertionError if the actual VecInternalComponentConnection's refSwitchingState is not empty.
*/
public S hasNoRefSwitchingState() {
// check that actual VecInternalComponentConnection 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 refSwitchingState but had :\n <%s>";
// check
if (actual.getRefSwitchingState().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefSwitchingState());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy