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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


  /**
   * Verifies that the actual VecCopyrightInformation's parentVecContent is equal to the given one.
   * @param parentVecContent the given parentVecContent to compare the actual VecCopyrightInformation's parentVecContent to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecCopyrightInformation's parentVecContent is not equal to the given one.
   */
  public S hasParentVecContent(VecContent parentVecContent) {
    // check that actual VecCopyrightInformation we want to make assertions on is not null.
    isNotNull();

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

    // null safe check
    VecContent actualParentVecContent = actual.getParentVecContent();
    if (!Objects.areEqual(actualParentVecContent, parentVecContent)) {
      failWithMessage(assertjErrorMessage, actual, parentVecContent, actualParentVecContent);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}