org.omnaest.utils.assertion
Interface AssertLogger.DirectAssert

All Superinterfaces:
Serializable
All Known Subinterfaces:
AssertLogger.DirectAssertWithExpression
Enclosing class:
AssertLogger

public static interface AssertLogger.DirectAssert
extends Serializable

Provides assert methods

Author:
Omnaest

Method Summary
 AssertLogger.DirectAssertWithExpression areEqual(Object object1, Object object2)
          Returns true if the given Objects are equal
 AssertLogger.DirectAssertWithExpression fails()
           
 AssertLogger.DirectAssertWithExpression fails(Exception cause)
           
 AssertLogger.DirectAssertWithExpression isFalse(boolean expression)
          Returns true if the given expression is false
 AssertLogger.DirectAssertWithExpression isInterimTimeLowerThan(int durationLimit, TimeUnit timeUnit, DurationCapture durationCapture, Object[] intervalKeys)
          Returns true if the DurationCapture.getInterimTime(TimeUnit) is lower than the given duration limit.
 AssertLogger.DirectAssertWithExpression isNotEmpty(Collection<?> collection)
          Returns true if the given Collections is not null and not empty.
 AssertLogger.DirectAssertWithExpression isNotNull(Object object)
          Returns true if the given Object is not null.
 AssertLogger.DirectAssertWithExpression isNotNull(Object object, Object... objects)
          Returns true if all the given Objects are not null.
 AssertLogger.DirectAssertWithExpression isTrue(boolean expression)
          Returns true if the given expression is true
 

Method Detail

isInterimTimeLowerThan

AssertLogger.DirectAssertWithExpression isInterimTimeLowerThan(int durationLimit,
                                                               TimeUnit timeUnit,
                                                               DurationCapture durationCapture,
                                                               Object[] intervalKeys)
Returns true if the DurationCapture.getInterimTime(TimeUnit) is lower than the given duration limit.

Parameters:
durationLimit -
timeUnit - TimeUnit
durationCapture - DurationCapture
intervalKeys -
Returns:
See Also:
Assert.isInterimTimeLowerThan(int, TimeUnit, DurationCapture, Object[]), AssertLogger.LoglevelAssert

fails

AssertLogger.DirectAssertWithExpression fails(Exception cause)
Parameters:
cause -
See Also:
Assert.fails(Exception), AssertLogger.LoglevelAssert

fails

AssertLogger.DirectAssertWithExpression fails()
See Also:
Assert.fails(), AssertLogger.LoglevelAssert

isNotNull

AssertLogger.DirectAssertWithExpression isNotNull(Object object,
                                                  Object... objects)
Returns true if all the given Objects are not null.

Parameters:
object -
objects -
Returns:
See Also:
Assert.isNotNull(Object, Object...), AssertLogger.LoglevelAssert

isNotNull

AssertLogger.DirectAssertWithExpression isNotNull(Object object)
Returns true if the given Object is not null.

Parameters:
object -
Returns:
See Also:
Assert.isNotNull(Object), AssertLogger.LoglevelAssert

isNotEmpty

AssertLogger.DirectAssertWithExpression isNotEmpty(Collection<?> collection)
Returns true if the given Collections is not null and not empty.

Parameters:
collection -
Returns:
See Also:
Assert.isNotEmpty(Collection), AssertLogger.LoglevelAssert

areEqual

AssertLogger.DirectAssertWithExpression areEqual(Object object1,
                                                 Object object2)
Returns true if the given Objects are equal

Parameters:
object1 -
object2 -
Returns:
See Also:
Assert.areEqual(Object, Object), AssertLogger.LoglevelAssert

isFalse

AssertLogger.DirectAssertWithExpression isFalse(boolean expression)
Returns true if the given expression is false

Parameters:
expression -
Returns:
See Also:
Assert.isFalse(boolean), AssertLogger.LoglevelAssert

isTrue

AssertLogger.DirectAssertWithExpression isTrue(boolean expression)
Returns true if the given expression is true

Parameters:
expression -
Returns:
See Also:
Assert.isTrue(boolean), AssertLogger.LoglevelAssert


Copyright © 2013. All Rights Reserved.