public class SimpleAssert
extends java.lang.Object
| Constructor and Description |
|---|
SimpleAssert(FailureHandler failureHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertNotNull(java.lang.Object object) |
void |
assertNotNull(java.lang.String message,
java.lang.Object object) |
protected void |
assertNotNullNorEmpty(java.lang.String propertyName,
java.lang.String property)
Asserts that propertyName is not a null String and has a length greater
than zero.
|
void |
assertTrue(boolean condition) |
void |
assertTrue(java.lang.String message,
boolean condition)
Evaluate if the given condition is
true or not. |
void |
fail(java.lang.String message) |
public SimpleAssert(FailureHandler failureHandler)
protected void assertNotNullNorEmpty(java.lang.String propertyName,
java.lang.String property)
public void assertTrue(boolean condition)
public void assertTrue(java.lang.String message,
boolean condition)
true or not.message - message displayed if assertion is falsecondition - condition to be testedpublic void assertNotNull(java.lang.Object object)
public void assertNotNull(java.lang.String message,
java.lang.Object object)
public void fail(java.lang.String message)
Copyright © 2002-2018. All Rights Reserved.