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

com.github.mkolisnyk.cucumber.assertions.LazyAssert Maven / Gradle / Ivy

Go to download

The part of Cucumber Reports library which contains extended Cucumber-JVM runners and all relevant functionality.

There is a newer version: 1.3.5
Show newest version
package com.github.mkolisnyk.cucumber.assertions;

public final class LazyAssert {

    private LazyAssert() {
    }

    public static void fail() {
        throw new LazyAssertionError();
    }
    public static void fail(String message) {
        throw new LazyAssertionError(message);
    }
    public static void assertTrue(boolean condition, String message) {
        if (!condition) {
            if (message == null) {
                fail();
            } else {
                fail(message);
            }
        }
    }
    public static void assertTrue(boolean condition) {
        assertTrue(condition, null);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy