|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface AssertLogger.DirectAssertHandler
Handler of an assertion result which allows to throw Exceptions or log messages
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.omnaest.utils.assertion.AssertLogger.DirectAssertHandlerMessageChoice |
|---|
AssertLogger.DirectAssertHandlerMessageChoice.LogLevel |
| Method Summary | |
|---|---|
AssertLogger.DirectAssertHandler |
logAs(AssertLogger.DirectAssertHandlerMessageChoice.LogLevel logLevel)
Logs the assertion Exception using the given AssertLogger.DirectAssertHandlerMessageChoice.LogLevel |
void |
throwException()
Throws an Exception triggered by the previous assertion |
void |
throwException(Exception exception)
Throws the given Exception with the assertion as cause |
void |
throwException(RuntimeException runtimeException)
Throws the given RuntimeException with the assertion as cause |
void |
throwException(Throwable throwable)
Throws the given Throwable with the assertion as cause |
void |
throwRuntimeException()
Throws a RuntimeException triggered by the previous assertion |
| Methods inherited from interface org.omnaest.utils.assertion.AssertLogger.DirectAssertResultValueProvider |
|---|
getAssertResult |
| Methods inherited from interface org.omnaest.utils.assertion.AssertLogger.DirectAssertHandlerMessageChoice |
|---|
logWithMessage, logWithMessage |
| Methods inherited from interface org.omnaest.utils.assertion.AssertLogger.DirectAssertSuccessFailureChoice |
|---|
onFailure, onSuccess |
| Method Detail |
|---|
void throwException()
throws Exception
Exception triggered by the previous assertion
Exceptionvoid throwRuntimeException()
RuntimeException triggered by the previous assertion
void throwException(RuntimeException runtimeException)
RuntimeException with the assertion as cause
runtimeException -
RuntimeException
void throwException(Exception exception)
throws Exception
Exception with the assertion as cause
exception -
Exception
void throwException(Throwable throwable)
throws Throwable
Throwable with the assertion as cause
throwable -
ThrowableAssertLogger.DirectAssertHandler logAs(AssertLogger.DirectAssertHandlerMessageChoice.LogLevel logLevel)
Exception using the given AssertLogger.DirectAssertHandlerMessageChoice.LogLevel
logLevel - AssertLogger.DirectAssertHandlerMessageChoice.LogLevel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||