
com.foursoft.vecmodel.vec120.AbstractVecTopologyZoneAssert 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 VecTopologyZone} specific assertions - Generated by CustomAssertionGenerator.
*/
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecTopologyZoneAssert, A extends VecTopologyZone> extends AbstractVecConfigurableElementAssert {
/**
* Creates a new {@link AbstractVecTopologyZoneAssert}
to make assertions on actual VecTopologyZone.
* @param actual the VecTopologyZone we want to make assertions on.
*/
protected AbstractVecTopologyZoneAssert(A actual, Class selfType) {
super(actual, selfType);
}
/**
* Verifies that the actual VecTopologyZone's ambientTemperature is equal to the given one.
* @param ambientTemperature the given ambientTemperature to compare the actual VecTopologyZone's ambientTemperature to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTopologyZone's ambientTemperature is not equal to the given one.
*/
public S hasAmbientTemperature(VecTemperatureInformation ambientTemperature) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting ambientTemperature of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecTemperatureInformation actualAmbientTemperature = actual.getAmbientTemperature();
if (!Objects.areEqual(actualAmbientTemperature, ambientTemperature)) {
failWithMessage(assertjErrorMessage, actual, ambientTemperature, actualAmbientTemperature);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's assignments contains the given VecZoneAssignment elements.
* @param assignments the given elements that should be contained in actual VecTopologyZone's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's assignments does not contain all given VecZoneAssignment elements.
*/
public S hasAssignments(VecZoneAssignment... assignments) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecZoneAssignment varargs is not null.
if (assignments == null) failWithMessage("Expecting assignments 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.getAssignments(), assignments);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's assignments contains the given VecZoneAssignment elements in Collection.
* @param assignments the given elements that should be contained in actual VecTopologyZone's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's assignments does not contain all given VecZoneAssignment elements.
*/
public S hasAssignments(java.util.Collection extends VecZoneAssignment> assignments) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecZoneAssignment collection is not null.
if (assignments == null) {
failWithMessage("Expecting assignments 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.getAssignments(), assignments.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's assignments contains only the given VecZoneAssignment elements and nothing else in whatever order.
* @param assignments the given elements that should be contained in actual VecTopologyZone's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's assignments does not contain all given VecZoneAssignment elements.
*/
public S hasOnlyAssignments(VecZoneAssignment... assignments) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecZoneAssignment varargs is not null.
if (assignments == null) failWithMessage("Expecting assignments 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.getAssignments(), assignments);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's assignments contains only the given VecZoneAssignment elements in Collection and nothing else in whatever order.
* @param assignments the given elements that should be contained in actual VecTopologyZone's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's assignments does not contain all given VecZoneAssignment elements.
*/
public S hasOnlyAssignments(java.util.Collection extends VecZoneAssignment> assignments) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecZoneAssignment collection is not null.
if (assignments == null) {
failWithMessage("Expecting assignments 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.getAssignments(), assignments.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's assignments does not contain the given VecZoneAssignment elements.
*
* @param assignments the given elements that should not be in actual VecTopologyZone's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's assignments contains any given VecZoneAssignment elements.
*/
public S doesNotHaveAssignments(VecZoneAssignment... assignments) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecZoneAssignment varargs is not null.
if (assignments == null) failWithMessage("Expecting assignments parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getAssignments(), assignments);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's assignments does not contain the given VecZoneAssignment elements in Collection.
*
* @param assignments the given elements that should not be in actual VecTopologyZone's assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's assignments contains any given VecZoneAssignment elements.
*/
public S doesNotHaveAssignments(java.util.Collection extends VecZoneAssignment> assignments) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecZoneAssignment collection is not null.
if (assignments == null) {
failWithMessage("Expecting assignments 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.getAssignments(), assignments.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone has no assignments.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's assignments is not empty.
*/
public S hasNoAssignments() {
// check that actual VecTopologyZone 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 assignments but had :\n <%s>";
// check
if (actual.getAssignments().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getAssignments());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's descriptions contains the given VecAbstractLocalizedString elements.
* @param descriptions the given elements that should be contained in actual VecTopologyZone's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString varargs is not null.
if (descriptions == null) failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's descriptions contains the given VecAbstractLocalizedString elements in Collection.
* @param descriptions the given elements that should be contained in actual VecTopologyZone's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString collection is not null.
if (descriptions == null) {
failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's descriptions contains only the given VecAbstractLocalizedString elements and nothing else in whatever order.
* @param descriptions the given elements that should be contained in actual VecTopologyZone's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString varargs is not null.
if (descriptions == null) failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's descriptions contains only the given VecAbstractLocalizedString elements in Collection and nothing else in whatever order.
* @param descriptions the given elements that should be contained in actual VecTopologyZone's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's descriptions does not contain all given VecAbstractLocalizedString elements.
*/
public S hasOnlyDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString collection is not null.
if (descriptions == null) {
failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's descriptions does not contain the given VecAbstractLocalizedString elements.
*
* @param descriptions the given elements that should not be in actual VecTopologyZone's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(VecAbstractLocalizedString... descriptions) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString varargs is not null.
if (descriptions == null) failWithMessage("Expecting descriptions parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getDescriptions(), descriptions);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's descriptions does not contain the given VecAbstractLocalizedString elements in Collection.
*
* @param descriptions the given elements that should not be in actual VecTopologyZone's descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's descriptions contains any given VecAbstractLocalizedString elements.
*/
public S doesNotHaveDescriptions(java.util.Collection extends VecAbstractLocalizedString> descriptions) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecAbstractLocalizedString collection is not null.
if (descriptions == null) {
failWithMessage("Expecting descriptions 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.getDescriptions(), descriptions.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone has no descriptions.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's descriptions is not empty.
*/
public S hasNoDescriptions() {
// check that actual VecTopologyZone 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 descriptions but had :\n <%s>";
// check
if (actual.getDescriptions().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getDescriptions());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's identification is equal to the given one.
* @param identification the given identification to compare the actual VecTopologyZone's identification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTopologyZone's identification is not equal to the given one.
*/
public S hasIdentification(String identification) {
// check that actual VecTopologyZone 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 VecTopologyZone's parentTopologyZone is equal to the given one.
* @param parentTopologyZone the given parentTopologyZone to compare the actual VecTopologyZone's parentTopologyZone to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTopologyZone's parentTopologyZone is not equal to the given one.
*/
public S hasParentTopologyZone(VecTopologyZone parentTopologyZone) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentTopologyZone of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecTopologyZone actualParentTopologyZone = actual.getParentTopologyZone();
if (!Objects.areEqual(actualParentTopologyZone, parentTopologyZone)) {
failWithMessage(assertjErrorMessage, actual, parentTopologyZone, actualParentTopologyZone);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's parentTopologyZoneSpecification is equal to the given one.
* @param parentTopologyZoneSpecification the given parentTopologyZoneSpecification to compare the actual VecTopologyZone's parentTopologyZoneSpecification to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTopologyZone's parentTopologyZoneSpecification is not equal to the given one.
*/
public S hasParentTopologyZoneSpecification(VecTopologyZoneSpecification parentTopologyZoneSpecification) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting parentTopologyZoneSpecification of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
VecTopologyZoneSpecification actualParentTopologyZoneSpecification = actual.getParentTopologyZoneSpecification();
if (!Objects.areEqual(actualParentTopologyZoneSpecification, parentTopologyZoneSpecification)) {
failWithMessage(assertjErrorMessage, actual, parentTopologyZoneSpecification, actualParentTopologyZoneSpecification);
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's refBuildingBlockSpecification3D contains the given VecBuildingBlockSpecification3D elements.
* @param refBuildingBlockSpecification3D the given elements that should be contained in actual VecTopologyZone's refBuildingBlockSpecification3D.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's refBuildingBlockSpecification3D does not contain all given VecBuildingBlockSpecification3D elements.
*/
public S hasRefBuildingBlockSpecification3D(VecBuildingBlockSpecification3D... refBuildingBlockSpecification3D) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockSpecification3D varargs is not null.
if (refBuildingBlockSpecification3D == null) failWithMessage("Expecting refBuildingBlockSpecification3D 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.getRefBuildingBlockSpecification3D(), refBuildingBlockSpecification3D);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's refBuildingBlockSpecification3D contains the given VecBuildingBlockSpecification3D elements in Collection.
* @param refBuildingBlockSpecification3D the given elements that should be contained in actual VecTopologyZone's refBuildingBlockSpecification3D.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's refBuildingBlockSpecification3D does not contain all given VecBuildingBlockSpecification3D elements.
*/
public S hasRefBuildingBlockSpecification3D(java.util.Collection extends VecBuildingBlockSpecification3D> refBuildingBlockSpecification3D) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockSpecification3D collection is not null.
if (refBuildingBlockSpecification3D == null) {
failWithMessage("Expecting refBuildingBlockSpecification3D 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.getRefBuildingBlockSpecification3D(), refBuildingBlockSpecification3D.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's refBuildingBlockSpecification3D contains only the given VecBuildingBlockSpecification3D elements and nothing else in whatever order.
* @param refBuildingBlockSpecification3D the given elements that should be contained in actual VecTopologyZone's refBuildingBlockSpecification3D.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's refBuildingBlockSpecification3D does not contain all given VecBuildingBlockSpecification3D elements.
*/
public S hasOnlyRefBuildingBlockSpecification3D(VecBuildingBlockSpecification3D... refBuildingBlockSpecification3D) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockSpecification3D varargs is not null.
if (refBuildingBlockSpecification3D == null) failWithMessage("Expecting refBuildingBlockSpecification3D 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.getRefBuildingBlockSpecification3D(), refBuildingBlockSpecification3D);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's refBuildingBlockSpecification3D contains only the given VecBuildingBlockSpecification3D elements in Collection and nothing else in whatever order.
* @param refBuildingBlockSpecification3D the given elements that should be contained in actual VecTopologyZone's refBuildingBlockSpecification3D.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's refBuildingBlockSpecification3D does not contain all given VecBuildingBlockSpecification3D elements.
*/
public S hasOnlyRefBuildingBlockSpecification3D(java.util.Collection extends VecBuildingBlockSpecification3D> refBuildingBlockSpecification3D) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockSpecification3D collection is not null.
if (refBuildingBlockSpecification3D == null) {
failWithMessage("Expecting refBuildingBlockSpecification3D 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.getRefBuildingBlockSpecification3D(), refBuildingBlockSpecification3D.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's refBuildingBlockSpecification3D does not contain the given VecBuildingBlockSpecification3D elements.
*
* @param refBuildingBlockSpecification3D the given elements that should not be in actual VecTopologyZone's refBuildingBlockSpecification3D.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's refBuildingBlockSpecification3D contains any given VecBuildingBlockSpecification3D elements.
*/
public S doesNotHaveRefBuildingBlockSpecification3D(VecBuildingBlockSpecification3D... refBuildingBlockSpecification3D) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockSpecification3D varargs is not null.
if (refBuildingBlockSpecification3D == null) failWithMessage("Expecting refBuildingBlockSpecification3D parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRefBuildingBlockSpecification3D(), refBuildingBlockSpecification3D);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's refBuildingBlockSpecification3D does not contain the given VecBuildingBlockSpecification3D elements in Collection.
*
* @param refBuildingBlockSpecification3D the given elements that should not be in actual VecTopologyZone's refBuildingBlockSpecification3D.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's refBuildingBlockSpecification3D contains any given VecBuildingBlockSpecification3D elements.
*/
public S doesNotHaveRefBuildingBlockSpecification3D(java.util.Collection extends VecBuildingBlockSpecification3D> refBuildingBlockSpecification3D) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecBuildingBlockSpecification3D collection is not null.
if (refBuildingBlockSpecification3D == null) {
failWithMessage("Expecting refBuildingBlockSpecification3D 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.getRefBuildingBlockSpecification3D(), refBuildingBlockSpecification3D.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone has no refBuildingBlockSpecification3D.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's refBuildingBlockSpecification3D is not empty.
*/
public S hasNoRefBuildingBlockSpecification3D() {
// check that actual VecTopologyZone 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 refBuildingBlockSpecification3D but had :\n <%s>";
// check
if (actual.getRefBuildingBlockSpecification3D().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRefBuildingBlockSpecification3D());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's requiredRobustnessProperties contains the given VecRobustnessProperties elements.
* @param requiredRobustnessProperties the given elements that should be contained in actual VecTopologyZone's requiredRobustnessProperties.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's requiredRobustnessProperties does not contain all given VecRobustnessProperties elements.
*/
public S hasRequiredRobustnessProperties(VecRobustnessProperties... requiredRobustnessProperties) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecRobustnessProperties varargs is not null.
if (requiredRobustnessProperties == null) failWithMessage("Expecting requiredRobustnessProperties 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.getRequiredRobustnessProperties(), requiredRobustnessProperties);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's requiredRobustnessProperties contains the given VecRobustnessProperties elements in Collection.
* @param requiredRobustnessProperties the given elements that should be contained in actual VecTopologyZone's requiredRobustnessProperties.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's requiredRobustnessProperties does not contain all given VecRobustnessProperties elements.
*/
public S hasRequiredRobustnessProperties(java.util.Collection extends VecRobustnessProperties> requiredRobustnessProperties) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecRobustnessProperties collection is not null.
if (requiredRobustnessProperties == null) {
failWithMessage("Expecting requiredRobustnessProperties 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.getRequiredRobustnessProperties(), requiredRobustnessProperties.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's requiredRobustnessProperties contains only the given VecRobustnessProperties elements and nothing else in whatever order.
* @param requiredRobustnessProperties the given elements that should be contained in actual VecTopologyZone's requiredRobustnessProperties.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's requiredRobustnessProperties does not contain all given VecRobustnessProperties elements.
*/
public S hasOnlyRequiredRobustnessProperties(VecRobustnessProperties... requiredRobustnessProperties) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecRobustnessProperties varargs is not null.
if (requiredRobustnessProperties == null) failWithMessage("Expecting requiredRobustnessProperties 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.getRequiredRobustnessProperties(), requiredRobustnessProperties);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's requiredRobustnessProperties contains only the given VecRobustnessProperties elements in Collection and nothing else in whatever order.
* @param requiredRobustnessProperties the given elements that should be contained in actual VecTopologyZone's requiredRobustnessProperties.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's requiredRobustnessProperties does not contain all given VecRobustnessProperties elements.
*/
public S hasOnlyRequiredRobustnessProperties(java.util.Collection extends VecRobustnessProperties> requiredRobustnessProperties) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecRobustnessProperties collection is not null.
if (requiredRobustnessProperties == null) {
failWithMessage("Expecting requiredRobustnessProperties 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.getRequiredRobustnessProperties(), requiredRobustnessProperties.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's requiredRobustnessProperties does not contain the given VecRobustnessProperties elements.
*
* @param requiredRobustnessProperties the given elements that should not be in actual VecTopologyZone's requiredRobustnessProperties.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's requiredRobustnessProperties contains any given VecRobustnessProperties elements.
*/
public S doesNotHaveRequiredRobustnessProperties(VecRobustnessProperties... requiredRobustnessProperties) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecRobustnessProperties varargs is not null.
if (requiredRobustnessProperties == null) failWithMessage("Expecting requiredRobustnessProperties parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getRequiredRobustnessProperties(), requiredRobustnessProperties);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's requiredRobustnessProperties does not contain the given VecRobustnessProperties elements in Collection.
*
* @param requiredRobustnessProperties the given elements that should not be in actual VecTopologyZone's requiredRobustnessProperties.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's requiredRobustnessProperties contains any given VecRobustnessProperties elements.
*/
public S doesNotHaveRequiredRobustnessProperties(java.util.Collection extends VecRobustnessProperties> requiredRobustnessProperties) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecRobustnessProperties collection is not null.
if (requiredRobustnessProperties == null) {
failWithMessage("Expecting requiredRobustnessProperties 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.getRequiredRobustnessProperties(), requiredRobustnessProperties.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone has no requiredRobustnessProperties.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's requiredRobustnessProperties is not empty.
*/
public S hasNoRequiredRobustnessProperties() {
// check that actual VecTopologyZone 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 requiredRobustnessProperties but had :\n <%s>";
// check
if (actual.getRequiredRobustnessProperties().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getRequiredRobustnessProperties());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's subZones contains the given VecTopologyZone elements.
* @param subZones the given elements that should be contained in actual VecTopologyZone's subZones.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's subZones does not contain all given VecTopologyZone elements.
*/
public S hasSubZones(VecTopologyZone... subZones) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecTopologyZone varargs is not null.
if (subZones == null) failWithMessage("Expecting subZones 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.getSubZones(), subZones);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's subZones contains the given VecTopologyZone elements in Collection.
* @param subZones the given elements that should be contained in actual VecTopologyZone's subZones.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's subZones does not contain all given VecTopologyZone elements.
*/
public S hasSubZones(java.util.Collection extends VecTopologyZone> subZones) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecTopologyZone collection is not null.
if (subZones == null) {
failWithMessage("Expecting subZones 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.getSubZones(), subZones.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's subZones contains only the given VecTopologyZone elements and nothing else in whatever order.
* @param subZones the given elements that should be contained in actual VecTopologyZone's subZones.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's subZones does not contain all given VecTopologyZone elements.
*/
public S hasOnlySubZones(VecTopologyZone... subZones) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecTopologyZone varargs is not null.
if (subZones == null) failWithMessage("Expecting subZones 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.getSubZones(), subZones);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's subZones contains only the given VecTopologyZone elements in Collection and nothing else in whatever order.
* @param subZones the given elements that should be contained in actual VecTopologyZone's subZones.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's subZones does not contain all given VecTopologyZone elements.
*/
public S hasOnlySubZones(java.util.Collection extends VecTopologyZone> subZones) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecTopologyZone collection is not null.
if (subZones == null) {
failWithMessage("Expecting subZones 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.getSubZones(), subZones.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's subZones does not contain the given VecTopologyZone elements.
*
* @param subZones the given elements that should not be in actual VecTopologyZone's subZones.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's subZones contains any given VecTopologyZone elements.
*/
public S doesNotHaveSubZones(VecTopologyZone... subZones) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecTopologyZone varargs is not null.
if (subZones == null) failWithMessage("Expecting subZones parameter not to be null.");
// check with standard error message (use overridingErrorMessage before contains to set your own message).
Iterables.instance().assertDoesNotContain(info, actual.getSubZones(), subZones);
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's subZones does not contain the given VecTopologyZone elements in Collection.
*
* @param subZones the given elements that should not be in actual VecTopologyZone's subZones.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's subZones contains any given VecTopologyZone elements.
*/
public S doesNotHaveSubZones(java.util.Collection extends VecTopologyZone> subZones) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// check that given VecTopologyZone collection is not null.
if (subZones == null) {
failWithMessage("Expecting subZones 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.getSubZones(), subZones.toArray());
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone has no subZones.
* @return this assertion object.
* @throws AssertionError if the actual VecTopologyZone's subZones is not empty.
*/
public S hasNoSubZones() {
// check that actual VecTopologyZone 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 subZones but had :\n <%s>";
// check
if (actual.getSubZones().iterator().hasNext()) {
failWithMessage(assertjErrorMessage, actual, actual.getSubZones());
}
// return the current assertion for method chaining
return myself;
}
/**
* Verifies that the actual VecTopologyZone's type is equal to the given one.
* @param type the given type to compare the actual VecTopologyZone's type to.
* @return this assertion object.
* @throws AssertionError - if the actual VecTopologyZone's type is not equal to the given one.
*/
public S hasType(String type) {
// check that actual VecTopologyZone we want to make assertions on is not null.
isNotNull();
// overrides the default error message with a more explicit one
String assertjErrorMessage = "\nExpecting type of:\n <%s>\nto be:\n <%s>\nbut was:\n <%s>";
// null safe check
String actualType = actual.getType();
if (!Objects.areEqual(actualType, type)) {
failWithMessage(assertjErrorMessage, actual, type, actualType);
}
// return the current assertion for method chaining
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy