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

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

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

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

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

    // null safe check
    VecCableDuctSpecification actualCableDuctSpecification = actual.getCableDuctSpecification();
    if (!Objects.areEqual(actualCableDuctSpecification, cableDuctSpecification)) {
      failWithMessage(assertjErrorMessage, actual, cableDuctSpecification, actualCableDuctSpecification);
    }

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

}