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

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

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

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

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

    // null safe check
    String actualReferenceSystem = actual.getReferenceSystem();
    if (!Objects.areEqual(actualReferenceSystem, referenceSystem)) {
      failWithMessage(assertjErrorMessage, actual, referenceSystem, actualReferenceSystem);
    }

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

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

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

    // null safe check
    String actualValue = actual.getValue();
    if (!Objects.areEqual(actualValue, value)) {
      failWithMessage(assertjErrorMessage, actual, value, actualValue);
    }

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

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

}