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

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

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

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

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

    // null safe check
    VecDocumentVersion actualRelatedDocumentVersion = actual.getRelatedDocumentVersion();
    if (!Objects.areEqual(actualRelatedDocumentVersion, relatedDocumentVersion)) {
      failWithMessage(assertjErrorMessage, actual, relatedDocumentVersion, actualRelatedDocumentVersion);
    }

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

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

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

    // null safe check
    String actualRelatedIdentification = actual.getRelatedIdentification();
    if (!Objects.areEqual(actualRelatedIdentification, relatedIdentification)) {
      failWithMessage(assertjErrorMessage, actual, relatedIdentification, actualRelatedIdentification);
    }

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

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

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

    // null safe check
    VecSheetOrChapter actualRelatedSheetOrChapter = actual.getRelatedSheetOrChapter();
    if (!Objects.areEqual(actualRelatedSheetOrChapter, relatedSheetOrChapter)) {
      failWithMessage(assertjErrorMessage, actual, relatedSheetOrChapter, actualRelatedSheetOrChapter);
    }

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

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

}