Skip to content

Commit 296d40b

Browse files
authored
[JAVA-42524] Converted unit to integration test (#18307)
1 parent 23870c7 commit 296d40b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
import org.junit.runners.JUnit4;
1313

1414
@RunWith(JUnit4.class)
15-
public class MapAppenderIntegrationTest {
15+
public class MapAppenderUnitTest {
1616

1717
private Logger logger;
1818

1919
@Before
2020
public void setup() {
21-
logger = LogManager.getLogger(MapAppenderIntegrationTest.class);
21+
logger = LogManager.getLogger(MapAppenderUnitTest.class);
2222
}
2323

2424
@Test

logging-modules/log4j2/src/test/java/com/baeldung/logging/log4j2/simpleconfiguration/CustomConfigurationFactory.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,10 @@ static Configuration createConfiguration(final String name, ConfigurationBuilder
5353
file.addAttribute("fileName", "target/logging.log");
5454
file.add(layout);
5555
builder.add(file);
56-
AppenderComponentBuilder mapAppender = builder.newAppender("MapAppender", "MapAppender");
57-
builder.add(mapAppender);
5856
LoggerComponentBuilder logger = builder.newLogger("com", Level.DEBUG);
5957
logger.add(builder.newAppenderRef("Stdout"));
6058
logger.add(builder.newAppenderRef("rolling"));
6159
logger.add(builder.newAppenderRef("FileSystem"));
62-
logger.add(builder.newAppenderRef("MapAppender"));
6360
logger.addAttribute("additivity", false);
6461
builder.add(logger);
6562
RootLoggerComponentBuilder rootLogger = builder.newRootLogger(Level.ERROR);

0 commit comments

Comments
 (0)