
com.foursoft.vecmodel.vec120.AbstractVecExtensionSlotAssert 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 VecExtensionSlot} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecExtensionSlotAssert, A extends VecExtensionSlot> extends AbstractVecConfigurableElementAssert {
/**
* Creates a new {@link AbstractVecExtensionSlotAssert}
to make assertions on actual VecExtensionSlot.
* @param actual the VecExtensionSlot we want to make assertions on.
*/
protected AbstractVecExtensionSlotAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecExtensionSlot's allowedInserts contains the given VecPartRelation elements.
* @param allowedInserts the given elements that should be contained in actual VecExtensionSlot's allowedInserts.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's allowedInserts does not contain all given VecPartRelation elements.
*/
public S hasAllowedInserts(VecPartRelation... allowedInserts) {
// check that actual VecExtensionSlot we want to make assertions on is not null.
isNotNull();
// check that given VecPartRelation varargs is not null.
if (allowedInserts == null) failWithMessage("Expecting allowedInserts 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.getAllowedInserts(), allowedInserts);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot's allowedInserts contains the given VecPartRelation elements in Collection.
* @param allowedInserts the given elements that should be contained in actual VecExtensionSlot's allowedInserts.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's allowedInserts does not contain all given VecPartRelation elements.
*/
public S hasAllowedInserts(java.util.Collection extends VecPartRelation> allowedInserts) {
// check that actual VecExtensionSlot we want to make assertions on is not null.
isNotNull();
// check that given VecPartRelation collection is not null.
if (allowedInserts == null) {
failWithMessage("Expecting allowedInserts 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.getAllowedInserts(), allowedInserts.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot's allowedInserts contains only the given VecPartRelation elements and nothing else in whatever order.
* @param allowedInserts the given elements that should be contained in actual VecExtensionSlot's allowedInserts.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's allowedInserts does not contain all given VecPartRelation elements.
*/
public S hasOnlyAllowedInserts(VecPartRelation... allowedInserts) {
// check that actual VecExtensionSlot we want to make assertions on is not null.
isNotNull();
// check that given VecPartRelation varargs is not null.
if (allowedInserts == null) failWithMessage("Expecting allowedInserts 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.getAllowedInserts(), allowedInserts);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot's allowedInserts contains only the given VecPartRelation elements in Collection and nothing else in whatever order.
* @param allowedInserts the given elements that should be contained in actual VecExtensionSlot's allowedInserts.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's allowedInserts does not contain all given VecPartRelation elements.
*/
public S hasOnlyAllowedInserts(java.util.Collection extends VecPartRelation> allowedInserts) {
// check that actual VecExtensionSlot we want to make assertions on is not null.
isNotNull();
// check that given VecPartRelation collection is not null.
if (allowedInserts == null) {
failWithMessage("Expecting allowedInserts 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.getAllowedInserts(), allowedInserts.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot's allowedInserts does not contain the given VecPartRelation elements.
*
* @param allowedInserts the given elements that should not be in actual VecExtensionSlot's allowedInserts.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's allowedInserts contains any given VecPartRelation elements.
*/
public S doesNotHaveAllowedInserts(VecPartRelation... allowedInserts) {
// check that actual VecExtensionSlot we want to make assertions on is not null.
isNotNull();
// check that given VecPartRelation varargs is not null.
if (allowedInserts == null) failWithMessage("Expecting allowedInserts parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getAllowedInserts(), allowedInserts);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot's allowedInserts does not contain the given VecPartRelation elements in Collection.
*
* @param allowedInserts the given elements that should not be in actual VecExtensionSlot's allowedInserts.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's allowedInserts contains any given VecPartRelation elements.
*/
public S doesNotHaveAllowedInserts(java.util.Collection extends VecPartRelation> allowedInserts) {
// check that actual VecExtensionSlot we want to make assertions on is not null.
isNotNull();
// check that given VecPartRelation collection is not null.
if (allowedInserts == null) {
failWithMessage("Expecting allowedInserts 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.getAllowedInserts(), allowedInserts.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot has no allowedInserts.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's allowedInserts is not empty.
*/
public S hasNoAllowedInserts() {
// check that actual VecExtensionSlot 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 allowedInserts but had :\n <%s>";
// check
if (actual.getAllowedInserts().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getAllowedInserts());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot's identification is equal to the given one.
* @param identification the given identification to compare the actual VecExtensionSlot's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecExtensionSlot's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecExtensionSlot 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 VecExtensionSlot's parentEEComponentSpecification is equal to the given one.
* @param parentEEComponentSpecification the given parentEEComponentSpecification to compare the actual VecExtensionSlot's parentEEComponentSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecExtensionSlot's parentEEComponentSpecification is not equal to the given one.
*/
public S hasParentEEComponentSpecification(VecEEComponentSpecification parentEEComponentSpecification) {
// check that actual VecExtensionSlot 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 VecExtensionSlot's refExtensionSlotReference contains the given VecExtensionSlotReference elements.
* @param refExtensionSlotReference the given elements that should be contained in actual VecExtensionSlot's refExtensionSlotReference.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's refExtensionSlotReference does not contain all given VecExtensionSlotReference elements.
*/
public S hasRefExtensionSlotReference(VecExtensionSlotReference... refExtensionSlotReference) {
// check that actual VecExtensionSlot we want to make assertions on is not null.
isNotNull();
// check that given VecExtensionSlotReference varargs is not null.
if (refExtensionSlotReference == null) failWithMessage("Expecting refExtensionSlotReference 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.getRefExtensionSlotReference(), refExtensionSlotReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot's refExtensionSlotReference contains the given VecExtensionSlotReference elements in Collection.
* @param refExtensionSlotReference the given elements that should be contained in actual VecExtensionSlot's refExtensionSlotReference.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's refExtensionSlotReference does not contain all given VecExtensionSlotReference elements.
*/
public S hasRefExtensionSlotReference(java.util.Collection extends VecExtensionSlotReference> refExtensionSlotReference) {
// check that actual VecExtensionSlot we want to make assertions on is not null.
isNotNull();
// check that given VecExtensionSlotReference collection is not null.
if (refExtensionSlotReference == null) {
failWithMessage("Expecting refExtensionSlotReference 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.getRefExtensionSlotReference(), refExtensionSlotReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot's refExtensionSlotReference contains only the given VecExtensionSlotReference elements and nothing else in whatever order.
* @param refExtensionSlotReference the given elements that should be contained in actual VecExtensionSlot's refExtensionSlotReference.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's refExtensionSlotReference does not contain all given VecExtensionSlotReference elements.
*/
public S hasOnlyRefExtensionSlotReference(VecExtensionSlotReference... refExtensionSlotReference) {
// check that actual VecExtensionSlot we want to make assertions on is not null.
isNotNull();
// check that given VecExtensionSlotReference varargs is not null.
if (refExtensionSlotReference == null) failWithMessage("Expecting refExtensionSlotReference 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.getRefExtensionSlotReference(), refExtensionSlotReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot's refExtensionSlotReference contains only the given VecExtensionSlotReference elements in Collection and nothing else in whatever order.
* @param refExtensionSlotReference the given elements that should be contained in actual VecExtensionSlot's refExtensionSlotReference.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's refExtensionSlotReference does not contain all given VecExtensionSlotReference elements.
*/
public S hasOnlyRefExtensionSlotReference(java.util.Collection extends VecExtensionSlotReference> refExtensionSlotReference) {
// check that actual VecExtensionSlot we want to make assertions on is not null.
isNotNull();
// check that given VecExtensionSlotReference collection is not null.
if (refExtensionSlotReference == null) {
failWithMessage("Expecting refExtensionSlotReference 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.getRefExtensionSlotReference(), refExtensionSlotReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot's refExtensionSlotReference does not contain the given VecExtensionSlotReference elements.
*
* @param refExtensionSlotReference the given elements that should not be in actual VecExtensionSlot's refExtensionSlotReference.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's refExtensionSlotReference contains any given VecExtensionSlotReference elements.
*/
public S doesNotHaveRefExtensionSlotReference(VecExtensionSlotReference... refExtensionSlotReference) {
// check that actual VecExtensionSlot we want to make assertions on is not null.
isNotNull();
// check that given VecExtensionSlotReference varargs is not null.
if (refExtensionSlotReference == null) failWithMessage("Expecting refExtensionSlotReference parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefExtensionSlotReference(), refExtensionSlotReference);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot's refExtensionSlotReference does not contain the given VecExtensionSlotReference elements in Collection.
*
* @param refExtensionSlotReference the given elements that should not be in actual VecExtensionSlot's refExtensionSlotReference.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's refExtensionSlotReference contains any given VecExtensionSlotReference elements.
*/
public S doesNotHaveRefExtensionSlotReference(java.util.Collection extends VecExtensionSlotReference> refExtensionSlotReference) {
// check that actual VecExtensionSlot we want to make assertions on is not null.
isNotNull();
// check that given VecExtensionSlotReference collection is not null.
if (refExtensionSlotReference == null) {
failWithMessage("Expecting refExtensionSlotReference 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.getRefExtensionSlotReference(), refExtensionSlotReference.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecExtensionSlot has no refExtensionSlotReference.
* @return this assertion object.
* @throws AssertionError if the actual VecExtensionSlot's refExtensionSlotReference is not empty.
*/
public S hasNoRefExtensionSlotReference() {
// check that actual VecExtensionSlot 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 refExtensionSlotReference but had :\n <%s>";
// check
if (actual.getRefExtensionSlotReference().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefExtensionSlotReference());
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy