@@ -69,7 +69,8 @@ public void whenLocaleIsEnUS_thenErrorCountShouldMatch() throws IOException {
6969    public  void  whenLocaleIsEnUS_thenHttpError400ShouldWork () {
7070        assertThat (I18nHttpError .HTTP_ERROR_400_INVALID_QUERY_PARAMETER_TITLE .get ()).isEqualTo (
7171                "Query Parameter is Invalid" );
72-         assertThat (I18nHttpError .HTTP_ERROR_400_INVALID_QUERY_PARAMETER_DETAIL .get (Map .of ("parameter" ,
72+         assertThat (I18nHttpError .HTTP_ERROR_400_INVALID_QUERY_PARAMETER_DETAIL_WITH_PARAMETER_AND_REASON .get (Map .of (
73+                 "parameter" ,
7374                "p1" ,
7475                "reason" ,
7576                "test." ))).isEqualTo ("Query parameter 'p1' is invalid: test." );
@@ -79,26 +80,26 @@ public void whenLocaleIsEnUS_thenHttpError400ShouldWork() {
7980                "Required request body is missing." );
8081        assertThat (I18nHttpError .HTTP_ERROR_400_REQUEST_BODY_PARAMETER_MISSING_TITLE .get ()).isEqualTo (
8182                "Required Request Body Parameter Missing" );
82-         assertThat (I18nHttpError .HTTP_ERROR_400_REQUEST_BODY_PARAMETER_MISSING_DETAIL .get (Map .of ("parameter" ,
83+         assertThat (I18nHttpError .HTTP_ERROR_400_REQUEST_BODY_PARAMETER_MISSING_DETAIL_WITH_PARAMETER .get (Map .of (
84+                 "parameter" ,
8385                "p1" ))).isEqualTo ("Required request body parameter 'p1' is missing." );
8486        assertThat (I18nHttpError .HTTP_ERROR_400_URL_PARAMETER_MISSING_TITLE .get ()).isEqualTo (
8587                "Required URL Parameter Missing" );
86-         assertThat (I18nHttpError .HTTP_ERROR_400_URL_PARAMETER_MISSING_DETAIL .get (Map .of ("parameter" ,  "p1" ))). isEqualTo ( 
87-                 "Required URL parameter 'p1' is missing." );
88+         assertThat (I18nHttpError .HTTP_ERROR_400_URL_PARAMETER_MISSING_DETAIL_WITH_PARAMETER .get (Map .of ("parameter" ,
89+                 "p1"  ))). isEqualTo ( " Required URL parameter 'p1' is missing." );
8890    }
8991
9092    @ Test 
9193    public  void  whenLocaleIsEnUS_thenHttpError412ShouldWork () {
9294        assertThat (I18nHttpError .HTTP_ERROR_412_TITLE .get ()).isEqualTo ("Precondition Failed" );
93-         assertThat (I18nHttpError .HTTP_ERROR_412_DETAIL .get (Map .of ("reason" , "test." ))).isEqualTo (
95+         assertThat (I18nHttpError .HTTP_ERROR_412_DETAIL_WITH_REASON .get (Map .of ("reason" , "test." ))).isEqualTo (
9496                "A precondition required for fulfilling the request was not fulfilled: test." );
9597    }
9698
9799    @ Test 
98100    public  void  whenLocaleIsEnUS_thenHttpError500ShouldWork () {
99101        assertThat (I18nHttpError .HTTP_ERROR_500_TITLE .get ()).isEqualTo ("Internal Server Error" );
100-         assertThat (I18nHttpError .HTTP_ERROR_500_DETAIL_DEFAULT .get ()).isEqualTo (
101-                 "An unexpected error occurred, check the logs." );
102+         assertThat (I18nHttpError .HTTP_ERROR_500_DETAIL .get ()).isEqualTo ("An unexpected error occurred, check the logs." );
102103        assertThat (I18nHttpError .HTTP_ERROR_500_DETAIL_WITH_REASON .get (Map .of ("reason" , "test." ))).isEqualTo (
103104                "An unexpected error occurred: test." );
104105    }
@@ -113,7 +114,7 @@ public void whenLocaleIsEnUS_thenHttpError503ShouldWork() {
113114    @ Test 
114115    public  void  whenLocaleIsEnUS_thenHttpError507ShouldWork () {
115116        assertThat (I18nHttpError .HTTP_ERROR_507_TITLE .get ()).isEqualTo ("Insufficient Storage" );
116-         assertThat (I18nHttpError .HTTP_ERROR_507_DETAIL_DEFAULT .get ()).isEqualTo ("Insufficient Storage." );
117+         assertThat (I18nHttpError .HTTP_ERROR_507_DETAIL .get ()).isEqualTo ("Insufficient Storage." );
117118        assertThat (I18nHttpError .HTTP_ERROR_507_DETAIL_WITH_REASON .get (Map .of ("reason" , "test." ))).isEqualTo (
118119                "Insufficient Storage: test." );
119120    }
@@ -123,8 +124,8 @@ public void whenLocaleIsEnGB_thenHttpError500ShouldFail() {
123124        I18nLocaleContext .setLocale (Locale .UK );
124125        assertThat (I18nHttpError .HTTP_ERROR_500_TITLE .get ()).isEqualTo (
125126                "Error: Template http.error.500.title for en_GB could not be loaded." );
126-         assertThat (I18nHttpError .HTTP_ERROR_500_DETAIL_DEFAULT .get ()).isEqualTo (
127-                 "Error: Template http.error.500.detail.default  for en_GB could not be loaded." );
127+         assertThat (I18nHttpError .HTTP_ERROR_500_DETAIL .get ()).isEqualTo (
128+                 "Error: Template http.error.500.detail for en_GB could not be loaded." );
128129        assertThat (I18nHttpError .HTTP_ERROR_500_DETAIL_WITH_REASON .get (Map .of ("reason" , "test." ))).isEqualTo (
129130                "Error: Template http.error.500.detail.with.reason for en_GB could not be loaded." );
130131    }
0 commit comments