/******************************************************************************* * Copyright Technophobia Ltd 2012 * * This file is part of the Substeps Eclipse Plugin. * * The Substeps Eclipse Plugin is free software: you can redistribute it and/or modify * it under the terms of the Eclipse Public License v1.0. * * The Substeps Eclipse Plugin is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * Eclipse Public License for more details. * * You should have received a copy of the Eclipse Public License * along with the Substeps Eclipse Plugin. If not, see <http://www.eclipse.org/legal/epl-v10.html>. ******************************************************************************/ package com.technophobia.substeps.junit.ui.testsession; /*public interface TestRunSession { boolean isStarting(); boolean isStopped(); boolean isRunning(); boolean isKeptAlive(); int getStartedCount(); @Override String getTestRunName(); ILaunch getLaunch(); void stopTestRun(); void swapOut(); TestElement[] getAllFailedTestElements(); void addTestSessionListener(ITestSessionListener sessionListener); public class NullTestRunSession implements TestRunSession { private static TestRunSession instance = null; private NullTestRunSession() { } @Override public boolean isStopped() { return true; } @Override public boolean isRunning() { return false; } @Override public int getStartedCount() { return 0; } @Override public String getTestRunName() { return null; } @Override public ILaunch getLaunch() { return null; } @Override public boolean isKeptAlive() { return false; } @Override public void addTestSessionListener(final ITestSessionListener sessionListener) { } @Override public void stopTestRun() { } @Override public TestElement[] getAllFailedTestElements() { return new TestElement[0]; } @Override public void swapOut() { } public static TestRunSession instance() { if (instance == null) { instance = new NullTestRunSession(); } return instance; } @Override public boolean isStarting() { // TODO Auto-generated method stub return false; } } }*/