
com.foursoft.vecmodel.vec120.AbstractVecTerminalPairingSpecificationAssert 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;
/**
* Abstract base class for {@link VecTerminalPairingSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecTerminalPairingSpecificationAssert, A extends VecTerminalPairingSpecification> extends AbstractVecSpecificationAssert {
/**
* Creates a new {@link AbstractVecTerminalPairingSpecificationAssert}
to make assertions on actual VecTerminalPairingSpecification.
* @param actual the VecTerminalPairingSpecification we want to make assertions on.
*/
protected AbstractVecTerminalPairingSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecTerminalPairingSpecification's terminalPairings contains the given VecTerminalPairing elements.
* @param terminalPairings the given elements that should be contained in actual VecTerminalPairingSpecification's terminalPairings.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalPairingSpecification's terminalPairings does not contain all given VecTerminalPairing elements.
*/
public S hasTerminalPairings(VecTerminalPairing... terminalPairings) {
// check that actual VecTerminalPairingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecTerminalPairing varargs is not null.
if (terminalPairings == null) failWithMessage("Expecting terminalPairings 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.getTerminalPairings(), terminalPairings);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalPairingSpecification's terminalPairings contains the given VecTerminalPairing elements in Collection.
* @param terminalPairings the given elements that should be contained in actual VecTerminalPairingSpecification's terminalPairings.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalPairingSpecification's terminalPairings does not contain all given VecTerminalPairing elements.
*/
public S hasTerminalPairings(java.util.Collection extends VecTerminalPairing> terminalPairings) {
// check that actual VecTerminalPairingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecTerminalPairing collection is not null.
if (terminalPairings == null) {
failWithMessage("Expecting terminalPairings 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.getTerminalPairings(), terminalPairings.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalPairingSpecification's terminalPairings contains only the given VecTerminalPairing elements and nothing else in whatever order.
* @param terminalPairings the given elements that should be contained in actual VecTerminalPairingSpecification's terminalPairings.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalPairingSpecification's terminalPairings does not contain all given VecTerminalPairing elements.
*/
public S hasOnlyTerminalPairings(VecTerminalPairing... terminalPairings) {
// check that actual VecTerminalPairingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecTerminalPairing varargs is not null.
if (terminalPairings == null) failWithMessage("Expecting terminalPairings 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.getTerminalPairings(), terminalPairings);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalPairingSpecification's terminalPairings contains only the given VecTerminalPairing elements in Collection and nothing else in whatever order.
* @param terminalPairings the given elements that should be contained in actual VecTerminalPairingSpecification's terminalPairings.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalPairingSpecification's terminalPairings does not contain all given VecTerminalPairing elements.
*/
public S hasOnlyTerminalPairings(java.util.Collection extends VecTerminalPairing> terminalPairings) {
// check that actual VecTerminalPairingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecTerminalPairing collection is not null.
if (terminalPairings == null) {
failWithMessage("Expecting terminalPairings 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.getTerminalPairings(), terminalPairings.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalPairingSpecification's terminalPairings does not contain the given VecTerminalPairing elements.
*
* @param terminalPairings the given elements that should not be in actual VecTerminalPairingSpecification's terminalPairings.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalPairingSpecification's terminalPairings contains any given VecTerminalPairing elements.
*/
public S doesNotHaveTerminalPairings(VecTerminalPairing... terminalPairings) {
// check that actual VecTerminalPairingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecTerminalPairing varargs is not null.
if (terminalPairings == null) failWithMessage("Expecting terminalPairings parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getTerminalPairings(), terminalPairings);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalPairingSpecification's terminalPairings does not contain the given VecTerminalPairing elements in Collection.
*
* @param terminalPairings the given elements that should not be in actual VecTerminalPairingSpecification's terminalPairings.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalPairingSpecification's terminalPairings contains any given VecTerminalPairing elements.
*/
public S doesNotHaveTerminalPairings(java.util.Collection extends VecTerminalPairing> terminalPairings) {
// check that actual VecTerminalPairingSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecTerminalPairing collection is not null.
if (terminalPairings == null) {
failWithMessage("Expecting terminalPairings 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.getTerminalPairings(), terminalPairings.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTerminalPairingSpecification has no terminalPairings.
* @return this assertion object.
* @throws AssertionError if the actual VecTerminalPairingSpecification's terminalPairings is not empty.
*/
public S hasNoTerminalPairings() {
// check that actual VecTerminalPairingSpecification 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 terminalPairings but had :\n <%s>";
// check
if (actual.getTerminalPairings().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getTerminalPairings());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy