Uses of Class
nl.pim16aap2.testing.assertions.LogEventAssert
Packages that use LogEventAssert
Package
Description
This package contains a set of classes and utilities to add additional assertions to JUnit tests.
-
Uses of LogEventAssert in nl.pim16aap2.testing.assertions
Subclasses with type arguments of type LogEventAssert in nl.pim16aap2.testing.assertionsModifier and TypeClassDescriptionclassRepresents an assertion class forLogEventinstances.classAn assertion class for a list ofLogEvents.Methods in nl.pim16aap2.testing.assertions that return LogEventAssertModifier and TypeMethodDescriptionLogEventsAssert.singleElement()LogEventsAssert.singleFilteredBy(Predicate<nl.altindag.log.model.LogEvent> predicate) Verifies that exactly one log event matches the given predicate.LogEventsAssert.singleWithMessage(BiPredicate<String, String> matcher, String expected, Object... args) Verifies that exactly one log event has a message that matches the given matcher.LogEventsAssert.singleWithMessageContaining(String expectedMessage, Object... args) Verifies that exactly one log event has a message that contains the expected message.LogEventsAssert.singleWithMessageEndingWith(String expectedMessage, Object... args) Verifies that exactly one log event has a message that ends with the expected message.LogEventsAssert.singleWithMessageExactly(String expectedMessage, Object... args) Verifies that exactly one log event has a message that exactly matches the expected message.LogEventsAssert.singleWithMessageMatching(String regex) Verifies that exactly one log event has a message that matches the given regular expression.LogEventsAssert.singleWithMessageStartingWith(String expectedMessage, Object... args) Verifies that exactly one log event has a message that starts with the expected message.LogEventsAssert.singleWithoutThrowable()Verifies that exactly one log event does not have a throwable associated with it.LogEventsAssert.singleWithThrowable()Verifies that exactly one log event has a throwable associated with it.LogEventsAssert.singleWithThrowableExactlyOfType(Class<? extends Throwable> throwableType) Verifies that exactly one log event has a throwable that is exactly of the given type.LogEventsAssert.singleWithThrowableOfType(Class<? extends Throwable> throwableType) Filters the log events that have exactly one throwable of the given type associated with them.protected LogEventAssert