File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
src/test/java/com/exasol/logging Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2+ <launchConfiguration type =" org.eclipse.jdt.junit.launchconfig" >
3+ <listAttribute key =" org.eclipse.debug.core.MAPPED_RESOURCE_PATHS" >
4+ <listEntry value =" /java-util-logging-testing" />
5+ </listAttribute >
6+ <listAttribute key =" org.eclipse.debug.core.MAPPED_RESOURCE_TYPES" >
7+ <listEntry value =" 4" />
8+ </listAttribute >
9+ <listAttribute key =" org.eclipse.debug.ui.favoriteGroups" >
10+ <listEntry value =" org.eclipse.debug.ui.launchGroup.debug" />
11+ <listEntry value =" org.eclipse.eclemma.ui.launchGroup.coverage" />
12+ <listEntry value =" org.eclipse.debug.ui.launchGroup.run" />
13+ </listAttribute >
14+ <listAttribute key =" org.eclipse.eclemma.core.SCOPE_IDS" >
15+ <listEntry value =" =java-util-logging-testing/src\/main\/java" />
16+ </listAttribute >
17+ <stringAttribute key =" org.eclipse.jdt.junit.CONTAINER" value =" =java-util-logging-testing" />
18+ <booleanAttribute key =" org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value =" false" />
19+ <stringAttribute key =" org.eclipse.jdt.junit.TESTNAME" value =" " />
20+ <stringAttribute key =" org.eclipse.jdt.junit.TEST_KIND" value =" org.eclipse.jdt.junit.loader.junit5" />
21+ <booleanAttribute key =" org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value =" false" />
22+ <booleanAttribute key =" org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value =" true" />
23+ <stringAttribute key =" org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value =" org.eclipse.m2e.launchconfig.classpathProvider" />
24+ <stringAttribute key =" org.eclipse.jdt.launching.MAIN_TYPE" value =" " />
25+ <stringAttribute key =" org.eclipse.jdt.launching.PROJECT_ATTR" value =" java-util-logging-testing" />
26+ <stringAttribute key =" org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value =" org.eclipse.m2e.launchconfig.sourcepathProvider" />
27+ <stringAttribute key =" org.eclipse.jdt.launching.VM_ARGUMENTS" value =" -ea" />
28+ </launchConfiguration >
Original file line number Diff line number Diff line change @@ -23,4 +23,15 @@ void testCapturingLogMessage() {
2323 Logger .getLogger ("com.exasol" ).info (messageToBeCaptured );
2424 assertThat (this .capturingLogHandler .getCapturedData (), equalTo (messageToBeCaptured ));
2525 }
26+
27+ @ Test
28+ void testReset () {
29+ final String messageToBeIngored = "Ignore this!" ;
30+ final String messageToBeCaptured = "Capture that!" ;
31+ final Logger logger = Logger .getLogger ("com.exasol" );
32+ logger .info (messageToBeIngored );
33+ this .capturingLogHandler .reset ();
34+ logger .info (messageToBeCaptured );
35+ assertThat (this .capturingLogHandler .getCapturedData (), equalTo (messageToBeCaptured ));
36+ }
2637}
You can’t perform that action at this time.
0 commit comments