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

com.foursoft.vecmodel.vec120.AbstractVecModularSlotAssert 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;
import org.assertj.core.util.Objects;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


  /**
   * Verifies that the actual VecModularSlot is optional.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecModularSlot is not optional.
   */
  public S isOptional() {
    // check that actual VecModularSlot we want to make assertions on is not null.
    isNotNull();

    // null safe check
    if (Objects.areEqual(Boolean.FALSE, actual.isOptional())) {
      failWithMessage("\nExpecting that actual VecModularSlot is optional but is not.");
    }

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

  /**
   * Verifies that the actual VecModularSlot is not optional.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecModularSlot is optional.
   */
  public S isNotOptional() {
    // check that actual VecModularSlot we want to make assertions on is not null.
    isNotNull();

    // null safe check
    if (Objects.areEqual(Boolean.TRUE, actual.isOptional())) {
      failWithMessage("\nExpecting that actual VecModularSlot is not optional but is.");
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}