88import static java .util .Collections .emptyMap ;
99import static org .assertj .core .api .Assertions .assertThat ;
1010
11- import org .junit .jupiter .params .ParameterizedTest ;
12- import org .junit .jupiter .params .provider .Arguments ;
13- import org .junit .jupiter .params .provider .MethodSource ;
14-
1511import java .util .Collections ;
1612import java .util .HashMap ;
1713import java .util .HashSet ;
1814import java .util .Map ;
1915import java .util .Set ;
2016import java .util .stream .Stream ;
17+ import org .junit .jupiter .params .ParameterizedTest ;
18+ import org .junit .jupiter .params .provider .Arguments ;
19+ import org .junit .jupiter .params .provider .MethodSource ;
2120
2221class MethodsConfigurationParserTest {
2322
@@ -33,26 +32,30 @@ static Stream<Arguments> configurationTestData() {
3332 return Stream .of (
3433 Arguments .of (null , emptyMap ()),
3534 Arguments .of (" " , emptyMap ()),
36- Arguments .of ("some.package.ClassName" ,
37- Collections .<String , Set <String >>singletonMap ("some.package.ClassName" ,
38- Collections .emptySet ())),
35+ Arguments .of (
36+ "some.package.ClassName" ,
37+ Collections .<String , Set <String >>singletonMap (
38+ "some.package.ClassName" , Collections .emptySet ())),
3939 Arguments .of ("some.package.ClassName[ , ]" , emptyMap ()),
4040 Arguments .of ("some.package.ClassName[ , method]" , emptyMap ()),
41- Arguments .of ("some.package.Class$Name[ method , ]" ,
41+ Arguments .of (
42+ "some.package.Class$Name[ method , ]" ,
4243 Collections .singletonMap ("some.package.Class$Name" , createSet ("method" ))),
43- Arguments .of ("ClassName[ method1,]" ,
44- Collections .singletonMap ("ClassName" , createSet ("method1" ))),
45- Arguments .of ("ClassName[method1 , method2]" ,
44+ Arguments .of (
45+ "ClassName[ method1,]" , Collections .singletonMap ("ClassName" , createSet ("method1" ))),
46+ Arguments .of (
47+ "ClassName[method1 , method2]" ,
4648 Collections .singletonMap ("ClassName" , createSet ("method1" , "method2" ))),
47- Arguments .of ("Class$1[method1 ] ; Class$2[ method2];" ,
49+ Arguments .of (
50+ "Class$1[method1 ] ; Class$2[ method2];" ,
4851 createTwoEntryMap ("Class$1" , createSet ("method1" ), "Class$2" , createSet ("method2" ))),
49- Arguments .of ("Duplicate[method1] ; Duplicate[method2] ;Duplicate[method3];" ,
50- Collections . singletonMap ( "Duplicate" , createSet ( " method3" )))
51- );
52+ Arguments .of (
53+ "Duplicate[method1] ; Duplicate[method2] ;Duplicate[ method3];" ,
54+ Collections . singletonMap ( "Duplicate" , createSet ( "method3" ))) );
5255 }
5356
54- private static Map <String , Set <String >> createTwoEntryMap (String key1 , Set < String > value1 ,
55- String key2 , Set <String > value2 ) {
57+ private static Map <String , Set <String >> createTwoEntryMap (
58+ String key1 , Set < String > value1 , String key2 , Set <String > value2 ) {
5659 Map <String , Set <String >> map = new HashMap <>();
5760 map .put (key1 , value1 );
5861 map .put (key2 , value2 );
0 commit comments