| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract NUMBER | |
| protected boolean | areEqual(final NUMBER value, final NUMBER other)
|
| public void | assertIsBetween(AssertionInfo
contains information about the assertion. info, NUMBER the actual value. actual, NUMBER range start value start, NUMBER range end value end)Asserts that the actual value is in [start, end] range (start included, end included). |
| public void | assertIsCloseTo(final AssertionInfo
contains information about the assertion. info, final NUMBER the actual value. actual, final NUMBER the value to compare actual too. expected, final Offset<NUMBER> the given positive offset. offset)Asserts that the actual value is close to the expected one by less than the given offset. |
| public void | assertIsCloseToPercentage(final AssertionInfo
contains information about the assertion. info, final NUMBER the actual value. actual, final NUMBER the expected value. other, final Percentage the given positive percentage. percentage)Asserts that the actual value is close to the an offset expressed as an percentage value. |
| public void | assertIsNegative(AssertionInfo
contains information about the assertion. info, NUMBER the actual value. actual)Asserts that the actual value is negative. |
| public void | assertIsNotCloseTo(final AssertionInfo
contains information about the assertion. info, final NUMBER the actual value. actual, final NUMBER the value to compare actual too. expected, final Offset<NUMBER> the given positive offset. offset)Asserts that the actual value is not close to the expected one by less than the given offset. |
| public void | assertIsNotCloseToPercentage(final AssertionInfo
contains information about the assertion. info, final NUMBER the actual value. actual, final NUMBER the expected value. other, final Percentage the given positive percentage. percentage)Asserts that the actual value is not close to the an offset expressed as an percentage value. |
| public void | assertIsNotNegative(AssertionInfo
contains information about the assertion. info, NUMBER the actual value. actual)Asserts that the actual value is not negative. |
| public void | assertIsNotPositive(AssertionInfo
contains information about the assertion. info, NUMBER the actual value. actual)Asserts that the actual value is not positive. |
| public void | assertIsNotZero(AssertionInfo
contains information about the assertion. info, NUMBER the actual value. actual)Asserts that the actual value is not equal to zero. |
| public void | assertIsOne(AssertionInfo
contains information about the assertion. info, NUMBER the actual value. actual)Asserts that the actual value is equal to one. |
| public void | assertIsPositive(AssertionInfo
contains information about the assertion. info, NUMBER the actual value. actual)Asserts that the actual value is positive. |
| public void | assertIsStrictlyBetween(AssertionInfo
contains information about the assertion. info, NUMBER the actual value. actual, NUMBER the start value (exclusive), expected not to be null. start, NUMBER the end value (exclusive), expected not to be null. end)Asserts that the actual value is in ]start, end[ range (start excluded, end excluded). |
| public void | assertIsZero(AssertionInfo
contains information about the assertion. info, NUMBER the actual value. actual)Asserts that the actual value is equal to zero. |
| protected abstract boolean | |
| protected boolean | |
| protected abstract NUMBER | |
| protected abstract NUMBER |
| Numbers | back to summary |
|---|---|
| public Numbers() | |
| Numbers | back to summary |
|---|---|
| public Numbers(ComparisonStrategy comparisonStrategy) | |
| absDiff | back to summary |
|---|---|
| protected abstract NUMBER absDiff(final NUMBER actual, final NUMBER other) | |
| areEqual | back to summary |
|---|---|
| protected boolean areEqual(final NUMBER value, final NUMBER other) | |
| assertIsBetween | back to summary |
|---|---|
| public void assertIsBetween(AssertionInfo info, NUMBER actual, NUMBER start, NUMBER end) Asserts that the actual value is in [start, end] range (start included, end included).
| |
| assertIsCloseTo | back to summary |
|---|---|
| public void assertIsCloseTo(final AssertionInfo info, final NUMBER actual, final NUMBER expected, final Offset<NUMBER> offset) Asserts that the actual value is close to the expected one by less than the given offset. It does not rely on the custom comparisonStrategy (if one is set) because using an offset is already a specific comparison strategy.
| |
| assertIsCloseToPercentage | back to summary |
|---|---|
| public void assertIsCloseToPercentage(final AssertionInfo info, final NUMBER actual, final NUMBER other, final Percentage percentage) Asserts that the actual value is close to the an offset expressed as an percentage value.
| |
| assertIsNegative | back to summary |
|---|---|
| public void assertIsNegative(AssertionInfo info, NUMBER actual) Asserts that the actual value is negative.
| |
| assertIsNotCloseTo | back to summary |
|---|---|
| public void assertIsNotCloseTo(final AssertionInfo info, final NUMBER actual, final NUMBER expected, final Offset<NUMBER> offset) Asserts that the actual value is not close to the expected one by less than the given offset.
| |
| assertIsNotCloseToPercentage | back to summary |
|---|---|
| public void assertIsNotCloseToPercentage(final AssertionInfo info, final NUMBER actual, final NUMBER other, final Percentage percentage) Asserts that the actual value is not close to the an offset expressed as an percentage value.
| |
| assertIsNotNegative | back to summary |
|---|---|
| public void assertIsNotNegative(AssertionInfo info, NUMBER actual) Asserts that the actual value is not negative.
| |
| assertIsNotPositive | back to summary |
|---|---|
| public void assertIsNotPositive(AssertionInfo info, NUMBER actual) Asserts that the actual value is not positive.
| |
| assertIsNotZero | back to summary |
|---|---|
| public void assertIsNotZero(AssertionInfo info, NUMBER actual) Asserts that the actual value is not equal to zero.
| |
| assertIsOne | back to summary |
|---|---|
| public void assertIsOne(AssertionInfo info, NUMBER actual) Asserts that the actual value is equal to one.
| |
| assertIsPositive | back to summary |
|---|---|
| public void assertIsPositive(AssertionInfo info, NUMBER actual) Asserts that the actual value is positive.
| |
| assertIsStrictlyBetween | back to summary |
|---|---|
| public void assertIsStrictlyBetween(AssertionInfo info, NUMBER actual, NUMBER start, NUMBER end) Asserts that the actual value is in ]start, end[ range (start excluded, end excluded).
| |
| assertIsZero | back to summary |
|---|---|
| public void assertIsZero(AssertionInfo info, NUMBER actual) Asserts that the actual value is equal to zero.
| |
| isGreaterThan | back to summary |
|---|---|
| protected abstract boolean isGreaterThan(final NUMBER value, final NUMBER other) | |
| isGreaterThanOrEqualTo | back to summary |
|---|---|
| protected boolean isGreaterThanOrEqualTo(final NUMBER value, final NUMBER other) | |
| one | back to summary |
|---|---|
| protected abstract NUMBER one() | |
| zero | back to summary |
|---|---|
| protected abstract NUMBER zero() | |