|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.assertions.internal.Comparables
org.fest.assertions.internal.Numbers<NUMBER>
public abstract class Numbers<NUMBER extends Comparable<NUMBER>>
Base class of reusable assertions for numbers.
Constructor Summary | |
---|---|
Numbers()
|
|
Numbers(org.fest.util.ComparisonStrategy comparisonStrategy)
|
Method Summary | |
---|---|
void |
assertIsNegative(AssertionInfo info,
NUMBER actual)
Asserts that the actual value is negative. |
void |
assertIsNotZero(AssertionInfo info,
NUMBER actual)
Asserts that the actual value is not equal to zero. |
void |
assertIsPositive(AssertionInfo info,
NUMBER actual)
Asserts that the actual value is positive. |
void |
assertIsZero(AssertionInfo info,
NUMBER actual)
Asserts that the actual value is equal to zero. |
protected abstract NUMBER |
zero()
|
Methods inherited from class org.fest.assertions.internal.Comparables |
---|
areEqual, assertEqual, assertEqualByComparison, assertGreaterThan, assertGreaterThanOrEqualTo, assertLessThan, assertLessThanOrEqualTo, assertNotEqual, assertNotEqualByComparison, assertNotNull, getComparator, instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Numbers()
public Numbers(org.fest.util.ComparisonStrategy comparisonStrategy)
Method Detail |
---|
protected abstract NUMBER zero()
public void assertIsZero(AssertionInfo info, NUMBER actual)
info
- contains information about the assertion.actual
- the actual value.
AssertionError
- if the actual value is null
.
AssertionError
- if the actual value is not equal to zero.public void assertIsNotZero(AssertionInfo info, NUMBER actual)
info
- contains information about the assertion.actual
- the actual value.
AssertionError
- if the actual value is null
.
AssertionError
- if the actual value is equal to zero.public void assertIsNegative(AssertionInfo info, NUMBER actual)
info
- contains information about the assertion.actual
- the actual value.
AssertionError
- if the actual value is null
.
AssertionError
- if the actual value is not negative: it is either equal to or greater than zero.public void assertIsPositive(AssertionInfo info, NUMBER actual)
info
- contains information about the assertion.actual
- the actual value.
AssertionError
- if the actual value is null
.
AssertionError
- if the actual value is not positive: it is either equal to or less than zero.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |