
org.specrunner.dumper.ISourceDumper Maven / Gradle / Ivy
/*
SpecRunner - Acceptance Test Driven Development Tool
Copyright (C) 2011-2016 Thiago Santos
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program 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
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
*/
package org.specrunner.dumper;
import java.util.Map;
import org.specrunner.result.IResultSet;
import org.specrunner.source.IEncoded;
import org.specrunner.source.ISource;
/**
* Dumps source and results to somewhere.
*
* @author Thiago Santos
*
*/
public interface ISourceDumper extends IEncoded {
/**
* Feature to setup clean resources.
*/
String FEATURE_CLEAN = ISourceDumper.class.getName() + ".clean";
/**
* Clean default. Default is 'true', if you want minimum running time use
* 'false' to avoid remove files before tests.
*/
Boolean DEFAULT_CLEAN = true;
/**
* Set clean information.
*
* @param clean
* true, to clean previous resources, false, otherwise.
*/
void setClean(Boolean clean);
/**
* Get clean status.
*
* @return true, if clean is enabled, false, otherwise.
*/
Boolean getClean();
/**
* Extra information to be dumped.
*
* @param source
* The specification input.
* @param result
* The result.
* @param model
* Extra information model.
* @throws SourceDumperException
* On dumping error.
*/
void dump(ISource source, IResultSet result, Map model) throws SourceDumperException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy