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

info.novatec.testit.livingdoc.interpreter.SkipInterpreter Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
package info.novatec.testit.livingdoc.interpreter;

import static info.novatec.testit.livingdoc.util.LoggerConstants.ENTRY_WITH;
import static info.novatec.testit.livingdoc.util.LoggerConstants.EXIT;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import info.novatec.testit.livingdoc.Specification;
import info.novatec.testit.livingdoc.Statistics;


public class SkipInterpreter extends AbstractInterpreter {
    private static final Logger LOG = LoggerFactory.getLogger(SkipInterpreter.class);

    private final Statistics stats;

    public SkipInterpreter() {
        this(new Statistics());
    }

    public SkipInterpreter(Statistics stats) {
        this.stats = stats;
    }

    @Override
    public void interpret(Specification specification) {
        LOG.debug(ENTRY_WITH, specification.toString());
        specification.nextExample();
        specification.exampleDone(stats);
        LOG.debug(EXIT);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy