Uses of Class
nl.pim16aap2.testing.assertions.LogEventsAssert
Packages that use LogEventsAssert
Package
Description
This package contains a set of classes and utilities to add additional assertions to JUnit tests.
-
Uses of LogEventsAssert in nl.pim16aap2.testing.assertions
Subclasses with type arguments of type LogEventsAssert in nl.pim16aap2.testing.assertionsModifier and TypeClassDescriptionclassAn assertion class for a list ofLogEvents.Methods in nl.pim16aap2.testing.assertions that return LogEventsAssertModifier and TypeMethodDescriptionLogEventsAssert.anyWithoutThrowable()Verifies that at least one log event has a throwable associated with it.LogEventsAssert.anyWithThrowable()Verifies that at least one log event has a throwable associated with it.LogCaptorAssert.atAllLevels()Gets all logs captured by theLogCaptor.LogCaptorAssert.atDebug()Gets all debug logs captured by theLogCaptor.LogCaptorAssert.atError()Gets all warning logs captured by theLogCaptor.LogCaptorAssert.atInfo()Gets all info logs captured by theLogCaptor.LogCaptorAssert.atTrace()Gets all trace logs captured by theLogCaptor.LogCaptorAssert.atWarn()Gets all warning logs captured by theLogCaptor.LogEventsAssert.filteredBy(Predicate<nl.altindag.log.model.LogEvent> predicate) Filters the log events by the given predicate.LogEventsAssert.filteredByHasThrowable()Filters the log events that have any throwable associated with them.LogEventsAssert.filteredByLoggerName(String loggerName) Filters the log events by the logger name.LogEventsAssert.filteredByMessage(BiPredicate<String, String> matcher, String expected, Object... args) Filters the log events that have a message matching the given matcher.LogEventsAssert.filteredByMessagesContaining(String expectedMessage, Object... args) Filters the log events that have a message containing the expected message.LogEventsAssert.filteredByMessagesEndingWith(String expectedMessage, Object... args) Filters the log events that have a message that ends with the expected message.LogEventsAssert.filteredByMessagesExactly(String expectedMessage, Object... args) Filters the log events that have a message that exactly matches the expected message.LogEventsAssert.filteredByMessagesMatching(String regex) Filters the log events that have a message matching the given regular expression.LogEventsAssert.filteredByMessagesStartingWith(String expectedMessage, Object... args) Filters the log events that have a message that exactly matches the expected message.LogEventsAssert.filteredByThrowableExactlyOfType(Class<? extends Throwable> throwableType) Filters the log events that have a throwable that is exactly of the given type associated with them.LogEventsAssert.filteredByThrowableOfType(Class<? extends Throwable> throwableType) Filters the log events by the given throwable type.LogEventsAssert.filteredByWithoutThrowable()Filters the log events that do not have any throwable associated with them.LogEventsAssert.hasAnyFilteredBy(Predicate<nl.altindag.log.model.LogEvent> predicate) Verifies that at least one log event matches the given predicate.LogEventsAssert.hasAnyWithMessage(BiPredicate<String, String> matcher, String expected, Object... args) Verifies that at least one log event has a message that matches the given matcher.LogEventsAssert.hasAnyWithMessageContaining(String expectedMessage, Object... args) Verifies that at least one log event has a message that contains the expected message.LogEventsAssert.hasAnyWithMessageEndingWith(String expectedMessage, Object... args) Verifies that at least one log event has a message that ends with the expected message.LogEventsAssert.hasAnyWithMessageExactly(String expectedMessage, Object... args) Verifies that at least one log event has a message that exactly matches the expected message.LogEventsAssert.hasAnyWithMessageMatching(String regex) Verifies that at least one log event has a message that matches the given regular expression.LogEventsAssert.hasAnyWithMessageStartingWith(String expectedMessage, Object... args) Verifies that at least one log event has a message that starts with the expected message.LogEventsAssert.hasAnyWithThrowableExactlyOfType(Class<? extends Throwable> throwableType) Verifies that at least one log event has a throwable that is of the given type.LogEventsAssert.hasAnyWithThrowableOfType(Class<? extends Throwable> throwableType) Verifies that at least one log event has a throwable of the given type associated with it.LogEventsAssert.isNotEmpty()protected LogEventsAssertLogEventsAssert.newAbstractIterableAssert(Iterable<? extends nl.altindag.log.model.LogEvent> iterable)