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