Package com.pnfsoftware.jeb.util.base
Class Assert
java.lang.Object
com.pnfsoftware.jeb.util.base.Assert
A replacement for built-in
asserts. Production-compatible assert-likes. Do not throw
AssertionError on failure; instead, a RuntimeException is raised.
Assert methods throw RuntimeException. The stacktrace of such as exception is adjusted to
reflect the actual code line where a(...) or fail(...) was called.
-
Constructor Details
-
Assert
public Assert()
-
-
Method Details
-
a
Assert that condition is true -
a
-
a
public static void a(boolean expression) -
fail
-
fail
public static void fail() -
debugFail
Fail ONLY on debug builds. Use carefully; this method can yield side-effect bugs on release builds that would have otherwise be caught in debug mode.- Parameters:
message-
-
debugFail
public static void debugFail()Fail ONLY on debug builds. Use carefully; this method can yield side-effect bugs on release builds that would have otherwise be caught in debug mode. -
debugFail
-