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

com.foursoft.vecmodel.vec120.AbstractVecWireReceptionAddOnAssert Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
package com.foursoft.vecmodel.vec120;

import org.assertj.core.api.AbstractObjectAssert;
import org.assertj.core.util.Objects;

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

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

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

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

    // null safe check
    VecWireReceptionSpecification actualParentWireReceptionSpecification = actual.getParentWireReceptionSpecification();
    if (!Objects.areEqual(actualParentWireReceptionSpecification, parentWireReceptionSpecification)) {
      failWithMessage(assertjErrorMessage, actual, parentWireReceptionSpecification, actualParentWireReceptionSpecification);
    }

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

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

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

    // null safe check
    String actualType = actual.getType();
    if (!Objects.areEqual(actualType, type)) {
      failWithMessage(assertjErrorMessage, actual, type, actualType);
    }

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

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

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

    // null safe check
    VecNumericalValue actualWireAddOn = actual.getWireAddOn();
    if (!Objects.areEqual(actualWireAddOn, wireAddOn)) {
      failWithMessage(assertjErrorMessage, actual, wireAddOn, actualWireAddOn);
    }

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

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

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

    // null safe check
    String actualXmlId = actual.getXmlId();
    if (!Objects.areEqual(actualXmlId, xmlId)) {
      failWithMessage(assertjErrorMessage, actual, xmlId, actualXmlId);
    }

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

}