Interface NumberAssert

All Known Implementing Classes:
BigDecimalAssert, ByteAssert, DoubleAssert, FloatAssert, IntAssert, LongAssert, ShortAssert

public interface NumberAssert
Understands a template of assertion methods for numbers (primitives and objects.)
Since:
1.2
  • Method Summary

    Modifier and Type
    Method
    Description
    Verifies that the actual number is negative.
    Verifies that the actual number is positive.
    Verifies that the actual number is equal to zero.
  • Method Details

    • isZero

      NumberAssert isZero()
      Verifies that the actual number is equal to zero.
      Returns:
      this assertion object.
      Throws:
      AssertionError - if the actual number is not equal to zero.
    • isPositive

      NumberAssert isPositive()
      Verifies that the actual number is positive.
      Returns:
      this assertion object.
      Throws:
      AssertionError - if the actual number is not positive.
    • isNegative

      NumberAssert isNegative()
      Verifies that the actual number is negative.
      Returns:
      this assertion object.
      Throws:
      AssertionError - if the actual number is not negative.