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

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

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

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

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

    // null safe check
    VecLocalizedString actualAbbreviation = actual.getAbbreviation();
    if (!Objects.areEqual(actualAbbreviation, abbreviation)) {
      failWithMessage(assertjErrorMessage, actual, abbreviation, actualAbbreviation);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

    // null safe check
    String actualGroupType = actual.getGroupType();
    if (!Objects.areEqual(actualGroupType, groupType)) {
      failWithMessage(assertjErrorMessage, actual, groupType, actualGroupType);
    }

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

  /**
   * Verifies that the actual VecVariantGroup's identification is equal to the given one.
   * @param identification the given identification to compare the actual VecVariantGroup's identification to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecVariantGroup's identification is not equal to the given one.
   */
  public S hasIdentification(String identification) {
    // check that actual VecVariantGroup 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 VecVariantGroup's parentVariantGroupSpecification is equal to the given one.
   * @param parentVariantGroupSpecification the given parentVariantGroupSpecification to compare the actual VecVariantGroup's parentVariantGroupSpecification to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecVariantGroup's parentVariantGroupSpecification is not equal to the given one.
   */
  public S hasParentVariantGroupSpecification(VecVariantGroupSpecification parentVariantGroupSpecification) {
    // check that actual VecVariantGroup we want to make assertions on is not null.
    isNotNull();

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

    // null safe check
    VecVariantGroupSpecification actualParentVariantGroupSpecification = actual.getParentVariantGroupSpecification();
    if (!Objects.areEqual(actualParentVariantGroupSpecification, parentVariantGroupSpecification)) {
      failWithMessage(assertjErrorMessage, actual, parentVariantGroupSpecification, actualParentVariantGroupSpecification);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}