A B C D E F G H I J L M P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addArgument(Object) - Method in class com.github.valfirst.slf4jtest.TestLoggingEventBuilder
- addArgument(Supplier<?>) - Method in class com.github.valfirst.slf4jtest.TestLoggingEventBuilder
- addKeyValue(String, Object) - Method in class com.github.valfirst.slf4jtest.TestLoggingEventBuilder
- addKeyValue(String, Supplier<Object>) - Method in class com.github.valfirst.slf4jtest.TestLoggingEventBuilder
- addMarker(Marker) - Method in class com.github.valfirst.slf4jtest.TestLoggingEventBuilder
- allValues() - Method in class uk.org.lidalia.lang.ThreadLocal
- aLog() - Static method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
- anyThread() - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Changes the assertion mode to verify that log messages have been logged regardless of which thread actually logged the message.
- apply(Statement, Description) - Method in class com.github.valfirst.slf4jtest.TestLoggerFactoryResetRule
- Assertions - Class in com.github.valfirst.slf4jtest
- assertThat(TestLogger) - Static method in class com.github.valfirst.slf4jtest.Assertions
B
- BEFORE_EACH - com.github.valfirst.slf4jtest.CleanupStage
- BEFORE_TEST_EXECUTION - com.github.valfirst.slf4jtest.CleanupStage
- beforeAll(ExtensionContext) - Method in class com.github.valfirst.slf4jtest.JulConfigExtension
- beforeEach(ExtensionContext) - Method in class com.github.valfirst.slf4jtest.TestLoggerFactoryExtension
- beforeTestExecution(ExtensionContext) - Method in class com.github.valfirst.slf4jtest.TestLoggerFactoryExtension
- build() - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
C
- cleanupStage() - Method in annotation type com.github.valfirst.slf4jtest.TestLoggerFactorySettings
-
Configure when
TestLoggerFactory
is cleaned up - CleanupStage - Enum in com.github.valfirst.slf4jtest
- clear() - Method in class com.github.valfirst.slf4jtest.TestLogger
-
Removes all
LoggingEvent
s logged by this thread and resets the enabled levels of the logger to all levels for this thread. - clear() - Static method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- clear() - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
- clearAll() - Method in class com.github.valfirst.slf4jtest.TestLogger
-
Removes ALL
LoggingEvent
s logged on this logger, regardless of thread, and resets the enabled levels of the logger to all levels for ALL threads. - clearAll() - Static method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- clearAllLoggers() - Method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- clearLoggers() - Method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- com.github.valfirst.slf4jtest - package com.github.valfirst.slf4jtest
- compare(Map<String, String>, Map<String, String>) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.MdcComparator
- CONTAINING - Static variable in class com.github.valfirst.slf4jtest.TestLoggerAssert.MdcComparator
-
Validates the MDC contains all specified entries, but will not fail if additional entries exist.
D
- debug(String) - Method in class com.github.valfirst.slf4jtest.TestLogger
- debug(String, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- debug(String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- debug(String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLogger
- debug(String, Object, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- debug(String, Throwable) - Method in class com.github.valfirst.slf4jtest.TestLogger
- debug(Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- debug(Map<String, String>, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- debug(Map<String, String>, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- debug(Map<String, String>, Marker, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- debug(Map<String, String>, Marker, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- debug(Marker, String) - Method in class com.github.valfirst.slf4jtest.TestLogger
- debug(Marker, String, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- debug(Marker, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- debug(Marker, String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLogger
- debug(Marker, String, Object, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- debug(Marker, String, Throwable) - Method in class com.github.valfirst.slf4jtest.TestLogger
- debug(Marker, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
E
- equals(Object) - Method in class com.github.valfirst.slf4jtest.LevelAssert
- equals(Object) - Method in class com.github.valfirst.slf4jtest.LoggingEvent
- equals(Object) - Method in class com.github.valfirst.slf4jtest.TestLoggingEventBuilder.TestKeyValuePair
- error(String) - Method in class com.github.valfirst.slf4jtest.TestLogger
- error(String, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- error(String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- error(String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLogger
- error(String, Object, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- error(String, Throwable) - Method in class com.github.valfirst.slf4jtest.TestLogger
- error(Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- error(Map<String, String>, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- error(Map<String, String>, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- error(Map<String, String>, Marker, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- error(Map<String, String>, Marker, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- error(Marker, String) - Method in class com.github.valfirst.slf4jtest.TestLogger
- error(Marker, String, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- error(Marker, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- error(Marker, String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLogger
- error(Marker, String, Object, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- error(Marker, String, Throwable) - Method in class com.github.valfirst.slf4jtest.TestLogger
- error(Marker, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- EXACT - Static variable in class com.github.valfirst.slf4jtest.TestLoggerAssert.MdcComparator
-
Validates the contents of the MDC on the logging event exactly match the specified values.
F
- fromSlf4jEvent(LoggingEvent) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
-
Create a
LoggingEvent
from an SLF4JLoggingEvent
. - fromSlf4jEvent(LoggingEvent, Map<String, String>) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
-
Create a
LoggingEvent
with an MDC from an SLF4JLoggingEvent
.
G
- get() - Method in class uk.org.lidalia.lang.ThreadLocal
- get(String) - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
- getAllLoggers() - Method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getAllLoggingEvents() - Method in class com.github.valfirst.slf4jtest.TestLogger
-
Get all
LoggingEvent
s logged on this logger by ANY thread. - getAllLoggingEvents() - Static method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getAllLoggingEventsFromLoggers() - Method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getAllowNullValues() - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
-
Whether null values are allowed in the MDC.
- getAllTestLoggers() - Static method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getArguments() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
-
Get the arguments to the event.
- getCaptureLevel() - Method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getCopyOfContextMap() - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
-
Return a copy of the current thread's context map.
- getCreatingLogger() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
- getEnable() - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
-
Whether the MDC functionality is enabled.
- getEnabledLevels() - Method in class com.github.valfirst.slf4jtest.TestLogger
-
Get the levels enabled for this logger on this thread.
- getFormattedMessage() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
- getInherit() - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
-
Whether child threads inherit a copy of the MDC from its parent thread.
- getInstance() - Static method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getInstance() - Static method in class com.github.valfirst.slf4jtest.TestMDCAdapter
-
Access the current MDC adapter.
- getKeyValuePairs() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
-
Get the key/value pairs of the event.
- getLevel() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
- getLogger(Class<?>) - Method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getLogger(String) - Method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getLoggerFactory() - Method in class com.github.valfirst.slf4jtest.TestSLF4JServiceProvider
- getLoggingEvents() - Method in class com.github.valfirst.slf4jtest.TestLogger
-
Get all
LoggingEvent
s logged on this logger by this thread. - getLoggingEvents() - Static method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getLoggingEventsFromLoggers() - Method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getMarker() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
-
Deprecated.As events created using the SLF4J fluent API can contain multiple markers, this method is deprecated in favor of
LoggingEvent.getMarkers()
. - getMarkerFactory() - Method in class com.github.valfirst.slf4jtest.TestSLF4JServiceProvider
- getMarkers() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
-
Get the markers of the event.
- getMdc() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
-
Get the MDC of the event.
- getMDCAdapter() - Method in class com.github.valfirst.slf4jtest.TestSLF4JServiceProvider
- getMessage() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
- getName() - Method in class com.github.valfirst.slf4jtest.TestLogger
- getPrintLevel() - Method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getRequestedApiVersion() - Method in class com.github.valfirst.slf4jtest.TestSLF4JServiceProvider
- getReturnNullCopyWhenMdcNotSet() - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
-
Whether
TestMDCAdapter.getCopyOfContextMap()
returnsnull
when no values have been set. - getTestLogger(Class<?>) - Static method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getTestLogger(String) - Static method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- getThreadContextClassLoader() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
- getThreadName() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
- getThrowable() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
- getTimestamp() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
H
- hashCode() - Method in class com.github.valfirst.slf4jtest.LevelAssert
- hashCode() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
- hashCode() - Method in class com.github.valfirst.slf4jtest.TestLoggingEventBuilder.TestKeyValuePair
- hasLevel(Level) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Convenience method for a
LevelAssert
from a provided test logger. - hasLogged(LoggingEvent) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Verify that a
LoggingEvent
has been logged by the test logger. - hasLogged(TestLoggerAssert.PredicateBuilder) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Uses the supplied
TestLoggerAssert.PredicateBuilder
to construct the predicate with which to Verify that a matchingLoggingEvent
has been logged by the test logger. - hasLogged(Throwable, Level, String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Verify that a log message, at a specific level, has been logged by the test logger in the presence of a
Throwable
. - hasLogged(Predicate<LoggingEvent>) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Verify that a
LoggingEvent
satisfying the provided predicate has been logged by the test logger. - hasLogged(Level, String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Verify that a log message, at a specific level, has been logged by the test logger.
- hasMessageContaining(String) - Method in class com.github.valfirst.slf4jtest.LevelAssert
-
Assert that the given log level includes a log message that contains a substring.
- hasMessageMatching(String) - Method in class com.github.valfirst.slf4jtest.LevelAssert
-
Assert that the given log level includes a log message that matches a regex.
- hasNotLogged(LoggingEvent) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Verify that a
LoggingEvent
has not been logged by the test logger. - hasNotLogged(TestLoggerAssert.PredicateBuilder) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Uses the supplied
TestLoggerAssert.PredicateBuilder
to construct the predicate with which to Verify that a matchingLoggingEvent
has _not_ been logged by the test logger. - hasNotLogged(Throwable, Level, String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Verify that a log message, at a specific level, has not been logged by the test logger in the presence of a
Throwable
. - hasNotLogged(Predicate<LoggingEvent>) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Verify that a
LoggingEvent
satisfying the provided predicate has _not_ been logged by the test logger. - hasNotLogged(Level, String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Verify that a log message, at a specific level, has not been logged by the test logger.
- hasNumberOfLogs(int) - Method in class com.github.valfirst.slf4jtest.LevelAssert
-
Assert that the given log level has the expected number of logs, regardless of content.
I
- IGNORING - Static variable in class com.github.valfirst.slf4jtest.TestLoggerAssert.MdcComparator
-
Disables verification of the MDC contents.
- info(String) - Method in class com.github.valfirst.slf4jtest.TestLogger
- info(String, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- info(String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- info(String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLogger
- info(String, Object, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- info(String, Throwable) - Method in class com.github.valfirst.slf4jtest.TestLogger
- info(Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- info(Map<String, String>, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- info(Map<String, String>, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- info(Map<String, String>, Marker, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- info(Map<String, String>, Marker, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- info(Marker, String) - Method in class com.github.valfirst.slf4jtest.TestLogger
- info(Marker, String, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- info(Marker, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- info(Marker, String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLogger
- info(Marker, String, Object, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- info(Marker, String, Throwable) - Method in class com.github.valfirst.slf4jtest.TestLogger
- info(Marker, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- initialize() - Method in class com.github.valfirst.slf4jtest.TestSLF4JServiceProvider
- isDebugEnabled() - Method in class com.github.valfirst.slf4jtest.TestLogger
- isDebugEnabled(Marker) - Method in class com.github.valfirst.slf4jtest.TestLogger
- isErrorEnabled() - Method in class com.github.valfirst.slf4jtest.TestLogger
- isErrorEnabled(Marker) - Method in class com.github.valfirst.slf4jtest.TestLogger
- isInfoEnabled() - Method in class com.github.valfirst.slf4jtest.TestLogger
- isInfoEnabled(Marker) - Method in class com.github.valfirst.slf4jtest.TestLogger
- isTraceEnabled() - Method in class com.github.valfirst.slf4jtest.TestLogger
- isTraceEnabled(Marker) - Method in class com.github.valfirst.slf4jtest.TestLogger
- isWarnEnabled() - Method in class com.github.valfirst.slf4jtest.TestLogger
- isWarnEnabled(Marker) - Method in class com.github.valfirst.slf4jtest.TestLogger
J
- JulConfig - Class in com.github.valfirst.slf4jtest
-
Configuration to redirect log messages from
java.util.logging
to SLF4J. - JulConfigExtension - Class in com.github.valfirst.slf4jtest
-
JUnit 5 extension that calls
setup()
. - JulConfigExtension() - Constructor for class com.github.valfirst.slf4jtest.JulConfigExtension
L
- LevelAssert - Class in com.github.valfirst.slf4jtest
-
A set of assertions to validate that logs have been logged to a
TestLogger
, for a specific log level. - LevelAssert(TestLogger, Level) - Constructor for class com.github.valfirst.slf4jtest.LevelAssert
- log(LoggingEvent) - Method in class com.github.valfirst.slf4jtest.TestLogger
- LoggingEvent - Class in com.github.valfirst.slf4jtest
-
Representation of a call to a logger for test assertion purposes.
- LoggingEvent(Level, String, Object...) - Constructor for class com.github.valfirst.slf4jtest.LoggingEvent
- LoggingEvent(Level, Throwable, String, Object...) - Constructor for class com.github.valfirst.slf4jtest.LoggingEvent
- LoggingEvent(Level, Map<String, String>, String, Object...) - Constructor for class com.github.valfirst.slf4jtest.LoggingEvent
- LoggingEvent(Level, Map<String, String>, Throwable, String, Object...) - Constructor for class com.github.valfirst.slf4jtest.LoggingEvent
- LoggingEvent(Level, Map<String, String>, Marker, String, Object...) - Constructor for class com.github.valfirst.slf4jtest.LoggingEvent
- LoggingEvent(Level, Map<String, String>, Marker, Throwable, String, Object...) - Constructor for class com.github.valfirst.slf4jtest.LoggingEvent
- LoggingEvent(Level, Marker, String, Object...) - Constructor for class com.github.valfirst.slf4jtest.LoggingEvent
- LoggingEvent(Level, Marker, Throwable, String, Object...) - Constructor for class com.github.valfirst.slf4jtest.LoggingEvent
M
- makeLoggingEventBuilder(Level) - Method in class com.github.valfirst.slf4jtest.TestLogger
-
Make a
TestLoggingEventBuilder
.
P
- PredicateBuilder() - Constructor for class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
- put(String, String) - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
R
- remove() - Method in class uk.org.lidalia.lang.ThreadLocal
-
Removes the value for the calling
Thread
. - remove(String) - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
- REQUESTED_API_VERSION - Static variable in class com.github.valfirst.slf4jtest.TestSLF4JServiceProvider
- reset() - Method in class uk.org.lidalia.lang.ThreadLocal
-
Removes the values for ALL
Thread
s. - restoreOptions() - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
-
Reset the options to values defined by the static configuration.
S
- set(T) - Method in class uk.org.lidalia.lang.ThreadLocal
- setAllowNullValues(boolean) - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
-
Define whether null values are allowed in the MDC.
- setCaptureLevel(Level) - Method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- setCause(Throwable) - Method in class com.github.valfirst.slf4jtest.TestLoggingEventBuilder
- setContextMap(Map<String, String>) - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
- setEnable(boolean) - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
-
Enable the MDC functionality for all threads.
- setEnabledLevels(Collection<Level>) - Method in class com.github.valfirst.slf4jtest.TestLogger
-
The conventional hierarchical notion of Levels, where info being enabled implies warn and error being enabled, is not a requirement of the SLF4J API, so all levels you wish to enable must be passed explicitly to this method.
- setEnabledLevels(Level...) - Method in class com.github.valfirst.slf4jtest.TestLogger
-
The conventional hierarchical notion of Levels, where info being enabled implies warn and error being enabled, is not a requirement of the SLF4J API, so all levels you wish to enable must be passed explicitly to this method.
- setEnabledLevelsForAllThreads(Collection<Level>) - Method in class com.github.valfirst.slf4jtest.TestLogger
-
The conventional hierarchical notion of Levels, where info being enabled implies warn and error being enabled, is not a requirement of the SLF4J API, so all levels you wish to enable must be passed explicitly to this method.
- setEnabledLevelsForAllThreads(Level...) - Method in class com.github.valfirst.slf4jtest.TestLogger
-
The conventional hierarchical notion of Levels, where info being enabled implies warn and error being enabled, is not a requirement of the SLF4J API, so all levels you wish to enable must be passed explicitly to this method.
- setInherit(boolean) - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
-
Define whether child threads inherit a copy of the MDC from its parent thread.
- setMessage(String) - Method in class com.github.valfirst.slf4jtest.TestLoggingEventBuilder
- setMessage(Supplier<String>) - Method in class com.github.valfirst.slf4jtest.TestLoggingEventBuilder
- setPrintLevel(Level) - Method in class com.github.valfirst.slf4jtest.TestLoggerFactory
- setReturnNullCopyWhenMdcNotSet(boolean) - Method in class com.github.valfirst.slf4jtest.TestMDCAdapter
-
Define whether
TestMDCAdapter.getCopyOfContextMap()
returnsnull
when no values have been set. - setup() - Static method in class com.github.valfirst.slf4jtest.JulConfig
-
Redirect all logging from
java.util.logging
to SLF4J.
T
- TestKeyValuePair(String, Object) - Constructor for class com.github.valfirst.slf4jtest.TestLoggingEventBuilder.TestKeyValuePair
- TestLogger - Class in com.github.valfirst.slf4jtest
-
Implementation of
Logger
which storesLoggingEvent
s in memory and provides methods to access and remove them in order to facilitate writing tests that assert particular logging calls were made. - TestLoggerAssert - Class in com.github.valfirst.slf4jtest
-
A set of assertions to validate that logs have been logged to a
TestLogger
. - TestLoggerAssert(TestLogger) - Constructor for class com.github.valfirst.slf4jtest.TestLoggerAssert
- TestLoggerAssert.MdcComparator - Class in com.github.valfirst.slf4jtest
- TestLoggerAssert.PredicateBuilder - Class in com.github.valfirst.slf4jtest
- TestLoggerFactory - Class in com.github.valfirst.slf4jtest
- TestLoggerFactory() - Constructor for class com.github.valfirst.slf4jtest.TestLoggerFactory
- TestLoggerFactory(Level) - Constructor for class com.github.valfirst.slf4jtest.TestLoggerFactory
- TestLoggerFactory(Level, Level) - Constructor for class com.github.valfirst.slf4jtest.TestLoggerFactory
- TestLoggerFactoryExtension - Class in com.github.valfirst.slf4jtest
- TestLoggerFactoryExtension() - Constructor for class com.github.valfirst.slf4jtest.TestLoggerFactoryExtension
- TestLoggerFactoryExtension(CleanupStage) - Constructor for class com.github.valfirst.slf4jtest.TestLoggerFactoryExtension
- TestLoggerFactoryResetRule - Class in com.github.valfirst.slf4jtest
-
A JUnit rule that clears the ThreadLocal state of all the TestLoggers and the TestLoggerFactory.
- TestLoggerFactoryResetRule() - Constructor for class com.github.valfirst.slf4jtest.TestLoggerFactoryResetRule
- TestLoggerFactorySettings - Annotation Type in com.github.valfirst.slf4jtest
-
Annotation that can configure TestLoggerFactory as invoked by the
TestLoggerFactoryExtension
. - TestLoggingEventBuilder - Class in com.github.valfirst.slf4jtest
-
A
LoggingEventBuilder
which changes the following compared toDefaultLoggingEventBuilder
: TheTestLoggingEventBuilder.toLoggingEvent()
method is added to build the event without logging it. - TestLoggingEventBuilder(Logger, Level) - Constructor for class com.github.valfirst.slf4jtest.TestLoggingEventBuilder
- TestLoggingEventBuilder.TestKeyValuePair - Class in com.github.valfirst.slf4jtest
-
Extension of
KeyValuePair
with overriddenObject.equals(java.lang.Object)
andObject.hashCode()
methods. - TestMDCAdapter - Class in com.github.valfirst.slf4jtest
- TestMDCAdapter() - Constructor for class com.github.valfirst.slf4jtest.TestMDCAdapter
- TestSLF4JServiceProvider - Class in com.github.valfirst.slf4jtest
- TestSLF4JServiceProvider() - Constructor for class com.github.valfirst.slf4jtest.TestSLF4JServiceProvider
- ThreadLocal<T> - Class in uk.org.lidalia.lang
-
This class was written by Robert Elliot and is originally located at https://github.com/Mahoney/lidalia-lang
- ThreadLocal(Supplier<T>) - Constructor for class uk.org.lidalia.lang.ThreadLocal
- ThreadLocal(T) - Constructor for class uk.org.lidalia.lang.ThreadLocal
- toLoggingEvent() - Method in class com.github.valfirst.slf4jtest.TestLoggingEventBuilder
-
Build the event, without logging it.
- toString() - Method in class com.github.valfirst.slf4jtest.LoggingEvent
- trace(String) - Method in class com.github.valfirst.slf4jtest.TestLogger
- trace(String, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- trace(String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- trace(String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLogger
- trace(String, Object, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- trace(String, Throwable) - Method in class com.github.valfirst.slf4jtest.TestLogger
- trace(Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- trace(Map<String, String>, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- trace(Map<String, String>, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- trace(Map<String, String>, Marker, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- trace(Map<String, String>, Marker, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- trace(Marker, String) - Method in class com.github.valfirst.slf4jtest.TestLogger
- trace(Marker, String, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- trace(Marker, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- trace(Marker, String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLogger
- trace(Marker, String, Object, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- trace(Marker, String, Throwable) - Method in class com.github.valfirst.slf4jtest.TestLogger
- trace(Marker, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
U
- uk.org.lidalia.lang - package uk.org.lidalia.lang
- usingMdcComparator(TestLoggerAssert.MdcComparator) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert
-
Allows the comparison strategy for verifying the MDC contents to be configured.
V
- valueOf(String) - Static method in enum com.github.valfirst.slf4jtest.CleanupStage
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.github.valfirst.slf4jtest.CleanupStage
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- warn(String) - Method in class com.github.valfirst.slf4jtest.TestLogger
- warn(String, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- warn(String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- warn(String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLogger
- warn(String, Object, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- warn(String, Throwable) - Method in class com.github.valfirst.slf4jtest.TestLogger
- warn(Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- warn(Map<String, String>, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- warn(Map<String, String>, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- warn(Map<String, String>, Marker, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- warn(Map<String, String>, Marker, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- warn(Marker, String) - Method in class com.github.valfirst.slf4jtest.TestLogger
- warn(Marker, String, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- warn(Marker, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- warn(Marker, String, Object...) - Method in class com.github.valfirst.slf4jtest.TestLogger
- warn(Marker, String, Object, Object) - Method in class com.github.valfirst.slf4jtest.TestLogger
- warn(Marker, String, Throwable) - Method in class com.github.valfirst.slf4jtest.TestLogger
- warn(Marker, Throwable, String, Object...) - Static method in class com.github.valfirst.slf4jtest.LoggingEvent
- withArguments(Object...) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
- withArguments(Predicate<Collection<Object>>) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
- withKeyValuePairs(KeyValuePair...) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
- withLevel(Level) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
- withMarker(Marker) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
-
Deprecated.There can be more than one marker in a logging event. Use
TestLoggerAssert.PredicateBuilder.withMarkers(org.slf4j.Marker...)
instead. - withMarkers(Marker...) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
- withMdc(Map<String, String>, TestLoggerAssert.MdcComparator) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
- withMessage(String) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
- withMessage(Predicate<String>) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
- withThrowable(Throwable) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
- withThrowable(Predicate<Optional<Throwable>>) - Method in class com.github.valfirst.slf4jtest.TestLoggerAssert.PredicateBuilder
All Classes All Packages