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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}