1616 */
1717package org .apache .logging .log4j .core .config ;
1818
19+ import java .util .HashSet ;
20+ import java .util .List ;
21+
1922import org .apache .logging .log4j .Level ;
2023import org .apache .logging .log4j .core .impl .Log4jLogEvent .Builder ;
2124import org .apache .logging .log4j .message .SimpleMessage ;
2225import org .junit .jupiter .api .Test ;
2326
24- import java .util .HashSet ;
25- import java .util .List ;
26-
2727import static org .junit .jupiter .api .Assertions .*;
2828
2929/**
@@ -48,7 +48,7 @@ public void testPropertiesWithoutSubstitution() {
4848 final LoggerConfig loggerConfig = createForProperties (all );
4949 final List <Property > list = loggerConfig .getPropertyList ();
5050 assertEquals (new HashSet <>(list ),
51- new HashSet <>(loggerConfig .getPropertyList ()), "map and list contents equal" );
51+ new HashSet <>(loggerConfig .getPropertyList ()), "map and list contents equal" );
5252
5353 final Object [] actualList = new Object [1 ];
5454 loggerConfig .setLogEventFactory ((loggerName , marker , fqcn , level , data , properties , t ) -> {
@@ -68,7 +68,7 @@ public void testPropertiesWithSubstitution() {
6868 final LoggerConfig loggerConfig = createForProperties (all );
6969 final List <Property > list = loggerConfig .getPropertyList ();
7070 assertEquals (new HashSet <>(list ),
71- new HashSet <>(loggerConfig .getPropertyList ()), "map and list contents equal" );
71+ new HashSet <>(loggerConfig .getPropertyList ()), "map and list contents equal" );
7272
7373 final Object [] actualListHolder = new Object [1 ];
7474 loggerConfig .setLogEventFactory ((loggerName , marker , fqcn , level , data , properties , t ) -> {
@@ -79,7 +79,7 @@ public void testPropertiesWithSubstitution() {
7979 assertNotSame (list , actualListHolder [0 ], "propertiesList with substitutions" );
8080
8181 @ SuppressWarnings ("unchecked" )
82- final List <Property > actualList = (List <Property >) actualListHolder [0 ];
82+ final List <Property > actualList = (List <Property >) actualListHolder [0 ];
8383
8484 for (int i = 0 ; i < list .size (); i ++) {
8585 assertEquals (list .get (i ).getName (), actualList .get (i ).getName (), "name[" + i + "]" );
0 commit comments