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

info.novatec.testit.livingdoc.call.AnnotateSetup Maven / Gradle / Ivy

package info.novatec.testit.livingdoc.call;

import info.novatec.testit.livingdoc.Example;


public class AnnotateSetup implements Stub {
    private final Example row;

    public AnnotateSetup(Example row) {
        this.row = row;
    }

    @Override
    public void call(Result result) {
        Example newLastCell = row.addChild();

        if (result.isRight()) {
            Annotate.entered(newLastCell).call(result);
        }
        if (result.isWrong()) {
            Annotate.notEntered(newLastCell).call(result);
        }
        if (result.isException()) {
            Annotate.exception(newLastCell).call(result);
        }
        if (result.isIgnored()) {
            Annotate.entered(newLastCell).call(result);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy