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

com.foursoft.vecmodel.vec120.AbstractVecRobustnessPropertiesAssert 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.internal.Iterables;
import org.assertj.core.util.Objects;

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

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

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

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

    // null safe check
    String actualClassKey = actual.getClassKey();
    if (!Objects.areEqual(actualClassKey, classKey)) {
      failWithMessage(assertjErrorMessage, actual, classKey, actualClassKey);
    }

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

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

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

    // null safe check
    String actualClassReferenceSystem = actual.getClassReferenceSystem();
    if (!Objects.areEqual(actualClassReferenceSystem, classReferenceSystem)) {
      failWithMessage(assertjErrorMessage, actual, classReferenceSystem, actualClassReferenceSystem);
    }

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

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

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

    // null safe check
    String actualClazz = actual.getClazz();
    if (!Objects.areEqual(actualClazz, clazz)) {
      failWithMessage(assertjErrorMessage, actual, clazz, actualClazz);
    }

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

  /**
   * Verifies that the actual VecRobustnessProperties's descriptions contains the given VecLocalizedString elements.
   * @param descriptions the given elements that should be contained in actual VecRobustnessProperties's descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecRobustnessProperties's descriptions does not contain all given VecLocalizedString elements.
   */
  public S hasDescriptions(VecLocalizedString... descriptions) {
    // check that actual VecRobustnessProperties we want to make assertions on is not null.
    isNotNull();

    // check that given VecLocalizedString varargs is not null.
    if (descriptions == null) failWithMessage("Expecting descriptions parameter not to be null.");

    // check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
    Iterables.instance().assertContains(info, actual.getDescriptions(), descriptions);

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

  /**
   * Verifies that the actual VecRobustnessProperties's descriptions contains the given VecLocalizedString elements in Collection.
   * @param descriptions the given elements that should be contained in actual VecRobustnessProperties's descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecRobustnessProperties's descriptions does not contain all given VecLocalizedString elements.
   */
  public S hasDescriptions(java.util.Collection descriptions) {
    // check that actual VecRobustnessProperties we want to make assertions on is not null.
    isNotNull();

    // check that given VecLocalizedString collection is not null.
    if (descriptions == null) {
      failWithMessage("Expecting descriptions parameter not to be null.");
      return myself; // to fool Eclipse "Null pointer access" warning on toArray.
    }

    // check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
    Iterables.instance().assertContains(info, actual.getDescriptions(), descriptions.toArray());

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

  /**
   * Verifies that the actual VecRobustnessProperties's descriptions contains only the given VecLocalizedString elements and nothing else in whatever order.
   * @param descriptions the given elements that should be contained in actual VecRobustnessProperties's descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecRobustnessProperties's descriptions does not contain all given VecLocalizedString elements.
   */
  public S hasOnlyDescriptions(VecLocalizedString... descriptions) {
    // check that actual VecRobustnessProperties we want to make assertions on is not null.
    isNotNull();

    // check that given VecLocalizedString varargs is not null.
    if (descriptions == null) failWithMessage("Expecting descriptions parameter not to be null.");

    // check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
    Iterables.instance().assertContainsOnly(info, actual.getDescriptions(), descriptions);

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

  /**
   * Verifies that the actual VecRobustnessProperties's descriptions contains only the given VecLocalizedString elements in Collection and nothing else in whatever order.
   * @param descriptions the given elements that should be contained in actual VecRobustnessProperties's descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecRobustnessProperties's descriptions does not contain all given VecLocalizedString elements.
   */
  public S hasOnlyDescriptions(java.util.Collection descriptions) {
    // check that actual VecRobustnessProperties we want to make assertions on is not null.
    isNotNull();

    // check that given VecLocalizedString collection is not null.
    if (descriptions == null) {
      failWithMessage("Expecting descriptions parameter not to be null.");
      return myself; // to fool Eclipse "Null pointer access" warning on toArray.
    }

    // check with standard error message, to set another message call: info.overridingErrorMessage("my error message");
    Iterables.instance().assertContainsOnly(info, actual.getDescriptions(), descriptions.toArray());

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

  /**
   * Verifies that the actual VecRobustnessProperties's descriptions does not contain the given VecLocalizedString elements.
   *
   * @param descriptions the given elements that should not be in actual VecRobustnessProperties's descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecRobustnessProperties's descriptions contains any given VecLocalizedString elements.
   */
  public S doesNotHaveDescriptions(VecLocalizedString... descriptions) {
    // check that actual VecRobustnessProperties we want to make assertions on is not null.
    isNotNull();

    // check that given VecLocalizedString varargs is not null.
    if (descriptions == null) failWithMessage("Expecting descriptions parameter not to be null.");

    // check with standard error message (use overridingErrorMessage before contains to set your own message).
    Iterables.instance().assertDoesNotContain(info, actual.getDescriptions(), descriptions);

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

  /**
   * Verifies that the actual VecRobustnessProperties's descriptions does not contain the given VecLocalizedString elements in Collection.
   *
   * @param descriptions the given elements that should not be in actual VecRobustnessProperties's descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecRobustnessProperties's descriptions contains any given VecLocalizedString elements.
   */
  public S doesNotHaveDescriptions(java.util.Collection descriptions) {
    // check that actual VecRobustnessProperties we want to make assertions on is not null.
    isNotNull();

    // check that given VecLocalizedString collection is not null.
    if (descriptions == null) {
      failWithMessage("Expecting descriptions parameter not to be null.");
      return myself; // to fool Eclipse "Null pointer access" warning on toArray.
    }

    // check with standard error message (use overridingErrorMessage before contains to set your own message).
    Iterables.instance().assertDoesNotContain(info, actual.getDescriptions(), descriptions.toArray());

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

  /**
   * Verifies that the actual VecRobustnessProperties has no descriptions.
   * @return this assertion object.
   * @throws AssertionError if the actual VecRobustnessProperties's descriptions is not empty.
   */
  public S hasNoDescriptions() {
    // check that actual VecRobustnessProperties we want to make assertions on is not null.
    isNotNull();

    // we override the default error message with a more explicit one
    String assertjErrorMessage = "\nExpecting :\n  <%s>\nnot to have descriptions but had :\n  <%s>";

    // check
    if (actual.getDescriptions().iterator().hasNext()) {
      failWithMessage(assertjErrorMessage, actual, actual.getDescriptions());
    }

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


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

    // check that property call/field access is true
    if (!actual.isHasRobustness()) {
      failWithMessage("\nExpecting that actual VecRobustnessProperties is has robustness but is not.");
    }

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

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

    // check that property call/field access is false
    if (actual.isHasRobustness()) {
      failWithMessage("\nExpecting that actual VecRobustnessProperties is not has robustness but is.");
    }

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

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

}