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

com.foursoft.vecmodel.vec120.AbstractVecWireGroupingSpecificationAssert 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 VecWireGroupingSpecification} specific assertions - Generated by CustomAssertionGenerator.
 */
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractVecWireGroupingSpecificationAssert, A extends VecWireGroupingSpecification> extends AbstractVecSpecificationAssert {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}