
com.foursoft.vecmodel.vec120.AbstractVecInsulationSpecificationAssert 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 VecInsulationSpecification} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecInsulationSpecificationAssert, A extends VecInsulationSpecification> extends AbstractVecSpecificationAssert {
/**
* Creates a new {@link AbstractVecInsulationSpecificationAssert}
to make assertions on actual VecInsulationSpecification.
* @param actual the VecInsulationSpecification we want to make assertions on.
*/
protected AbstractVecInsulationSpecificationAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecInsulationSpecification's baseColors contains the given VecColor elements.
* @param baseColors the given elements that should be contained in actual VecInsulationSpecification's baseColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's baseColors does not contain all given VecColor elements.
*/
public S hasBaseColors(VecColor... baseColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor varargs is not null.
if (baseColors == null) failWithMessage("Expecting baseColors 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.getBaseColors(), baseColors);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's baseColors contains the given VecColor elements in Collection.
* @param baseColors the given elements that should be contained in actual VecInsulationSpecification's baseColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's baseColors does not contain all given VecColor elements.
*/
public S hasBaseColors(java.util.Collection extends VecColor> baseColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor collection is not null.
if (baseColors == null) {
failWithMessage("Expecting baseColors 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.getBaseColors(), baseColors.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's baseColors contains only the given VecColor elements and nothing else in whatever order.
* @param baseColors the given elements that should be contained in actual VecInsulationSpecification's baseColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's baseColors does not contain all given VecColor elements.
*/
public S hasOnlyBaseColors(VecColor... baseColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor varargs is not null.
if (baseColors == null) failWithMessage("Expecting baseColors 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.getBaseColors(), baseColors);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's baseColors contains only the given VecColor elements in Collection and nothing else in whatever order.
* @param baseColors the given elements that should be contained in actual VecInsulationSpecification's baseColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's baseColors does not contain all given VecColor elements.
*/
public S hasOnlyBaseColors(java.util.Collection extends VecColor> baseColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor collection is not null.
if (baseColors == null) {
failWithMessage("Expecting baseColors 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.getBaseColors(), baseColors.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's baseColors does not contain the given VecColor elements.
*
* @param baseColors the given elements that should not be in actual VecInsulationSpecification's baseColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's baseColors contains any given VecColor elements.
*/
public S doesNotHaveBaseColors(VecColor... baseColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor varargs is not null.
if (baseColors == null) failWithMessage("Expecting baseColors parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getBaseColors(), baseColors);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's baseColors does not contain the given VecColor elements in Collection.
*
* @param baseColors the given elements that should not be in actual VecInsulationSpecification's baseColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's baseColors contains any given VecColor elements.
*/
public S doesNotHaveBaseColors(java.util.Collection extends VecColor> baseColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor collection is not null.
if (baseColors == null) {
failWithMessage("Expecting baseColors 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.getBaseColors(), baseColors.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification has no baseColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's baseColors is not empty.
*/
public S hasNoBaseColors() {
// check that actual VecInsulationSpecification 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 baseColors but had :\n <%s>";
// check
if (actual.getBaseColors().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getBaseColors());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's firstIdentificationColors contains the given VecColor elements.
* @param firstIdentificationColors the given elements that should be contained in actual VecInsulationSpecification's firstIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's firstIdentificationColors does not contain all given VecColor elements.
*/
public S hasFirstIdentificationColors(VecColor... firstIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor varargs is not null.
if (firstIdentificationColors == null) failWithMessage("Expecting firstIdentificationColors 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.getFirstIdentificationColors(), firstIdentificationColors);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's firstIdentificationColors contains the given VecColor elements in Collection.
* @param firstIdentificationColors the given elements that should be contained in actual VecInsulationSpecification's firstIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's firstIdentificationColors does not contain all given VecColor elements.
*/
public S hasFirstIdentificationColors(java.util.Collection extends VecColor> firstIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor collection is not null.
if (firstIdentificationColors == null) {
failWithMessage("Expecting firstIdentificationColors 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.getFirstIdentificationColors(), firstIdentificationColors.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's firstIdentificationColors contains only the given VecColor elements and nothing else in whatever order.
* @param firstIdentificationColors the given elements that should be contained in actual VecInsulationSpecification's firstIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's firstIdentificationColors does not contain all given VecColor elements.
*/
public S hasOnlyFirstIdentificationColors(VecColor... firstIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor varargs is not null.
if (firstIdentificationColors == null) failWithMessage("Expecting firstIdentificationColors 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.getFirstIdentificationColors(), firstIdentificationColors);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's firstIdentificationColors contains only the given VecColor elements in Collection and nothing else in whatever order.
* @param firstIdentificationColors the given elements that should be contained in actual VecInsulationSpecification's firstIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's firstIdentificationColors does not contain all given VecColor elements.
*/
public S hasOnlyFirstIdentificationColors(java.util.Collection extends VecColor> firstIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor collection is not null.
if (firstIdentificationColors == null) {
failWithMessage("Expecting firstIdentificationColors 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.getFirstIdentificationColors(), firstIdentificationColors.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's firstIdentificationColors does not contain the given VecColor elements.
*
* @param firstIdentificationColors the given elements that should not be in actual VecInsulationSpecification's firstIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's firstIdentificationColors contains any given VecColor elements.
*/
public S doesNotHaveFirstIdentificationColors(VecColor... firstIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor varargs is not null.
if (firstIdentificationColors == null) failWithMessage("Expecting firstIdentificationColors parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getFirstIdentificationColors(), firstIdentificationColors);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's firstIdentificationColors does not contain the given VecColor elements in Collection.
*
* @param firstIdentificationColors the given elements that should not be in actual VecInsulationSpecification's firstIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's firstIdentificationColors contains any given VecColor elements.
*/
public S doesNotHaveFirstIdentificationColors(java.util.Collection extends VecColor> firstIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor collection is not null.
if (firstIdentificationColors == null) {
failWithMessage("Expecting firstIdentificationColors 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.getFirstIdentificationColors(), firstIdentificationColors.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification has no firstIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's firstIdentificationColors is not empty.
*/
public S hasNoFirstIdentificationColors() {
// check that actual VecInsulationSpecification 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 firstIdentificationColors but had :\n <%s>";
// check
if (actual.getFirstIdentificationColors().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getFirstIdentificationColors());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's labelIdentificationColors contains the given VecColor elements.
* @param labelIdentificationColors the given elements that should be contained in actual VecInsulationSpecification's labelIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's labelIdentificationColors does not contain all given VecColor elements.
*/
public S hasLabelIdentificationColors(VecColor... labelIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor varargs is not null.
if (labelIdentificationColors == null) failWithMessage("Expecting labelIdentificationColors 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.getLabelIdentificationColors(), labelIdentificationColors);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's labelIdentificationColors contains the given VecColor elements in Collection.
* @param labelIdentificationColors the given elements that should be contained in actual VecInsulationSpecification's labelIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's labelIdentificationColors does not contain all given VecColor elements.
*/
public S hasLabelIdentificationColors(java.util.Collection extends VecColor> labelIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor collection is not null.
if (labelIdentificationColors == null) {
failWithMessage("Expecting labelIdentificationColors 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.getLabelIdentificationColors(), labelIdentificationColors.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's labelIdentificationColors contains only the given VecColor elements and nothing else in whatever order.
* @param labelIdentificationColors the given elements that should be contained in actual VecInsulationSpecification's labelIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's labelIdentificationColors does not contain all given VecColor elements.
*/
public S hasOnlyLabelIdentificationColors(VecColor... labelIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor varargs is not null.
if (labelIdentificationColors == null) failWithMessage("Expecting labelIdentificationColors 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.getLabelIdentificationColors(), labelIdentificationColors);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's labelIdentificationColors contains only the given VecColor elements in Collection and nothing else in whatever order.
* @param labelIdentificationColors the given elements that should be contained in actual VecInsulationSpecification's labelIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's labelIdentificationColors does not contain all given VecColor elements.
*/
public S hasOnlyLabelIdentificationColors(java.util.Collection extends VecColor> labelIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor collection is not null.
if (labelIdentificationColors == null) {
failWithMessage("Expecting labelIdentificationColors 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.getLabelIdentificationColors(), labelIdentificationColors.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's labelIdentificationColors does not contain the given VecColor elements.
*
* @param labelIdentificationColors the given elements that should not be in actual VecInsulationSpecification's labelIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's labelIdentificationColors contains any given VecColor elements.
*/
public S doesNotHaveLabelIdentificationColors(VecColor... labelIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor varargs is not null.
if (labelIdentificationColors == null) failWithMessage("Expecting labelIdentificationColors parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getLabelIdentificationColors(), labelIdentificationColors);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's labelIdentificationColors does not contain the given VecColor elements in Collection.
*
* @param labelIdentificationColors the given elements that should not be in actual VecInsulationSpecification's labelIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's labelIdentificationColors contains any given VecColor elements.
*/
public S doesNotHaveLabelIdentificationColors(java.util.Collection extends VecColor> labelIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor collection is not null.
if (labelIdentificationColors == null) {
failWithMessage("Expecting labelIdentificationColors 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.getLabelIdentificationColors(), labelIdentificationColors.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification has no labelIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's labelIdentificationColors is not empty.
*/
public S hasNoLabelIdentificationColors() {
// check that actual VecInsulationSpecification 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 labelIdentificationColors but had :\n <%s>";
// check
if (actual.getLabelIdentificationColors().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getLabelIdentificationColors());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's labelIdentificationType is equal to the given one.
* @param labelIdentificationType the given labelIdentificationType to compare the actual VecInsulationSpecification's labelIdentificationType to.
* @return this assertion object.
* @throws AssertionError - if the actual VecInsulationSpecification's labelIdentificationType is not equal to the given one.
*/
public S hasLabelIdentificationType(String labelIdentificationType) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting labelIdentificationType of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualLabelIdentificationType = actual.getLabelIdentificationType();
if (!Objects.areEqual(actualLabelIdentificationType, labelIdentificationType)) {
failWithMessage(assertjErrorMessage, actual, labelIdentificationType, actualLabelIdentificationType);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's labelIdentificationValue is equal to the given one.
* @param labelIdentificationValue the given labelIdentificationValue to compare the actual VecInsulationSpecification's labelIdentificationValue to.
* @return this assertion object.
* @throws AssertionError - if the actual VecInsulationSpecification's labelIdentificationValue is not equal to the given one.
*/
public S hasLabelIdentificationValue(String labelIdentificationValue) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting labelIdentificationValue of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualLabelIdentificationValue = actual.getLabelIdentificationValue();
if (!Objects.areEqual(actualLabelIdentificationValue, labelIdentificationValue)) {
failWithMessage(assertjErrorMessage, actual, labelIdentificationValue, actualLabelIdentificationValue);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's materials contains the given VecMaterial elements.
* @param materials the given elements that should be contained in actual VecInsulationSpecification's materials.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's materials does not contain all given VecMaterial elements.
*/
public S hasMaterials(VecMaterial... materials) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecMaterial varargs is not null.
if (materials == null) failWithMessage("Expecting materials 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.getMaterials(), materials);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's materials contains the given VecMaterial elements in Collection.
* @param materials the given elements that should be contained in actual VecInsulationSpecification's materials.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's materials does not contain all given VecMaterial elements.
*/
public S hasMaterials(java.util.Collection extends VecMaterial> materials) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecMaterial collection is not null.
if (materials == null) {
failWithMessage("Expecting materials 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.getMaterials(), materials.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's materials contains only the given VecMaterial elements and nothing else in whatever order.
* @param materials the given elements that should be contained in actual VecInsulationSpecification's materials.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's materials does not contain all given VecMaterial elements.
*/
public S hasOnlyMaterials(VecMaterial... materials) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecMaterial varargs is not null.
if (materials == null) failWithMessage("Expecting materials 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.getMaterials(), materials);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's materials contains only the given VecMaterial elements in Collection and nothing else in whatever order.
* @param materials the given elements that should be contained in actual VecInsulationSpecification's materials.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's materials does not contain all given VecMaterial elements.
*/
public S hasOnlyMaterials(java.util.Collection extends VecMaterial> materials) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecMaterial collection is not null.
if (materials == null) {
failWithMessage("Expecting materials 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.getMaterials(), materials.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's materials does not contain the given VecMaterial elements.
*
* @param materials the given elements that should not be in actual VecInsulationSpecification's materials.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's materials contains any given VecMaterial elements.
*/
public S doesNotHaveMaterials(VecMaterial... materials) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecMaterial varargs is not null.
if (materials == null) failWithMessage("Expecting materials parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getMaterials(), materials);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's materials does not contain the given VecMaterial elements in Collection.
*
* @param materials the given elements that should not be in actual VecInsulationSpecification's materials.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's materials contains any given VecMaterial elements.
*/
public S doesNotHaveMaterials(java.util.Collection extends VecMaterial> materials) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecMaterial collection is not null.
if (materials == null) {
failWithMessage("Expecting materials 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.getMaterials(), materials.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification has no materials.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's materials is not empty.
*/
public S hasNoMaterials() {
// check that actual VecInsulationSpecification 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 materials but had :\n <%s>";
// check
if (actual.getMaterials().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getMaterials());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's refSignal contains the given VecSignal elements.
* @param refSignal the given elements that should be contained in actual VecInsulationSpecification's refSignal.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refSignal does not contain all given VecSignal elements.
*/
public S hasRefSignal(VecSignal... refSignal) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSignal varargs is not null.
if (refSignal == null) failWithMessage("Expecting refSignal 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.getRefSignal(), refSignal);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's refSignal contains the given VecSignal elements in Collection.
* @param refSignal the given elements that should be contained in actual VecInsulationSpecification's refSignal.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refSignal does not contain all given VecSignal elements.
*/
public S hasRefSignal(java.util.Collection extends VecSignal> refSignal) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSignal collection is not null.
if (refSignal == null) {
failWithMessage("Expecting refSignal 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.getRefSignal(), refSignal.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's refSignal contains only the given VecSignal elements and nothing else in whatever order.
* @param refSignal the given elements that should be contained in actual VecInsulationSpecification's refSignal.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refSignal does not contain all given VecSignal elements.
*/
public S hasOnlyRefSignal(VecSignal... refSignal) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSignal varargs is not null.
if (refSignal == null) failWithMessage("Expecting refSignal 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.getRefSignal(), refSignal);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's refSignal contains only the given VecSignal elements in Collection and nothing else in whatever order.
* @param refSignal the given elements that should be contained in actual VecInsulationSpecification's refSignal.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refSignal does not contain all given VecSignal elements.
*/
public S hasOnlyRefSignal(java.util.Collection extends VecSignal> refSignal) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSignal collection is not null.
if (refSignal == null) {
failWithMessage("Expecting refSignal 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.getRefSignal(), refSignal.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's refSignal does not contain the given VecSignal elements.
*
* @param refSignal the given elements that should not be in actual VecInsulationSpecification's refSignal.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refSignal contains any given VecSignal elements.
*/
public S doesNotHaveRefSignal(VecSignal... refSignal) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSignal varargs is not null.
if (refSignal == null) failWithMessage("Expecting refSignal parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefSignal(), refSignal);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's refSignal does not contain the given VecSignal elements in Collection.
*
* @param refSignal the given elements that should not be in actual VecInsulationSpecification's refSignal.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refSignal contains any given VecSignal elements.
*/
public S doesNotHaveRefSignal(java.util.Collection extends VecSignal> refSignal) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecSignal collection is not null.
if (refSignal == null) {
failWithMessage("Expecting refSignal 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.getRefSignal(), refSignal.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification has no refSignal.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refSignal is not empty.
*/
public S hasNoRefSignal() {
// check that actual VecInsulationSpecification 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 refSignal but had :\n <%s>";
// check
if (actual.getRefSignal().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefSignal());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's refWireElementSpecification contains the given VecWireElementSpecification elements.
* @param refWireElementSpecification the given elements that should be contained in actual VecInsulationSpecification's refWireElementSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refWireElementSpecification does not contain all given VecWireElementSpecification elements.
*/
public S hasRefWireElementSpecification(VecWireElementSpecification... refWireElementSpecification) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecWireElementSpecification varargs is not null.
if (refWireElementSpecification == null) failWithMessage("Expecting refWireElementSpecification 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.getRefWireElementSpecification(), refWireElementSpecification);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's refWireElementSpecification contains the given VecWireElementSpecification elements in Collection.
* @param refWireElementSpecification the given elements that should be contained in actual VecInsulationSpecification's refWireElementSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refWireElementSpecification does not contain all given VecWireElementSpecification elements.
*/
public S hasRefWireElementSpecification(java.util.Collection extends VecWireElementSpecification> refWireElementSpecification) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecWireElementSpecification collection is not null.
if (refWireElementSpecification == null) {
failWithMessage("Expecting refWireElementSpecification 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.getRefWireElementSpecification(), refWireElementSpecification.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's refWireElementSpecification contains only the given VecWireElementSpecification elements and nothing else in whatever order.
* @param refWireElementSpecification the given elements that should be contained in actual VecInsulationSpecification's refWireElementSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refWireElementSpecification does not contain all given VecWireElementSpecification elements.
*/
public S hasOnlyRefWireElementSpecification(VecWireElementSpecification... refWireElementSpecification) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecWireElementSpecification varargs is not null.
if (refWireElementSpecification == null) failWithMessage("Expecting refWireElementSpecification 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.getRefWireElementSpecification(), refWireElementSpecification);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's refWireElementSpecification contains only the given VecWireElementSpecification elements in Collection and nothing else in whatever order.
* @param refWireElementSpecification the given elements that should be contained in actual VecInsulationSpecification's refWireElementSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refWireElementSpecification does not contain all given VecWireElementSpecification elements.
*/
public S hasOnlyRefWireElementSpecification(java.util.Collection extends VecWireElementSpecification> refWireElementSpecification) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecWireElementSpecification collection is not null.
if (refWireElementSpecification == null) {
failWithMessage("Expecting refWireElementSpecification 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.getRefWireElementSpecification(), refWireElementSpecification.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's refWireElementSpecification does not contain the given VecWireElementSpecification elements.
*
* @param refWireElementSpecification the given elements that should not be in actual VecInsulationSpecification's refWireElementSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refWireElementSpecification contains any given VecWireElementSpecification elements.
*/
public S doesNotHaveRefWireElementSpecification(VecWireElementSpecification... refWireElementSpecification) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecWireElementSpecification varargs is not null.
if (refWireElementSpecification == null) failWithMessage("Expecting refWireElementSpecification parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefWireElementSpecification(), refWireElementSpecification);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's refWireElementSpecification does not contain the given VecWireElementSpecification elements in Collection.
*
* @param refWireElementSpecification the given elements that should not be in actual VecInsulationSpecification's refWireElementSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refWireElementSpecification contains any given VecWireElementSpecification elements.
*/
public S doesNotHaveRefWireElementSpecification(java.util.Collection extends VecWireElementSpecification> refWireElementSpecification) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecWireElementSpecification collection is not null.
if (refWireElementSpecification == null) {
failWithMessage("Expecting refWireElementSpecification 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.getRefWireElementSpecification(), refWireElementSpecification.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification has no refWireElementSpecification.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's refWireElementSpecification is not empty.
*/
public S hasNoRefWireElementSpecification() {
// check that actual VecInsulationSpecification 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 refWireElementSpecification but had :\n <%s>";
// check
if (actual.getRefWireElementSpecification().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefWireElementSpecification());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's secondIdentificationColors contains the given VecColor elements.
* @param secondIdentificationColors the given elements that should be contained in actual VecInsulationSpecification's secondIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's secondIdentificationColors does not contain all given VecColor elements.
*/
public S hasSecondIdentificationColors(VecColor... secondIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor varargs is not null.
if (secondIdentificationColors == null) failWithMessage("Expecting secondIdentificationColors 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.getSecondIdentificationColors(), secondIdentificationColors);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's secondIdentificationColors contains the given VecColor elements in Collection.
* @param secondIdentificationColors the given elements that should be contained in actual VecInsulationSpecification's secondIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's secondIdentificationColors does not contain all given VecColor elements.
*/
public S hasSecondIdentificationColors(java.util.Collection extends VecColor> secondIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor collection is not null.
if (secondIdentificationColors == null) {
failWithMessage("Expecting secondIdentificationColors 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.getSecondIdentificationColors(), secondIdentificationColors.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's secondIdentificationColors contains only the given VecColor elements and nothing else in whatever order.
* @param secondIdentificationColors the given elements that should be contained in actual VecInsulationSpecification's secondIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's secondIdentificationColors does not contain all given VecColor elements.
*/
public S hasOnlySecondIdentificationColors(VecColor... secondIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor varargs is not null.
if (secondIdentificationColors == null) failWithMessage("Expecting secondIdentificationColors 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.getSecondIdentificationColors(), secondIdentificationColors);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's secondIdentificationColors contains only the given VecColor elements in Collection and nothing else in whatever order.
* @param secondIdentificationColors the given elements that should be contained in actual VecInsulationSpecification's secondIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's secondIdentificationColors does not contain all given VecColor elements.
*/
public S hasOnlySecondIdentificationColors(java.util.Collection extends VecColor> secondIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor collection is not null.
if (secondIdentificationColors == null) {
failWithMessage("Expecting secondIdentificationColors 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.getSecondIdentificationColors(), secondIdentificationColors.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's secondIdentificationColors does not contain the given VecColor elements.
*
* @param secondIdentificationColors the given elements that should not be in actual VecInsulationSpecification's secondIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's secondIdentificationColors contains any given VecColor elements.
*/
public S doesNotHaveSecondIdentificationColors(VecColor... secondIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor varargs is not null.
if (secondIdentificationColors == null) failWithMessage("Expecting secondIdentificationColors parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getSecondIdentificationColors(), secondIdentificationColors);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's secondIdentificationColors does not contain the given VecColor elements in Collection.
*
* @param secondIdentificationColors the given elements that should not be in actual VecInsulationSpecification's secondIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's secondIdentificationColors contains any given VecColor elements.
*/
public S doesNotHaveSecondIdentificationColors(java.util.Collection extends VecColor> secondIdentificationColors) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// check that given VecColor collection is not null.
if (secondIdentificationColors == null) {
failWithMessage("Expecting secondIdentificationColors 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.getSecondIdentificationColors(), secondIdentificationColors.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification has no secondIdentificationColors.
* @return this assertion object.
* @throws AssertionError if the actual VecInsulationSpecification's secondIdentificationColors is not empty.
*/
public S hasNoSecondIdentificationColors() {
// check that actual VecInsulationSpecification 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 secondIdentificationColors but had :\n <%s>";
// check
if (actual.getSecondIdentificationColors().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getSecondIdentificationColors());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecInsulationSpecification's thickness is equal to the given one.
* @param thickness the given thickness to compare the actual VecInsulationSpecification's thickness to.
* @return this assertion object.
* @throws AssertionError - if the actual VecInsulationSpecification's thickness is not equal to the given one.
*/
public S hasThickness(VecNumericalValue thickness) {
// check that actual VecInsulationSpecification we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting thickness of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecNumericalValue actualThickness = actual.getThickness();
if (!Objects.areEqual(actualThickness, thickness)) {
failWithMessage(assertjErrorMessage, actual, thickness, actualThickness);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy