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

io.zeebe.protocol.record.intent.AbstractTimerIntentAssert Maven / Gradle / Ivy

There is a newer version: 1.0.0-alpha7
Show newest version
package io.zeebe.protocol.record.intent;

import org.assertj.core.api.AbstractComparableAssert;

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

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

  /**
   * Verifies that the actual TimerIntent should blacklist instance on error.
   * @return this assertion object.
   * @throws AssertionError - if the actual TimerIntent should not blacklist instance on error.
   */
  public S shouldBlacklistInstanceOnError() {
    // check that actual TimerIntent we want to make assertions on is not null.
    isNotNull();

    // check that property call/field access is true
    if (!actual.shouldBlacklistInstanceOnError()) {
      failWithMessage("\nExpecting that actual TimerIntent should blacklist instance on error but should not.");
    }

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

  /**
   * Verifies that the actual TimerIntent should not blacklist instance on error.
   * @return this assertion object.
   * @throws AssertionError - if the actual TimerIntent should blacklist instance on error.
   */
  public S shouldNotBlacklistInstanceOnError() {
    // check that actual TimerIntent we want to make assertions on is not null.
    isNotNull();

    // check that property call/field access is false
    if (actual.shouldBlacklistInstanceOnError()) {
      failWithMessage("\nExpecting that actual TimerIntent should not blacklist instance on error but should.");
    }

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

}