All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.foursoft.vecmodel.vec120.AbstractVecTopologySpecificationAssert Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
package com.foursoft.vecmodel.vec120;

import org.assertj.core.internal.Iterables;

/**
 * Abstract base class for {@link VecTopologySpecification} specific assertions - Generated by CustomAssertionGenerator.
 */
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecTopologySpecificationAssert, A extends VecTopologySpecification> extends AbstractVecSpecificationAssert {

  /**
   * Creates a new {@link AbstractVecTopologySpecificationAssert} to make assertions on actual VecTopologySpecification.
   * @param actual the VecTopologySpecification we want to make assertions on.
   */
  protected AbstractVecTopologySpecificationAssert(A actual, Class selfType) {
    super(actual, selfType);
  }

  /**
   * Verifies that the actual VecTopologySpecification's refTopologyGroupSpecification contains the given VecTopologyGroupSpecification elements.
   * @param refTopologyGroupSpecification the given elements that should be contained in actual VecTopologySpecification's refTopologyGroupSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyGroupSpecification does not contain all given VecTopologyGroupSpecification elements.
   */
  public S hasRefTopologyGroupSpecification(VecTopologyGroupSpecification... refTopologyGroupSpecification) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyGroupSpecification varargs is not null.
    if (refTopologyGroupSpecification == null) failWithMessage("Expecting refTopologyGroupSpecification 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.getRefTopologyGroupSpecification(), refTopologyGroupSpecification);

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's refTopologyGroupSpecification contains the given VecTopologyGroupSpecification elements in Collection.
   * @param refTopologyGroupSpecification the given elements that should be contained in actual VecTopologySpecification's refTopologyGroupSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyGroupSpecification does not contain all given VecTopologyGroupSpecification elements.
   */
  public S hasRefTopologyGroupSpecification(java.util.Collection refTopologyGroupSpecification) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyGroupSpecification collection is not null.
    if (refTopologyGroupSpecification == null) {
      failWithMessage("Expecting refTopologyGroupSpecification 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.getRefTopologyGroupSpecification(), refTopologyGroupSpecification.toArray());

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's refTopologyGroupSpecification contains only the given VecTopologyGroupSpecification elements and nothing else in whatever order.
   * @param refTopologyGroupSpecification the given elements that should be contained in actual VecTopologySpecification's refTopologyGroupSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyGroupSpecification does not contain all given VecTopologyGroupSpecification elements.
   */
  public S hasOnlyRefTopologyGroupSpecification(VecTopologyGroupSpecification... refTopologyGroupSpecification) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyGroupSpecification varargs is not null.
    if (refTopologyGroupSpecification == null) failWithMessage("Expecting refTopologyGroupSpecification 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.getRefTopologyGroupSpecification(), refTopologyGroupSpecification);

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's refTopologyGroupSpecification contains only the given VecTopologyGroupSpecification elements in Collection and nothing else in whatever order.
   * @param refTopologyGroupSpecification the given elements that should be contained in actual VecTopologySpecification's refTopologyGroupSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyGroupSpecification does not contain all given VecTopologyGroupSpecification elements.
   */
  public S hasOnlyRefTopologyGroupSpecification(java.util.Collection refTopologyGroupSpecification) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyGroupSpecification collection is not null.
    if (refTopologyGroupSpecification == null) {
      failWithMessage("Expecting refTopologyGroupSpecification 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.getRefTopologyGroupSpecification(), refTopologyGroupSpecification.toArray());

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's refTopologyGroupSpecification does not contain the given VecTopologyGroupSpecification elements.
   *
   * @param refTopologyGroupSpecification the given elements that should not be in actual VecTopologySpecification's refTopologyGroupSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyGroupSpecification contains any given VecTopologyGroupSpecification elements.
   */
  public S doesNotHaveRefTopologyGroupSpecification(VecTopologyGroupSpecification... refTopologyGroupSpecification) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyGroupSpecification varargs is not null.
    if (refTopologyGroupSpecification == null) failWithMessage("Expecting refTopologyGroupSpecification parameter not to be null.");

    // check with standard error message (use overridingErrorMessage before contains to set your own message).
    Iterables.instance().assertDoesNotContain(info, actual.getRefTopologyGroupSpecification(), refTopologyGroupSpecification);

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's refTopologyGroupSpecification does not contain the given VecTopologyGroupSpecification elements in Collection.
   *
   * @param refTopologyGroupSpecification the given elements that should not be in actual VecTopologySpecification's refTopologyGroupSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyGroupSpecification contains any given VecTopologyGroupSpecification elements.
   */
  public S doesNotHaveRefTopologyGroupSpecification(java.util.Collection refTopologyGroupSpecification) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyGroupSpecification collection is not null.
    if (refTopologyGroupSpecification == null) {
      failWithMessage("Expecting refTopologyGroupSpecification 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.getRefTopologyGroupSpecification(), refTopologyGroupSpecification.toArray());

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification has no refTopologyGroupSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyGroupSpecification is not empty.
   */
  public S hasNoRefTopologyGroupSpecification() {
    // check that actual VecTopologySpecification 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 refTopologyGroupSpecification but had :\n  <%s>";

    // check
    if (actual.getRefTopologyGroupSpecification().iterator().hasNext()) {
      failWithMessage(assertjErrorMessage, actual, actual.getRefTopologyGroupSpecification());
    }

    // return the current assertion for method chaining
    return myself;
  }


  /**
   * Verifies that the actual VecTopologySpecification's refTopologyMappingSpecification contains the given VecTopologyMappingSpecification elements.
   * @param refTopologyMappingSpecification the given elements that should be contained in actual VecTopologySpecification's refTopologyMappingSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyMappingSpecification does not contain all given VecTopologyMappingSpecification elements.
   */
  public S hasRefTopologyMappingSpecification(VecTopologyMappingSpecification... refTopologyMappingSpecification) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyMappingSpecification varargs is not null.
    if (refTopologyMappingSpecification == null) failWithMessage("Expecting refTopologyMappingSpecification 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.getRefTopologyMappingSpecification(), refTopologyMappingSpecification);

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's refTopologyMappingSpecification contains the given VecTopologyMappingSpecification elements in Collection.
   * @param refTopologyMappingSpecification the given elements that should be contained in actual VecTopologySpecification's refTopologyMappingSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyMappingSpecification does not contain all given VecTopologyMappingSpecification elements.
   */
  public S hasRefTopologyMappingSpecification(java.util.Collection refTopologyMappingSpecification) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyMappingSpecification collection is not null.
    if (refTopologyMappingSpecification == null) {
      failWithMessage("Expecting refTopologyMappingSpecification 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.getRefTopologyMappingSpecification(), refTopologyMappingSpecification.toArray());

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's refTopologyMappingSpecification contains only the given VecTopologyMappingSpecification elements and nothing else in whatever order.
   * @param refTopologyMappingSpecification the given elements that should be contained in actual VecTopologySpecification's refTopologyMappingSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyMappingSpecification does not contain all given VecTopologyMappingSpecification elements.
   */
  public S hasOnlyRefTopologyMappingSpecification(VecTopologyMappingSpecification... refTopologyMappingSpecification) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyMappingSpecification varargs is not null.
    if (refTopologyMappingSpecification == null) failWithMessage("Expecting refTopologyMappingSpecification 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.getRefTopologyMappingSpecification(), refTopologyMappingSpecification);

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's refTopologyMappingSpecification contains only the given VecTopologyMappingSpecification elements in Collection and nothing else in whatever order.
   * @param refTopologyMappingSpecification the given elements that should be contained in actual VecTopologySpecification's refTopologyMappingSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyMappingSpecification does not contain all given VecTopologyMappingSpecification elements.
   */
  public S hasOnlyRefTopologyMappingSpecification(java.util.Collection refTopologyMappingSpecification) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyMappingSpecification collection is not null.
    if (refTopologyMappingSpecification == null) {
      failWithMessage("Expecting refTopologyMappingSpecification 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.getRefTopologyMappingSpecification(), refTopologyMappingSpecification.toArray());

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's refTopologyMappingSpecification does not contain the given VecTopologyMappingSpecification elements.
   *
   * @param refTopologyMappingSpecification the given elements that should not be in actual VecTopologySpecification's refTopologyMappingSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyMappingSpecification contains any given VecTopologyMappingSpecification elements.
   */
  public S doesNotHaveRefTopologyMappingSpecification(VecTopologyMappingSpecification... refTopologyMappingSpecification) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyMappingSpecification varargs is not null.
    if (refTopologyMappingSpecification == null) failWithMessage("Expecting refTopologyMappingSpecification parameter not to be null.");

    // check with standard error message (use overridingErrorMessage before contains to set your own message).
    Iterables.instance().assertDoesNotContain(info, actual.getRefTopologyMappingSpecification(), refTopologyMappingSpecification);

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's refTopologyMappingSpecification does not contain the given VecTopologyMappingSpecification elements in Collection.
   *
   * @param refTopologyMappingSpecification the given elements that should not be in actual VecTopologySpecification's refTopologyMappingSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyMappingSpecification contains any given VecTopologyMappingSpecification elements.
   */
  public S doesNotHaveRefTopologyMappingSpecification(java.util.Collection refTopologyMappingSpecification) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyMappingSpecification collection is not null.
    if (refTopologyMappingSpecification == null) {
      failWithMessage("Expecting refTopologyMappingSpecification 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.getRefTopologyMappingSpecification(), refTopologyMappingSpecification.toArray());

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification has no refTopologyMappingSpecification.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's refTopologyMappingSpecification is not empty.
   */
  public S hasNoRefTopologyMappingSpecification() {
    // check that actual VecTopologySpecification 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 refTopologyMappingSpecification but had :\n  <%s>";

    // check
    if (actual.getRefTopologyMappingSpecification().iterator().hasNext()) {
      failWithMessage(assertjErrorMessage, actual, actual.getRefTopologyMappingSpecification());
    }

    // return the current assertion for method chaining
    return myself;
  }


  /**
   * Verifies that the actual VecTopologySpecification's topologyNodes contains the given VecTopologyNode elements.
   * @param topologyNodes the given elements that should be contained in actual VecTopologySpecification's topologyNodes.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologyNodes does not contain all given VecTopologyNode elements.
   */
  public S hasTopologyNodes(VecTopologyNode... topologyNodes) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyNode varargs is not null.
    if (topologyNodes == null) failWithMessage("Expecting topologyNodes 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.getTopologyNodes(), topologyNodes);

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's topologyNodes contains the given VecTopologyNode elements in Collection.
   * @param topologyNodes the given elements that should be contained in actual VecTopologySpecification's topologyNodes.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologyNodes does not contain all given VecTopologyNode elements.
   */
  public S hasTopologyNodes(java.util.Collection topologyNodes) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyNode collection is not null.
    if (topologyNodes == null) {
      failWithMessage("Expecting topologyNodes 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.getTopologyNodes(), topologyNodes.toArray());

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's topologyNodes contains only the given VecTopologyNode elements and nothing else in whatever order.
   * @param topologyNodes the given elements that should be contained in actual VecTopologySpecification's topologyNodes.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologyNodes does not contain all given VecTopologyNode elements.
   */
  public S hasOnlyTopologyNodes(VecTopologyNode... topologyNodes) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyNode varargs is not null.
    if (topologyNodes == null) failWithMessage("Expecting topologyNodes 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.getTopologyNodes(), topologyNodes);

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's topologyNodes contains only the given VecTopologyNode elements in Collection and nothing else in whatever order.
   * @param topologyNodes the given elements that should be contained in actual VecTopologySpecification's topologyNodes.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologyNodes does not contain all given VecTopologyNode elements.
   */
  public S hasOnlyTopologyNodes(java.util.Collection topologyNodes) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyNode collection is not null.
    if (topologyNodes == null) {
      failWithMessage("Expecting topologyNodes 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.getTopologyNodes(), topologyNodes.toArray());

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's topologyNodes does not contain the given VecTopologyNode elements.
   *
   * @param topologyNodes the given elements that should not be in actual VecTopologySpecification's topologyNodes.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologyNodes contains any given VecTopologyNode elements.
   */
  public S doesNotHaveTopologyNodes(VecTopologyNode... topologyNodes) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyNode varargs is not null.
    if (topologyNodes == null) failWithMessage("Expecting topologyNodes parameter not to be null.");

    // check with standard error message (use overridingErrorMessage before contains to set your own message).
    Iterables.instance().assertDoesNotContain(info, actual.getTopologyNodes(), topologyNodes);

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's topologyNodes does not contain the given VecTopologyNode elements in Collection.
   *
   * @param topologyNodes the given elements that should not be in actual VecTopologySpecification's topologyNodes.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologyNodes contains any given VecTopologyNode elements.
   */
  public S doesNotHaveTopologyNodes(java.util.Collection topologyNodes) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologyNode collection is not null.
    if (topologyNodes == null) {
      failWithMessage("Expecting topologyNodes 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.getTopologyNodes(), topologyNodes.toArray());

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification has no topologyNodes.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologyNodes is not empty.
   */
  public S hasNoTopologyNodes() {
    // check that actual VecTopologySpecification 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 topologyNodes but had :\n  <%s>";

    // check
    if (actual.getTopologyNodes().iterator().hasNext()) {
      failWithMessage(assertjErrorMessage, actual, actual.getTopologyNodes());
    }

    // return the current assertion for method chaining
    return myself;
  }


  /**
   * Verifies that the actual VecTopologySpecification's topologySegments contains the given VecTopologySegment elements.
   * @param topologySegments the given elements that should be contained in actual VecTopologySpecification's topologySegments.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologySegments does not contain all given VecTopologySegment elements.
   */
  public S hasTopologySegments(VecTopologySegment... topologySegments) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologySegment varargs is not null.
    if (topologySegments == null) failWithMessage("Expecting topologySegments 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.getTopologySegments(), topologySegments);

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's topologySegments contains the given VecTopologySegment elements in Collection.
   * @param topologySegments the given elements that should be contained in actual VecTopologySpecification's topologySegments.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologySegments does not contain all given VecTopologySegment elements.
   */
  public S hasTopologySegments(java.util.Collection topologySegments) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologySegment collection is not null.
    if (topologySegments == null) {
      failWithMessage("Expecting topologySegments 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.getTopologySegments(), topologySegments.toArray());

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's topologySegments contains only the given VecTopologySegment elements and nothing else in whatever order.
   * @param topologySegments the given elements that should be contained in actual VecTopologySpecification's topologySegments.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologySegments does not contain all given VecTopologySegment elements.
   */
  public S hasOnlyTopologySegments(VecTopologySegment... topologySegments) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologySegment varargs is not null.
    if (topologySegments == null) failWithMessage("Expecting topologySegments 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.getTopologySegments(), topologySegments);

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's topologySegments contains only the given VecTopologySegment elements in Collection and nothing else in whatever order.
   * @param topologySegments the given elements that should be contained in actual VecTopologySpecification's topologySegments.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologySegments does not contain all given VecTopologySegment elements.
   */
  public S hasOnlyTopologySegments(java.util.Collection topologySegments) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologySegment collection is not null.
    if (topologySegments == null) {
      failWithMessage("Expecting topologySegments 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.getTopologySegments(), topologySegments.toArray());

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's topologySegments does not contain the given VecTopologySegment elements.
   *
   * @param topologySegments the given elements that should not be in actual VecTopologySpecification's topologySegments.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologySegments contains any given VecTopologySegment elements.
   */
  public S doesNotHaveTopologySegments(VecTopologySegment... topologySegments) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologySegment varargs is not null.
    if (topologySegments == null) failWithMessage("Expecting topologySegments parameter not to be null.");

    // check with standard error message (use overridingErrorMessage before contains to set your own message).
    Iterables.instance().assertDoesNotContain(info, actual.getTopologySegments(), topologySegments);

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification's topologySegments does not contain the given VecTopologySegment elements in Collection.
   *
   * @param topologySegments the given elements that should not be in actual VecTopologySpecification's topologySegments.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologySegments contains any given VecTopologySegment elements.
   */
  public S doesNotHaveTopologySegments(java.util.Collection topologySegments) {
    // check that actual VecTopologySpecification we want to make assertions on is not null.
    isNotNull();

    // check that given VecTopologySegment collection is not null.
    if (topologySegments == null) {
      failWithMessage("Expecting topologySegments 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.getTopologySegments(), topologySegments.toArray());

    // return the current assertion for method chaining
    return myself;
  }

  /**
   * Verifies that the actual VecTopologySpecification has no topologySegments.
   * @return this assertion object.
   * @throws AssertionError if the actual VecTopologySpecification's topologySegments is not empty.
   */
  public S hasNoTopologySegments() {
    // check that actual VecTopologySpecification 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 topologySegments but had :\n  <%s>";

    // check
    if (actual.getTopologySegments().iterator().hasNext()) {
      failWithMessage(assertjErrorMessage, actual, actual.getTopologySegments());
    }

    // return the current assertion for method chaining
    return myself;
  }


}