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

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

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

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

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

    // null safe check
    VecComponentConnector actualComponentConnector = actual.getComponentConnector();
    if (!Objects.areEqual(actualComponentConnector, componentConnector)) {
      failWithMessage(assertjErrorMessage, actual, componentConnector, actualComponentConnector);
    }

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

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

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

    // null safe check
    VecConnectorHousingRole actualConnectorHousingRole = actual.getConnectorHousingRole();
    if (!Objects.areEqual(actualConnectorHousingRole, connectorHousingRole)) {
      failWithMessage(assertjErrorMessage, actual, connectorHousingRole, actualConnectorHousingRole);
    }

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

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

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

    // null safe check
    VecHousingComponent actualHousingComponent = actual.getHousingComponent();
    if (!Objects.areEqual(actualHousingComponent, housingComponent)) {
      failWithMessage(assertjErrorMessage, actual, housingComponent, actualHousingComponent);
    }

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

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

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

    // null safe check
    VecEEComponentRole actualParentEEComponentRole = actual.getParentEEComponentRole();
    if (!Objects.areEqual(actualParentEEComponentRole, parentEEComponentRole)) {
      failWithMessage(assertjErrorMessage, actual, parentEEComponentRole, actualParentEEComponentRole);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


}