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

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

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

  /**
   * Verifies that the actual VecAssignmentGroup's descriptions contains the given VecAbstractLocalizedString elements.
   * @param descriptions the given elements that should be contained in actual VecAssignmentGroup's descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecAssignmentGroup's descriptions does not contain all given VecAbstractLocalizedString elements.
   */
  public S hasDescriptions(VecAbstractLocalizedString... descriptions) {
    // check that actual VecAssignmentGroup 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 VecAssignmentGroup's descriptions contains the given VecAbstractLocalizedString elements in Collection.
   * @param descriptions the given elements that should be contained in actual VecAssignmentGroup's descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecAssignmentGroup's descriptions does not contain all given VecAbstractLocalizedString elements.
   */
  public S hasDescriptions(java.util.Collection descriptions) {
    // check that actual VecAssignmentGroup 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 VecAssignmentGroup'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 VecAssignmentGroup's descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecAssignmentGroup's descriptions does not contain all given VecAbstractLocalizedString elements.
   */
  public S hasOnlyDescriptions(VecAbstractLocalizedString... descriptions) {
    // check that actual VecAssignmentGroup 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 VecAssignmentGroup'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 VecAssignmentGroup's descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecAssignmentGroup's descriptions does not contain all given VecAbstractLocalizedString elements.
   */
  public S hasOnlyDescriptions(java.util.Collection descriptions) {
    // check that actual VecAssignmentGroup 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 VecAssignmentGroup's descriptions does not contain the given VecAbstractLocalizedString elements.
   *
   * @param descriptions the given elements that should not be in actual VecAssignmentGroup's descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecAssignmentGroup's descriptions contains any given VecAbstractLocalizedString elements.
   */
  public S doesNotHaveDescriptions(VecAbstractLocalizedString... descriptions) {
    // check that actual VecAssignmentGroup 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 VecAssignmentGroup's descriptions does not contain the given VecAbstractLocalizedString elements in Collection.
   *
   * @param descriptions the given elements that should not be in actual VecAssignmentGroup's descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecAssignmentGroup's descriptions contains any given VecAbstractLocalizedString elements.
   */
  public S doesNotHaveDescriptions(java.util.Collection descriptions) {
    // check that actual VecAssignmentGroup 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 VecAssignmentGroup has no descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecAssignmentGroup's descriptions is not empty.
   */
  public S hasNoDescriptions() {
    // check that actual VecAssignmentGroup 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 VecAssignmentGroup's identification is equal to the given one.
   * @param identification the given identification to compare the actual VecAssignmentGroup's identification to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecAssignmentGroup's identification is not equal to the given one.
   */
  public S hasIdentification(String identification) {
    // check that actual VecAssignmentGroup 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 VecAssignmentGroup's parentAssignmentGroupSpecification is equal to the given one.
   * @param parentAssignmentGroupSpecification the given parentAssignmentGroupSpecification to compare the actual VecAssignmentGroup's parentAssignmentGroupSpecification to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecAssignmentGroup's parentAssignmentGroupSpecification is not equal to the given one.
   */
  public S hasParentAssignmentGroupSpecification(VecAssignmentGroupSpecification parentAssignmentGroupSpecification) {
    // check that actual VecAssignmentGroup we want to make assertions on is not null.
    isNotNull();

    // overrides the default error message with a more explicit one
    String assertjErrorMessage = "\nExpecting parentAssignmentGroupSpecification of:\n  <%s>\nto be:\n  <%s>\nbut was:\n  <%s>";

    // null safe check
    VecAssignmentGroupSpecification actualParentAssignmentGroupSpecification = actual.getParentAssignmentGroupSpecification();
    if (!Objects.areEqual(actualParentAssignmentGroupSpecification, parentAssignmentGroupSpecification)) {
      failWithMessage(assertjErrorMessage, actual, parentAssignmentGroupSpecification, actualParentAssignmentGroupSpecification);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}