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

fitnesse.slim.test.ConstructorThrows Maven / Gradle / Ivy

There is a newer version: 20250223
Show newest version
package fitnesse.slim.test;

public class ConstructorThrows {
  public ConstructorThrows(String message) {
    if ("stop test".equals(message)) {
      throw new StopTestException(message);
    }
    if ("stop suite".equals(message)) {
      throw new StopSuiteException(message);
    }
    throw new RuntimeException(message);
  }

}

class StopTestException extends RuntimeException {
  public StopTestException(String message) {
    super(message);
  }
}

class StopSuiteException extends RuntimeException {
  public StopSuiteException(String message) {
    super(message);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy