public static class SAFSPlus.Assert
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Assert()
Protected Constructor for static class.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
Equals(double actual,
double expected)
Assert two doubles or floats are equal using an absolute positive delta of 0.
|
static boolean |
Equals(double actual,
double expected,
double delta)
Assert two doubles or floats are equal within an absolute positive delta.
|
static boolean |
Equals(double actual,
double expected,
double delta,
java.lang.String customMessage)
Assert two doubles or floats are equal within an absolute positive delta.
|
static boolean |
Equals(long actual,
long expected)
Assert two longs or ints are equal.
|
static boolean |
Equals(long actual,
long expected,
java.lang.String customMessage)
Assert two longs or ints are equal.
|
static boolean |
Equals(java.lang.Object actual,
java.lang.Object expected)
Assert two Objects are equal.
|
static boolean |
Equals(java.lang.Object actual,
java.lang.Object expected,
java.lang.String customMessage)
Assert two Objects are equal.
|
static void |
fail()
Issue a generic test failure.
|
static void |
fail(java.lang.String customMessage)
Issue a failure.
|
static boolean |
False(boolean actual)
Assert a boolean is false.
|
static boolean |
False(boolean actual,
java.lang.String customMessage)
Assert a boolean is false.
|
static boolean |
getAbortOnFailure() |
(package private) static void |
incrementCounters(boolean wasSuccessful) |
static boolean |
NotEqual(double actual,
double expected)
Assert two doubles or floats are NOT equal by an absolute positive delta of 0.
|
static boolean |
NotEqual(double actual,
double expected,
double delta)
Assert two doubles or floats are NOT equal by an absolute positive delta.
|
static boolean |
NotEqual(double actual,
double expected,
double delta,
java.lang.String customMessage)
Assert two doubles or floats are NOT equal by an absolute positive delta.
|
static boolean |
NotEqual(long actual,
long expected)
Assert two longs or ints are NOT equal.
|
static boolean |
NotEqual(long actual,
long expected,
java.lang.String customMessage)
Assert two longs or ints are NOT equal.
|
static boolean |
NotEqual(java.lang.Object actual,
java.lang.Object expected)
Assert two Objects are NOT equal.
|
static boolean |
NotEqual(java.lang.Object actual,
java.lang.Object expected,
java.lang.String customMessage)
Assert two Objects are NOT equal.
|
static boolean |
NotNull(java.lang.Object actual)
Assert an Objects is NOT null.
|
static boolean |
NotNull(java.lang.Object actual,
java.lang.String customMessage)
Assert an Object is NOT null.
|
static boolean |
NotSame(java.lang.Object actual,
java.lang.Object expected)
Assert an Object is NOT the same object as the expected Object.
|
static boolean |
NotSame(java.lang.Object actual,
java.lang.Object expected,
java.lang.String customMessage)
Assert an Object is NOT the same object as the expected Object.
|
static boolean |
Null(java.lang.Object actual)
Assert an Objects IS null.
|
static boolean |
Null(java.lang.Object actual,
java.lang.String customMessage)
Assert an Object IS null.
|
static boolean |
Same(java.lang.Object actual,
java.lang.Object expected)
Assert an Object is the same object as the expected Object.
|
static boolean |
Same(java.lang.Object actual,
java.lang.Object expected,
java.lang.String customMessage)
Assert an Object is the same object as the expected Object.
|
static void |
setAbortOnFailure(boolean abortOnFailure)
Default = false.
|
static boolean |
True(boolean actual)
Assert a boolean is true.
|
static boolean |
True(boolean actual,
java.lang.String customMessage)
Assert a boolean is true.
|
public static void setAbortOnFailure(boolean abortOnFailure)
public static boolean getAbortOnFailure()
static void incrementCounters(boolean wasSuccessful)
public static boolean Equals(double actual, double expected)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean Equals(double actual, double expected, double delta)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean Equals(double actual, double expected, double delta, java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean Equals(long actual, long expected)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean Equals(long actual, long expected, java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean Equals(java.lang.Object actual, java.lang.Object expected)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean Equals(java.lang.Object actual, java.lang.Object expected, java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean NotEqual(double actual, double expected)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean NotEqual(double actual, double expected, double delta)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean NotEqual(double actual, double expected, double delta, java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean NotEqual(long actual, long expected)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean NotEqual(long actual, long expected, java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean NotEqual(java.lang.Object actual, java.lang.Object expected)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean NotEqual(java.lang.Object actual, java.lang.Object expected, java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean NotNull(java.lang.Object actual)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean NotNull(java.lang.Object actual, java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean Null(java.lang.Object actual)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean Null(java.lang.Object actual, java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean Same(java.lang.Object actual, java.lang.Object expected)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean Same(java.lang.Object actual, java.lang.Object expected, java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean NotSame(java.lang.Object actual, java.lang.Object expected)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean NotSame(java.lang.Object actual, java.lang.Object expected, java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean True(boolean actual)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean True(boolean actual, java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean False(boolean actual)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static boolean False(boolean actual, java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true and the assertion fails.public static void fail()
java.lang.RuntimeException
- if abortOnFailure is true.public static void fail(java.lang.String customMessage)
java.lang.RuntimeException
- if abortOnFailure is true.Copyright © SAS Institute. All Rights Reserved.