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

fitnesse.reporting.BaseFormatter Maven / Gradle / Ivy

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

import fitnesse.testsystems.Assertion;
import fitnesse.testsystems.ExceptionResult;
import fitnesse.testsystems.TestPage;
import fitnesse.testsystems.TestResult;
import fitnesse.testsystems.TestSummary;
import fitnesse.testsystems.TestSystem;
import fitnesse.wiki.WikiPage;

import java.io.IOException;

public abstract class BaseFormatter implements Formatter {

  private final WikiPage page;

  protected BaseFormatter() {
    this.page = null;
  }

  protected BaseFormatter(final WikiPage page) {
    this.page = page;
  }

  protected WikiPage getPage() {
    return page;
  }

  @Override
  public void testSystemStarted(TestSystem testSystem) throws IOException {
  }

  @Override
  public void testStarted(TestPage testPage) throws IOException {
  }

  @Override
  public void testOutputChunk(String output) throws IOException {
  }

  @Override
  public void testComplete(TestPage test, TestSummary summary) throws IOException {
  }

  public int getErrorCount() {
    return 0;
  }

  @Override
  public void testAssertionVerified(Assertion assertion, TestResult testResult) {
  }

  @Override
  public void testExceptionOccurred(Assertion assertion, ExceptionResult exceptionResult) {
  }

  @Override
  public void testSystemStopped(TestSystem testSystem, Throwable cause) {
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy