public class NewDemoTest extends Object
NewDemo| Modifier and Type | Field and Description |
|---|---|
private NewDemo |
classUnderTest |
private static String |
EVENT_SOURCE |
private static String |
EXCEPTION |
private long |
testEndedTime |
private long |
testStartedTime |
| Constructor and Description |
|---|
NewDemoTest() |
| Modifier and Type | Method and Description |
|---|---|
private void |
expectEventException(Level level,
Advapi32Util.EventLogType eventLogType,
int eventLogCategory) |
private void |
expectEventNoException(Level level,
Advapi32Util.EventLogType eventLogType,
int eventLogCategory) |
void |
setUp() |
void |
testDebug()
Test case for
NewDemo.debug(). |
void |
testError()
Test case for
NewDemo.error(). |
void |
testErrorWithException()
Test case for
NewDemo.errorWithException(). |
void |
testFatal()
Test case for
NewDemo.fatal(). |
void |
testFatalWithException()
Test case for
NewDemo.fatalWithException(). |
void |
testInfo()
Test case for
NewDemo.info(). |
void |
testTrace()
Test case for
NewDemo.trace(). |
void |
testWarn()
Test case for
NewDemo.warn(). |
void |
testWarnWithException()
Test case for
NewDemo.warnWithException(). |
private static final String EVENT_SOURCE
private static final String EXCEPTION
private NewDemo classUnderTest
private long testStartedTime
private long testEndedTime
public void testTrace()
NewDemo.trace().public void testDebug()
NewDemo.debug().public void testInfo()
NewDemo.info().public void testWarn()
NewDemo.warn().public void testError()
NewDemo.error().public void testFatal()
NewDemo.fatal().public void testWarnWithException()
NewDemo.warnWithException().public void testErrorWithException()
NewDemo.errorWithException().public void testFatalWithException()
NewDemo.fatalWithException().private void expectEventNoException(Level level, Advapi32Util.EventLogType eventLogType, int eventLogCategory)
level - eventLogType - eventLogCategory - private void expectEventException(Level level, Advapi32Util.EventLogType eventLogType, int eventLogCategory)
level - eventLogType - eventLogCategory - Copyright © 2022 The Log4JNA Team. All rights reserved.