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

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

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

import org.assertj.core.util.Objects;

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

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

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

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

    // null safe check
    String actualApplianceType = actual.getApplianceType();
    if (!Objects.areEqual(actualApplianceType, applianceType)) {
      failWithMessage(assertjErrorMessage, actual, applianceType, actualApplianceType);
    }

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

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

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

    // null safe check
    VecNumericalValue actualIMax = actual.getIMax();
    if (!Objects.areEqual(actualIMax, iMax)) {
      failWithMessage(assertjErrorMessage, actual, iMax, actualIMax);
    }

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

  /**
   * Verifies that the actual VecRelaySpecification is low noise.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecRelaySpecification is not low noise.
   */
  public S isLowNoise() {
    // check that actual VecRelaySpecification we want to make assertions on is not null.
    isNotNull();

    // null safe check
    if (Objects.areEqual(Boolean.FALSE, actual.isLowNoise())) {
      failWithMessage("\nExpecting that actual VecRelaySpecification is low noise but is not.");
    }

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

  /**
   * Verifies that the actual VecRelaySpecification is not low noise.
   * @return this assertion object.
   * @throws AssertionError - if the actual VecRelaySpecification is low noise.
   */
  public S isNotLowNoise() {
    // check that actual VecRelaySpecification we want to make assertions on is not null.
    isNotNull();

    // null safe check
    if (Objects.areEqual(Boolean.TRUE, actual.isLowNoise())) {
      failWithMessage("\nExpecting that actual VecRelaySpecification is not low noise but is.");
    }

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

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

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

    // null safe check
    String actualRelaisType = actual.getRelaisType();
    if (!Objects.areEqual(actualRelaisType, relaisType)) {
      failWithMessage(assertjErrorMessage, actual, relaisType, actualRelaisType);
    }

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

}