|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.assertion.AssertLogger.LoglevelImpl
protected static class AssertLogger.LoglevelImpl
Implementation for AssertLogger.Loglevel and AssertLogger.LoglevelAssert
| Nested Class Summary | |
|---|---|
static interface |
AssertLogger.LoglevelImpl.LoglevelSupport
Necessarily supported operations for a AssertLogger.Loglevel |
| Constructor Summary | |
|---|---|
protected |
AssertLogger.LoglevelImpl(AssertLogger.LoglevelImpl.LoglevelSupport loglevelSupport)
|
| Method Summary | |
|---|---|
boolean |
areEqual(Object object1,
Object object2)
Returns true if the given Objects are equal |
boolean |
areEqual(Object object1,
Object object2,
String message)
Returns true if the given Objects are equal |
AssertLogger.LoglevelAssert |
assertThat()
Returns a AssertLogger.LoglevelAssert instance |
void |
fails()
|
void |
fails(Exception cause)
|
void |
fails(String message)
|
void |
fails(String message,
Exception cause)
|
boolean |
isFalse(boolean expression)
Returns true if the given expression is false |
boolean |
isFalse(boolean expression,
String message)
Returns true if the given expression is false |
boolean |
isInterimTimeLowerThan(int durationLimit,
TimeUnit timeUnit,
DurationCapture durationCapture,
Object[] intervalKeys)
Returns true if the DurationCapture.getInterimTime(TimeUnit) is lower than the given duration limit. |
boolean |
isNotEmpty(Collection<?> collection)
Returns true if the given Collections is not null and not empty. |
boolean |
isNotEmpty(Collection<?> collection,
String message)
Returns true if the given Collections is not null and not empty. |
boolean |
isNotNull(Object object)
Returns true if the given Object is not null. |
boolean |
isNotNull(Object object,
Object... objects)
Returns true if all the given Objects are not null. |
boolean |
isNotNull(Object object,
String message)
Returns true if all the given Objects are not null. |
boolean |
isNotNull(String message,
Object object,
Object... objects)
Returns true if all the given Objects are not null. |
boolean |
isTrue(boolean expression)
Returns true if the given expression is true |
boolean |
isTrue(boolean expression,
String message)
Returns true if the given expression is true |
AssertLogger.Loglevel |
message(AssertLogger.MessageFactory messageFactory)
Writes a message to the Logger using the selected AssertLogger.Loglevel The AssertLogger.MessageFactory.message() method is only invoked if the respective AssertLogger.Loglevel is set to true within the
logging configuration. |
AssertLogger.Loglevel |
message(AssertLogger.MessageFactory messageFactory,
Throwable e)
Writes a message and a given Throwable to the Logger using the selected AssertLogger.Loglevel. |
AssertLogger.Loglevel |
message(String message)
Writes a message to the Logger using the selected AssertLogger.Loglevel |
AssertLogger.Loglevel |
message(String message,
Throwable e)
Writes a message and a given Throwable to the Logger using the selected AssertLogger.Loglevel |
AssertLogger.Loglevel |
message(Throwable e)
Writes the stacktracke of a given Throwable to the Logger using the selected AssertLogger.Loglevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AssertLogger.LoglevelImpl(AssertLogger.LoglevelImpl.LoglevelSupport loglevelSupport)
lomessage - AssertLogger.Loglevel| Method Detail |
|---|
public AssertLogger.Loglevel message(String message)
AssertLogger.LoglevelLogger using the selected AssertLogger.Loglevel
message in interface AssertLogger.LoglevelAssertLogger.Loglevel
public AssertLogger.Loglevel message(String message,
Throwable e)
AssertLogger.LoglevelThrowable to the Logger using the selected AssertLogger.Loglevel
message in interface AssertLogger.Loglevele - Throwable
AssertLogger.Loglevelpublic AssertLogger.Loglevel message(Throwable e)
AssertLogger.LoglevelThrowable to the Logger using the selected AssertLogger.Loglevel
message in interface AssertLogger.Loglevele - Throwable
AssertLogger.Loglevelpublic AssertLogger.Loglevel message(AssertLogger.MessageFactory messageFactory)
AssertLogger.LoglevelLogger using the selected AssertLogger.Loglevel AssertLogger.MessageFactory.message() method is only invoked if the respective AssertLogger.Loglevel is set to true within the
logging configuration.
message in interface AssertLogger.LoglevelmessageFactory - AssertLogger.MessageFactory
AssertLogger.Loglevel
public AssertLogger.Loglevel message(AssertLogger.MessageFactory messageFactory,
Throwable e)
AssertLogger.LoglevelThrowable to the Logger using the selected AssertLogger.Loglevel.AssertLogger.MessageFactory.message() method is only invoked if the respective AssertLogger.Loglevel is set to true within the
logging configuration.
message in interface AssertLogger.LoglevelmessageFactory - AssertLogger.MessageFactorye - Throwable
AssertLogger.Loglevelpublic boolean isTrue(boolean expression)
AssertLogger.LoglevelAssert
isTrue in interface AssertLogger.LoglevelAssertAssert.isTrue(boolean),
AssertLogger.LoglevelAssert
public boolean isTrue(boolean expression,
String message)
AssertLogger.LoglevelAssert
isTrue in interface AssertLogger.LoglevelAssertAssert.isTrue(boolean, String),
AssertLogger.LoglevelAssertpublic boolean isFalse(boolean expression)
AssertLogger.LoglevelAssert
isFalse in interface AssertLogger.LoglevelAssertAssert.isFalse(boolean),
AssertLogger.LoglevelAssert
public boolean isFalse(boolean expression,
String message)
AssertLogger.LoglevelAssert
isFalse in interface AssertLogger.LoglevelAssertAssert.isFalse(boolean, String),
AssertLogger.LoglevelAssert
public boolean areEqual(Object object1,
Object object2)
AssertLogger.LoglevelAssertObjects are equal
areEqual in interface AssertLogger.LoglevelAssertAssert.areEqual(Object, Object),
AssertLogger.LoglevelAssert
public boolean areEqual(Object object1,
Object object2,
String message)
AssertLogger.LoglevelAssertObjects are equal
areEqual in interface AssertLogger.LoglevelAssertAssert.areEqual(Object, Object, String),
AssertLogger.LoglevelAssertpublic boolean isNotEmpty(Collection<?> collection)
AssertLogger.LoglevelAssertCollections is not null and not empty.
isNotEmpty in interface AssertLogger.LoglevelAssertAssert.isNotEmpty(Collection),
AssertLogger.LoglevelAssert
public boolean isNotEmpty(Collection<?> collection,
String message)
AssertLogger.LoglevelAssertCollections is not null and not empty.
isNotEmpty in interface AssertLogger.LoglevelAssertAssert.isNotEmpty(Collection, String),
AssertLogger.LoglevelAssertpublic boolean isNotNull(Object object)
AssertLogger.LoglevelAssertObject is not null.
isNotNull in interface AssertLogger.LoglevelAssertAssert.isNotNull(Object),
AssertLogger.LoglevelAssert
public boolean isNotNull(Object object,
Object... objects)
AssertLogger.LoglevelAssertObjects are not null.
isNotNull in interface AssertLogger.LoglevelAssertAssert.isNotNull(Object, Object...),
AssertLogger.LoglevelAssert
public boolean isNotNull(Object object,
String message)
AssertLogger.LoglevelAssertObjects are not null.
isNotNull in interface AssertLogger.LoglevelAssertAssert.isNotNull(Object, String),
AssertLogger.LoglevelAssert
public boolean isNotNull(String message,
Object object,
Object... objects)
AssertLogger.LoglevelAssertObjects are not null.
isNotNull in interface AssertLogger.LoglevelAssertAssert.isNotNull(String, Object, Object, Object...),
AssertLogger.LoglevelAssertpublic void fails()
fails in interface AssertLogger.LoglevelAssertAssert.fails(),
AssertLogger.LoglevelAssertpublic void fails(Exception cause)
fails in interface AssertLogger.LoglevelAssertAssert.fails(Exception),
AssertLogger.LoglevelAssertpublic void fails(String message)
fails in interface AssertLogger.LoglevelAssertAssert.fails(),
AssertLogger.LoglevelAssert
public void fails(String message,
Exception cause)
fails in interface AssertLogger.LoglevelAssertAssert.fails(),
AssertLogger.LoglevelAssert
public boolean isInterimTimeLowerThan(int durationLimit,
TimeUnit timeUnit,
DurationCapture durationCapture,
Object[] intervalKeys)
AssertLogger.LoglevelAssertDurationCapture.getInterimTime(TimeUnit) is lower than the given duration limit.
isInterimTimeLowerThan in interface AssertLogger.LoglevelAsserttimeUnit - TimeUnitdurationCapture - DurationCapture
Assert.isInterimTimeLowerThan(int, TimeUnit, DurationCapture, Object[]),
AssertLogger.LoglevelAssertpublic AssertLogger.LoglevelAssert assertThat()
AssertLogger.LoglevelAssertLogger.LoglevelAssert instance
assertThat in interface AssertLogger.Loglevel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||