com.github.mkolisnyk.cucumber.assertions.LazyAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-runner Show documentation
Show all versions of cucumber-runner Show documentation
The part of Cucumber Reports library which contains extended Cucumber-JVM runners and all relevant functionality.
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);
}
}