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

ai.stapi.test.disabledImplementations.InvalidTestOperation Maven / Gradle / Ivy

There is a newer version: 0.2.3
Show newest version
package ai.stapi.test.disabledImplementations;

public class InvalidTestOperation extends RuntimeException {

  private InvalidTestOperation(String becauseMessage) {
    super("Invalid operation during test, " + becauseMessage);
  }

  public static InvalidTestOperation becauseTestCaseDoesntAllowSendingCommands() {
    return new InvalidTestOperation("because TestCase doesnt allow sending commands.");
  }

  public static InvalidTestOperation becauseTestCaseDoesntAllowPublishingEvents() {
    return new InvalidTestOperation("because TestCase doesnt allow publishing events.");
  }

  public static InvalidTestOperation becauseTestCaseDoesntAllowQuerying() {
    return new InvalidTestOperation("because TestCase doesnt allow querying.");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy