|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.unitedinternet.portal.selenium.utils.logging.LoggingAssert
public final class LoggingAssert
Wrapped junit4 assertions to enable logging them. Only a couple junit4 assertions are wrapped here. And these always expect a message (use null if you do not care) TODO: use reflection proxy or AOP to get this working more smoothly Maybe wrap also these? fail(String message), assertArrayEquals(String message, Object[] expecteds, Object[] actuals)
| Method Summary | ||
|---|---|---|
static void |
assertEquals(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual,
LoggingSelenium selenium)
As in Junit4 (see there for details). |
|
static void |
assertFalse(java.lang.String message,
boolean condition,
LoggingSelenium selenium)
As in Junit4 (see there for details). |
|
static
|
assertThat(java.lang.String message,
T actual,
org.hamcrest.Matcher<T> matcher,
LoggingSelenium selenium)
As in Junit4 (see there for details). |
|
static void |
assertTrue(java.lang.String message,
boolean condition,
LoggingSelenium selenium)
As in Junit4 (see there for details). |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void assertTrue(java.lang.String message,
boolean condition,
LoggingSelenium selenium)
message - always needed - please provide a good description what may have been wrongcondition - condition to be checked for trueselenium - selenium object to be logged through
public static void assertFalse(java.lang.String message,
boolean condition,
LoggingSelenium selenium)
message - always needed - please provide a good description what may have been wrongcondition - condition to be checked for falseselenium - selenium object to be logged through
public static void assertEquals(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual,
LoggingSelenium selenium)
message - always needed - please provide a good description what may have been wrongexpected - what is expectedactual - what is to be checked for equalityselenium - selenium object to be logged through
public static <T> void assertThat(java.lang.String message,
T actual,
org.hamcrest.Matcher<T> matcher,
LoggingSelenium selenium)
T - see junit4 for detailsmessage - always needed - please provide a good description what may have been wrongactual - what is to be checked for equalitymatcher - see junit4 for details on possible matcherselenium - selenium object to be logged through
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||