Package org.assertj.core.internal
Class Booleans
java.lang.Object
org.assertj.core.internal.Booleans
Reusable assertions for
Booleans.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertEqual(AssertionInfo info, Boolean actual, boolean expected) Asserts that two booleans are equal.voidassertNotEqual(AssertionInfo info, Boolean actual, boolean other) Asserts that two longs are not equal.private static voidassertNotNull(AssertionInfo info, Boolean actual) static Booleansinstance()Returns the singleton instance of this class.
-
Field Details
-
INSTANCE
-
failures
Failures failures
-
-
Constructor Details
-
Booleans
Booleans()
-
-
Method Details
-
instance
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
assertEqual
Asserts that two booleans are equal.- Parameters:
info- contains information about the assertion.actual- the actual value.expected- the expected value.- Throws:
AssertionError- if the actual value isnull.AssertionError- if the actual value is not equal to the expected one. This method will throw aorg.junit.ComparisonFailureinstead if JUnit is in the classpath and the expected and actual values are not equal.
-
assertNotEqual
Asserts that two longs are not equal.- Parameters:
info- contains information about the assertion.actual- the actual value.other- the value to compare the actual value to.- Throws:
AssertionError- if the actual value isnull.AssertionError- if the actual value is equal to the other one.
-
assertNotNull
-