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

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

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

import info.novatec.testit.livingdoc.Annotatable;
import info.novatec.testit.livingdoc.Example;


public final class Annotate {
    public static Stub right(final Annotatable annotatable) {
        return new AnnotateRight(annotatable);
    }

    public static Stub wrong(Annotatable annotatable) {
        return new AnnotateWrong(annotatable, false);
    }

    public static Stub wrongWithDetails(Annotatable annotatable) {
        return new AnnotateWrong(annotatable, true);
    }

    public static Stub exception(Annotatable annotatable) {
        return new AnnotateException(annotatable);
    }

    private Annotate() {
    }

    public static Stub withDetails(Annotatable annotatable) {
        return new AnnotateExample(annotatable, true);
    }

    public static Stub withoutDetail(Annotatable annotatable) {
        return new AnnotateExample(annotatable, false);
    }

    public static Stub entered(Example annotatable) {
        return new AnnotateEntered(annotatable);
    }

    public static Stub notEntered(Example annotatable) {
        return new AnnotateNotEntered(annotatable);
    }

    public static Stub ignored(Annotatable annotatable) {
        return new AnnotateIgnored(annotatable);
    }

    public static Stub setup(Example annotatable) {
        return new AnnotateSetup(annotatable);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy