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