@@ -38,7 +38,7 @@ void validCustomization() {
3838
3939 var sut = new Reflector <>(new GenericChild <String >());
4040
41- var validCustomisation = new CustomizationContext (List .of (), Map .of ("baseField" , "foo" ), false );
41+ var validCustomisation = new CustomizationContext (List .of (), Map .of ("baseField.subField " , "foo" ), false );
4242
4343 assertThatCode (() -> sut .validateCustomization (validCustomisation , new SpecimenType <>() {}))
4444 .doesNotThrowAnyException ();
@@ -50,7 +50,7 @@ void invalidCustomization() {
5050
5151 var sut = new Reflector <>(new GenericChild <String >());
5252
53- var invalidCustomisation = new CustomizationContext (List .of (), Map .of ("nonExistingField" , "foo" ), false );
53+ var invalidCustomisation = new CustomizationContext (List .of (), Map .of ("nonExistingField.subField " , "foo" ), false );
5454
5555 assertThatExceptionOfType (SpecimenException .class )
5656 .isThrownBy (() -> sut .validateCustomization (invalidCustomisation , new SpecimenType <>() {}))
@@ -64,7 +64,7 @@ void customizingDuplicateFields() {
6464
6565 var sut = new Reflector <>(new GenericChild <String >());
6666
67- Map <String , Object > customization = Map .of ("fieldIn2Classes" , 100.0 );
67+ Map <String , Object > customization = Map .of ("fieldIn2Classes.subField " , 100.0 );
6868
6969 var invalidCustomisation = new CustomizationContext (List .of (), customization , false );
7070
@@ -82,7 +82,7 @@ void omittingDuplicateFields() {
8282
8383 var sut = new Reflector <>(new GenericChild <String >());
8484
85- var omitting = List .of ("fieldIn2Classes" );
85+ var omitting = List .of ("fieldIn2Classes.subField " );
8686
8787 var invalidCustomisation = new CustomizationContext (omitting , Map .of (), false );
8888
@@ -98,7 +98,8 @@ void omittingDuplicateFields() {
9898 @ Nested
9999 @ DisplayName ("when setting a field via reflection" )
100100 class SetField {
101- @ DisplayName ("an IllegalAccessException is turned to a SpecimenException" )
101+
102+ @ DisplayName ("an IllegalAccessException is turned into a SpecimenException" )
102103 @ Test
103104 void catchIllegalAccessException () throws Exception {
104105 var mockedField = Mockito .mock (Field .class );
@@ -109,7 +110,7 @@ void catchIllegalAccessException() throws Exception {
109110 .isThrownBy (() -> sut .setField (mockedField , "" ));
110111 }
111112
112- @ DisplayName ("an IllegalAccessException is turned to a SpecimenException" )
113+ @ DisplayName ("a SecurityException is turned into a SpecimenException" )
113114 @ Test
114115 void catchSecurityException () {
115116 var mockedField = Mockito .mock (Field .class );
@@ -119,7 +120,7 @@ void catchSecurityException() {
119120 .isThrownBy (() -> sut .setField (mockedField , "" ));
120121 }
121122
122- @ DisplayName ("an InaccessibleObjectException is turned to a SpecimenException" )
123+ @ DisplayName ("an InaccessibleObjectException is turned into a SpecimenException" )
123124 @ Test
124125 void catchInaccessibleObjectException () {
125126 var mockedField = Mockito .mock (Field .class );
0 commit comments