public class LogDataFormatterTest extends AbstractLogDataFormatterTest
| Modifier and Type | Field and Description |
|---|---|
protected String |
formattedDate |
protected static String |
INFORMATIONAL_MESS_PART |
protected com.ebmwebsourcing.easycommons.time.SimulatedTime |
time |
protected long |
utcTime |
| Constructor and Description |
|---|
LogDataFormatterTest() |
createTestLogDataprotected static final String INFORMATIONAL_MESS_PART
protected com.ebmwebsourcing.easycommons.time.SimulatedTime time
protected long utcTime
protected String formattedDate
public void initSimulatedTime()
public final void testNoLogDataAppenderPresentByDefault()
public final void testAddDataAppender()
public final void testFormatMessageWithoutLogData()
throws Exception
Exceptionpublic final void testFormatMessageWithLogData()
throws Exception
Exceptionpublic final void testFormattingWithoutExceptionNoRecordParam()
throws Exception
Exceptionpublic final void testFormattingWithExceptionNoRecordParam()
throws Exception
Exceptionpublic final void testFormattingWithExceptionChainNoRecordParam()
throws Exception
Exceptionpublic final void testFormattingWithoutExceptionUnhandledRecordParam()
throws Exception
Exceptionpublic final void testFormattingWithoutExceptionLogDataAsRecordParam()
throws Exception
Exceptionpublic final void testFormattingWithoutExceptionEmptyLogDataAsRecordParam()
throws Exception
Exceptionpublic final void testFormattingWithoutExceptionLogDataAsRecordParamButNoAppender()
throws Exception
Exceptionpublic final void testFormattingWithExceptionLogDataAsRecordParam()
throws Exception
Exceptionpublic final void testFormatMessageWithNullAsParametersValue()
throws Exception
Exceptionpublic final void testFormatMessageWithNullAsFirstValueInParameters()
throws Exception
Exceptionpublic void testFormatMessageWithPrefix()
protected void testFormatting(com.ebmwebsourcing.easycommons.logger.LogDataFormatter formatterUnderTest,
Object[] logDataParameters,
Throwable thrown,
String expectedPrefix,
String expectedExtraParametersMessPart)
Copyright © 2010-2018 Linagora. All Rights Reserved.