Package org.fest.assertions.internal
Class Booleans
- java.lang.Object
-
- org.fest.assertions.internal.Booleans
-
public class Booleans extends java.lang.Object
Reusable assertions for
s.Boolean
- Author:
- Alex Ruiz
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.static Booleans
instance()
Returns the singleton instance of this class.
-
-
-
Method Detail
-
instance
public static Booleans instance()
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
assertEqual
public void assertEqual(AssertionInfo info, java.lang.Boolean actual, boolean expected)
Asserts that two booleans are equal.- Parameters:
info
- contains information about the assertion.actual
- the actual value.expected
- the expected value.- Throws:
java.lang.AssertionError
- if the actual value isnull
.java.lang.AssertionError
- if the actual value is not equal to the expected one. This method will throw aorg.junit.ComparisonFailure
instead if JUnit is in the classpath and the expected and actual values are not equal.
-
assertNotEqual
public void assertNotEqual(AssertionInfo info, java.lang.Boolean actual, boolean other)
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:
java.lang.AssertionError
- if the actual value isnull
.java.lang.AssertionError
- if the actual value is equal to the other one.
-
-