@@ -101,14 +101,14 @@ void shouldResolveMethodFromSuperClass() {
101101
102102 @ Test
103103 void shouldThrowExceptionWhenAmbiguousExceptionMapping () {
104- assertThatIllegalStateException (). isThrownBy (() ->
105- new ExceptionHandlerMethodResolver (AmbiguousController .class ));
104+ assertThatIllegalStateException ()
105+ . isThrownBy (() -> new ExceptionHandlerMethodResolver (AmbiguousController .class ));
106106 }
107107
108108 @ Test
109109 void shouldThrowExceptionWhenNoExceptionMapping () {
110- assertThatIllegalStateException (). isThrownBy (() ->
111- new ExceptionHandlerMethodResolver (NoExceptionController .class ));
110+ assertThatIllegalStateException ()
111+ . isThrownBy (() -> new ExceptionHandlerMethodResolver (NoExceptionController .class ));
112112 }
113113
114114 @ Test // gh-35587
@@ -139,15 +139,15 @@ void shouldFavorMethodWithExplicitAcceptAll() {
139139
140140 @ Test
141141 void shouldThrowExceptionWhenInvalidMediaTypeMapping () {
142- assertThatIllegalStateException (). isThrownBy (() ->
143- new ExceptionHandlerMethodResolver (InvalidMediaTypeController .class ))
142+ assertThatIllegalStateException ()
143+ . isThrownBy (() -> new ExceptionHandlerMethodResolver (InvalidMediaTypeController .class ))
144144 .withMessageContaining ("Invalid media type [invalid-mediatype] declared on @ExceptionHandler" );
145145 }
146146
147147 @ Test
148148 void shouldThrowExceptionWhenAmbiguousMediaTypeMapping () {
149- assertThatIllegalStateException (). isThrownBy (() ->
150- new ExceptionHandlerMethodResolver (AmbiguousMediaTypeController .class ))
149+ assertThatIllegalStateException ()
150+ . isThrownBy (() -> new ExceptionHandlerMethodResolver (AmbiguousMediaTypeController .class ))
151151 .withMessageContaining ("Ambiguous @ExceptionHandler method mapped for [ExceptionHandler{exceptionType=java.lang.IllegalArgumentException, mediaType=application/json}]" )
152152 .withMessageContaining ("AmbiguousMediaTypeController.handleJson()" )
153153 .withMessageContaining ("AmbiguousMediaTypeController.handleJsonToo()" );
0 commit comments