public final class UnitTestUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertRange(double aLowerBound,
double aUpperBound,
double aValue)
Asserts that a given value is within the given boundaries, that is,
aLowerBound <= aValue <= aUpperBound.
|
static void |
assertRange(int aLowerBound,
int aUpperBound,
int aValue)
Asserts that a given value is within the given boundaries, that is,
aLowerBound <= aValue <= aUpperBound.
|
static void |
assertRange(long aLowerBound,
long aUpperBound,
long aValue)
Asserts that a given value is within the given boundaries, that is,
aLowerBound <= aValue <= aUpperBound.
|
static void |
assertRange(String aMessage,
double aLowerBound,
double aUpperBound,
double aValue)
Asserts that a given value is within the given boundaries, that is,
aLowerBound <= aValue <= aUpperBound.
|
static void |
assertRange(String aMessage,
int aLowerBound,
int aUpperBound,
int aValue)
Asserts that a given value is within the given boundaries, that is,
aLowerBound <= aValue <= aUpperBound.
|
static void |
assertRange(String aMessage,
long aLowerBound,
long aUpperBound,
long aValue)
Asserts that a given value is within the given boundaries, that is,
aLowerBound <= aValue <= aUpperBound.
|
public static void assertRange(double aLowerBound, double aUpperBound, double aValue)
aLowerBound
- the lower boundary;aUpperBound
- the upper boundary;aValue
- the value to test.public static void assertRange(int aLowerBound, int aUpperBound, int aValue)
aLowerBound
- the lower boundary;aUpperBound
- the upper boundary;aValue
- the value to test.public static void assertRange(long aLowerBound, long aUpperBound, long aValue)
aLowerBound
- the lower boundary;aUpperBound
- the upper boundary;aValue
- the value to test.public static void assertRange(String aMessage, double aLowerBound, double aUpperBound, double aValue)
aMessage
- the message to print when the assertion fails;aLowerBound
- the lower boundary;aUpperBound
- the upper boundary;aValue
- the value to test.public static void assertRange(String aMessage, int aLowerBound, int aUpperBound, int aValue)
aMessage
- the message to print when the assertion fails;aLowerBound
- the lower boundary;aUpperBound
- the upper boundary;aValue
- the value to test.public static void assertRange(String aMessage, long aLowerBound, long aUpperBound, long aValue)
aMessage
- the message to print when the assertion fails;aLowerBound
- the lower boundary;aUpperBound
- the upper boundary;aValue
- the value to test.Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.