Class Booleans

java.lang.Object
org.assertj.core.internal.Booleans

public class Booleans extends Object
Reusable assertions for Booleans.
  • Field Details

  • Constructor Details

    • Booleans

      Booleans()
  • Method Details

    • 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, 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:
      AssertionError - if the actual value is null.
      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.
    • assertNotEqual

      public void assertNotEqual(AssertionInfo info, 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:
      AssertionError - if the actual value is null.
      AssertionError - if the actual value is equal to the other one.
    • assertNotNull

      private static void assertNotNull(AssertionInfo info, Boolean actual)