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