File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
springdoc-openapi-webmvc-core/src/test/java/test/org/springdoc/api/v30 Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 2222
2323package test .org .springdoc .api .v30 .app14 ;
2424
25+ import java .util .Locale ;
26+
27+ import org .junit .jupiter .api .Test ;
2528import test .org .springdoc .api .v30 .AbstractSpringDocV30Test ;
2629
2730import org .springframework .boot .autoconfigure .SpringBootApplication ;
@@ -30,4 +33,10 @@ public class SpringDocApp14Test extends AbstractSpringDocV30Test {
3033
3134 @ SpringBootApplication
3235 static class SpringDocTestApp {}
36+
37+ @ Test
38+ public void testApp () throws Exception {
39+ Locale .setDefault (Locale .US );
40+ super .testApp ();
41+ }
3342}
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public void testApp3() throws Exception {
8888 }
8989 catch (HttpStatusCodeException ex ) {
9090 // TODO: Currently obtain status 500 on MVC... Webflux obtain 404...
91- if (ex .getStatusCode () == HttpStatus .INTERNAL_SERVER_ERROR )
91+ if (ex .getStatusCode () == HttpStatus .NOT_FOUND )
9292 assertTrue (true );
9393 else
9494 fail ();
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public void testApp3() throws Exception {
7676 }
7777 catch (HttpStatusCodeException ex ) {
7878 // TODO: Currently obtain status 500 on MVC... Webflux obtain 404...
79- if (ex .getStatusCode () == HttpStatus .INTERNAL_SERVER_ERROR )
79+ if (ex .getStatusCode () == HttpStatus .NOT_FOUND )
8080 assertTrue (true );
8181 else
8282 fail ();
You can’t perform that action at this time.
0 commit comments