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

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

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

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

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

    // null safe check
    VecSegmentConnectionPoint actualParentSegmentConnectionPoint = actual.getParentSegmentConnectionPoint();
    if (!Objects.areEqual(actualParentSegmentConnectionPoint, parentSegmentConnectionPoint)) {
      failWithMessage(assertjErrorMessage, actual, parentSegmentConnectionPoint, actualParentSegmentConnectionPoint);
    }

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

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

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

    // null safe check
    VecModularSlot actualSlot = actual.getSlot();
    if (!Objects.areEqual(actualSlot, slot)) {
      failWithMessage(assertjErrorMessage, actual, slot, actualSlot);
    }

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

  /**
   * Verifies that the actual VecModularSlotAddOn's wireAddOn is equal to the given one.
   * @param wireAddOn the given wireAddOn to compare the actual VecModularSlotAddOn's wireAddOn to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecModularSlotAddOn's wireAddOn is not equal to the given one.
   */
  public S hasWireAddOn(VecNumericalValue wireAddOn) {
    // check that actual VecModularSlotAddOn 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 VecModularSlotAddOn's xmlId is equal to the given one.
   * @param xmlId the given xmlId to compare the actual VecModularSlotAddOn's xmlId to.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecModularSlotAddOn's xmlId is not equal to the given one.
   */
  public S hasXmlId(String xmlId) {
    // check that actual VecModularSlotAddOn 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;
  }

}