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

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

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

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

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

    // null safe check
    VecConnectorHousingCapSpecification actualConnectorHousingCapSpecification = actual.getConnectorHousingCapSpecification();
    if (!Objects.areEqual(actualConnectorHousingCapSpecification, connectorHousingCapSpecification)) {
      failWithMessage(assertjErrorMessage, actual, connectorHousingCapSpecification, actualConnectorHousingCapSpecification);
    }

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

}