org.fest.assertions
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
Author:
Alex Ruiz

Method Summary
 NumberAssert isNegative()
          Verifies that the actual number is negative.
 NumberAssert isPositive()
          Verifies that the actual number is positive.
 NumberAssert isZero()
          Verifies that the actual number is equal to zero.
 

Method Detail

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.


Copyright © 2007-2010 FEST (Fixtures for Easy Software Testing). All Rights Reserved.