public final class SeLionAsserts extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertEquals(boolean actual,
boolean expected)
assertEquals method is used to assert based on actual and expected values and provide a Pass result for a same
boolean.assertEquals will yield a Fail result for a mismatch and abort the test case.
|
static void |
assertEquals(Object[] actual,
Object[] expected)
assertEquals method is used to assert based on actual and expected values and provide a Pass result for a same
match.assertEquals will yield a Fail result for a mismatch and abort the test case.
|
static void |
assertEquals(Object actual,
Object expected)
assertEquals method is used to assert based on actual and expected values and provide a Pass result for a same
match.assertEquals will yield a Fail result for a mismatch and abort the test case.
|
static void |
assertEquals(Object actual,
Object expected,
String message)
assertEquals method is used to assert based on actual and expected values and provide a Pass result for a same
match.assertEquals will yield a Fail result for a mismatch and abort the test case.
|
static void |
assertFalse(boolean condition)
assertFalse method is used to assert the condition based on boolean input and provide the Pass result for a FALSE
value.assertFalse will fail for a TRUE value and abort the test case
|
static void |
assertFalse(boolean condition,
String message)
assertFalse method is used to assert the condition based on boolean input and provide the Pass result for a FALSE
value.assertFalse will fail for a TRUE value and abort the test case
|
static void |
assertNotEquals(Object actual,
Object expected)
assertNotEquals method is used to assert based on actual and expected values and provide a Pass result for a
mismatch.
|
static void |
assertNotEquals(Object actual,
Object expected,
String msg)
assertNotEquals method is used to assert based on actual and expected values and provide a Pass result for a
mismatch.
|
static void |
assertNotNull(Object actual)
assertNotNull method is used to assert based on actual value and provide a Pass result if the object or actual
value is NOT null.
|
static void |
assertNotNull(Object actual,
String msg)
assertNotNull method is used to assert based on actual value and provide a Pass result if the object or actual
value is NOT null.
|
static void |
assertNull(Object actual)
assertNull method is used to assert based on actual value and provide a Pass result if the object or actual value
is null.
|
static void |
assertNull(Object actual,
String msg)
assertNull method is used to assert based on actual value and provide a Pass result if the object or actual value
is null.
|
static void |
assertTrue(boolean condition)
assertTrue method is used to assert the condition based on boolean input and provide the Pass result for a TRUE
value.
|
static void |
assertTrue(boolean condition,
String message)
assertTrue method is used to assert the condition based on boolean input and provide the Pass result for a TRUE
value.
|
static void |
fail(String message)
Fail method fails a flow.
|
static void |
fail(Throwable e,
String message) |
static void |
verifyEquals(Object actual,
Object expected)
verifyEquals method is used to assert based on actual and expected values and provide a Pass result for a same
match.verifyEquals will yield a Fail result for a mismatch and continue to run the test case.
|
static void |
verifyEquals(Object actual,
Object expected,
String msg)
verifyEquals method is used to assert based on actual and expected values and provide a Pass result for a same
match.verifyEquals will yield a Fail result for a mismatch and continue to run the test case.
|
static void |
verifyFalse(boolean condition)
verifyFalse method is used to assert the condition based on boolean input and provide the Pass result for a FALSE
value.verifyFalse will Fail for a TRUE value and continue to run the test case.
|
static void |
verifyFalse(boolean condition,
String msg)
verifyFalse method is used to assert the condition based on boolean input and provide the Pass result for a FALSE
value.verifyFalse will Fail for a TRUE value and continue to run the test case.
|
static void |
verifyNotEquals(Object actual,
Object expected)
verifyNotEquals method is used to assert based on actual and expected values and provide a Pass result for a
mismatch and continue to run the test case.
|
static void |
verifyNotEquals(Object actual,
Object expected,
String msg)
verifyNotEquals method is used to assert based on actual and expected values and provide a Pass result for a
mismatch and continue to run the test.
|
static void |
verifyNotNull(Object actual)
verifyNotNull method is used to assert based on actual value and provide a Pass result if the actual value is NOT
null and continue to run the test.
|
static void |
verifyNotNull(Object actual,
String msg)
verifyNotNull method is used to assert based on actual value and provide a Pass result if the actual value is NOT
null and continue to run the test.
|
static void |
verifyNull(Object actual)
verifyNull method is used to assert based on actual value and provide a Pass result if the actual value is null
and continue to run the test.
|
static void |
verifyNull(Object actual,
String msg)
verifyNull method is used to assert based on actual value and provide a Pass result if the actual value is null
and continue to run the test.
|
static void |
verifyTrue(boolean condition)
verifyTrue method is used to assert the condition based on boolean input and provide the Pass result for a TRUE
value.verifyTrue will Fail for a FALSE value and continue to run the test case.
|
static void |
verifyTrue(boolean condition,
String msg)
verifyTrue method is used to assert the condition based on boolean input and provide the Pass result for a TRUE
value.verifyTrue will Fail for a FALSE value and continue to run the test case.
|
public static void assertTrue(boolean condition)
SeLionAsserts.assertTrue(true);
condition
- - A test condition to be validated for pass/failpublic static void assertFalse(boolean condition)
condition
- - A test condition to be validated for pass/fail *
SeLionAsserts.assertFalse(false);
public static void assertEquals(Object actual, Object expected)
actual
- - Actual value obtained from executing a testexpected
- - Expected value for the test to pass.
SeLionAsserts.assertEquals("OK","OK");
public static void assertNotEquals(Object actual, Object expected)
actual
- - Actual value obtained from executing a testexpected
- - Expected value for the test to pass.
SeLionAsserts.assertNotEquals("OK","NOTOK");
public static void assertNotEquals(Object actual, Object expected, String msg)
actual
- - Actual value obtained from executing a testexpected
- - Expected value for the test to pass. msg
- - A descriptive text narrating a validation being done Sample Usage
SeLionAsserts.assertNotEquals("OK","NOTOK", "My Assert message");
public static void assertNull(Object actual)
actual
- - Actual value obtained from executing a test
SeLionAsserts.assertNull(null);
public static void assertNull(Object actual, String msg)
actual
- - Actual value obtained from executing a testmsg
- - A descriptive text narrating a validation being done Sample Usage
SeLionAsserts.assertNull(null, "My Assert message");
public static void assertNotNull(Object actual)
actual
- - Actual value obtained from executing a test
SeLionAsserts.assertNotNull(null);
public static void assertNotNull(Object actual, String msg)
actual
- - Actual value obtained from executing a testmsg
- - A descriptive text narrating a validation being done Sample Usage
SeLionAsserts.assertNotNull(null, "My Assert message");
public static void verifyTrue(boolean condition, String msg)
SeLionAsserts.verifyTrue(true,"Some Message");
condition
- - A test condition to be validated for pass/failmsg
- - A descriptive text narrating a validation being donepublic static void verifyTrue(boolean condition)
SeLionAsserts.verifyTrue(true);
condition
- - A test condition to be validated for pass/failpublic static void verifyFalse(boolean condition, String msg)
SeLionAsserts.verifyFalse(false,"Some Message");
condition
- - A test condition to be validated for pass/failmsg
- - A descriptive text narrating a validation being donepublic static void verifyFalse(boolean condition)
SeLionAsserts.verifyFalse(false);
condition
- - A test condition to be validated for pass/failpublic static void verifyEquals(Object actual, Object expected, String msg)
actual
- - Actual value obtained from executing a testexpected
- - Expected value for the test to pass.msg
- - A descriptive text narrating a validation being done.
SeLionAsserts.verifyEquals("OK","OK" ,"Some Message");
public static void verifyEquals(Object actual, Object expected)
actual
- - Actual value obtained from executing a testexpected
- - Expected value for the test to pass.
SeLionAsserts.verifyEquals("OK","OK");
public static void verifyNotEquals(Object actual, Object expected)
actual
- - Actual value obtained from executing a testexpected
- - Expected value for the test to pass.
SeLionAsserts.verifyNotEquals("OK","NOTOK");
public static void verifyNotEquals(Object actual, Object expected, String msg)
actual
- - Actual value obtained from executing a testexpected
- - Expected value for the test to pass. msg
- - A descriptive text narrating a validation being done Sample Usage
SeLionAsserts.verifyNotEquals("OK","NOTOK", "My Assert message");
public static void verifyNull(Object actual)
actual
- - Actual value obtained from executing a test
SeLionAsserts.verifyNull("OK");
public static void verifyNull(Object actual, String msg)
actual
- - Actual value obtained from executing a testmsg
- - A descriptive text narrating a validation being done Sample Usage
SeLionAsserts.verifyNull("OK","My Assert message");
public static void verifyNotNull(Object actual)
actual
- - Actual value obtained from executing a test
SeLionAsserts.verifyNotNull("OK");
public static void verifyNotNull(Object actual, String msg)
actual
- - Actual value obtained from executing a testmsg
- - A descriptive text narrating a validation being done Sample Usage
SeLionAsserts.verifyNotNull("OK","My Assert message");
public static void assertTrue(boolean condition, String message)
SeLionAsserts.assertTrue(true, "Some Message");
condition
- - A test condition to be validated for pass/failmessage
- - A descriptive text narrating a validation being done.public static void assertFalse(boolean condition, String message)
condition
- - A test condition to be validated for pass/failmessage
- - A descriptive text narrating a validation being done.
SeLionAsserts.assertFalse(false,"Some Message");
public static void assertEquals(boolean actual, boolean expected)
actual
- - Actual boolean value obtained from executing a testexpected
- - Expected boolean value for the test to pass.
SeLionAsserts.assertEquals(true,true);
public static void assertEquals(Object[] actual, Object[] expected)
actual
- - Actual value obtained from executing a testexpected
- - Expected value for the test to pass.
SeLionAsserts.assertEquals("OK","OK");
public static void assertEquals(Object actual, Object expected, String message)
actual
- - Actual value obtained from executing a testexpected
- - Expected value for the test to pass.message
- - A descriptive text narrating a validation being done.
SeLionAsserts.assertEquals("OK","OK", "Some Message");
public static void fail(String message)
SeLionAsserts.fail("Some Message");
message
- -- A descriptive text narrating a validation being done.Copyright © 2016 PayPal Open Source. All rights reserved.