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

fitnesse.fixtures.TearDown Maven / Gradle / Ivy

There is a newer version: 20181217
Show newest version
// Copyright (C) 2003-2009 by Object Mentor, Inc. All rights reserved.
// Released under the terms of the CPL Common Public License version 1.0.
package fitnesse.fixtures;

import fit.Fixture;

import java.io.File;

import static fitnesse.fixtures.FitnesseFixtureContext.*;
import fitnesse.util.Clock;
import util.FileUtil;

public class TearDown extends Fixture {
  public TearDown() throws Exception {
    context.fitNesse.stop();
    authenticator = null;
    File historyDirectory = context.getTestHistoryDirectory();
    if (historyDirectory.exists())
      FileUtil.deleteFileSystemDirectory(historyDirectory);
    Clock.restoreDefaultClock();
    context = null;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy