public class Booleans
extends java.lang.Object
Booleans.| Modifier and Type | Field and Description |
|---|---|
(package private) Failures |
failures |
private static Booleans |
INSTANCE |
| Constructor and Description |
|---|
Booleans() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertEqual(AssertionInfo info,
java.lang.Boolean actual,
boolean expected)
Asserts that two booleans are equal.
|
void |
assertNotEqual(AssertionInfo info,
java.lang.Boolean actual,
boolean other)
Asserts that two longs are not equal.
|
private static void |
assertNotNull(AssertionInfo info,
java.lang.Boolean actual) |
static Booleans |
instance()
Returns the singleton instance of this class.
|
public static Booleans instance()
public void assertEqual(AssertionInfo info, java.lang.Boolean actual, boolean expected)
info - contains information about the assertion.actual - the actual value.expected - the expected value.java.lang.AssertionError - if the actual value is null.java.lang.AssertionError - if the actual value is not equal to the expected one. This method will throw a
org.junit.ComparisonFailure instead if JUnit is in the classpath and the expected and actual values are not
equal.public void assertNotEqual(AssertionInfo info, java.lang.Boolean actual, boolean other)
info - contains information about the assertion.actual - the actual value.other - the value to compare the actual value to.java.lang.AssertionError - if the actual value is null.java.lang.AssertionError - if the actual value is equal to the other one.private static void assertNotNull(AssertionInfo info, java.lang.Boolean actual)