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

jmms.testing.AssertResult Maven / Gradle / Ivy

package jmms.testing;

public final class AssertResult extends TestResultBase {

    public static AssertResult pass() {
        return new AssertResult(State.PASS, null);
    }

    public static AssertResult fail(String message) {
        return new AssertResult(State.FAIL, message);
    }

    public static AssertResult fail(String message, Exception exception) {
        return new AssertResult(State.FAIL, message, exception);
    }

    public AssertResult() {
    }

    public AssertResult(State state,  String message) {
        super(state, null, message);
    }

    public AssertResult(State state, String message, Throwable exception) {
        super(state, null, message, exception);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy