File tree Expand file tree Collapse file tree 4 files changed +0
-20
lines changed
springdoc-openapi-webmvc-core/src/test
java/test/org/springdoc/api/app171 Expand file tree Collapse file tree 4 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ public void persons(@Valid @NotBlank String name) {
36
36
}
37
37
38
38
@ GetMapping ("/test" )
39
- @ Tag (name = "lang.change" )
40
39
public HttpEntity <String > demo2 () {
41
40
return null ;
42
41
}
Original file line number Diff line number Diff line change 29
29
import org .junit .jupiter .api .Test ;
30
30
import org .springdoc .core .Constants ;
31
31
import org .springframework .boot .autoconfigure .SpringBootApplication ;
32
- import org .springframework .context .annotation .Bean ;
33
32
import org .springframework .http .HttpHeaders ;
34
33
import org .springframework .test .context .TestPropertySource ;
35
34
import org .springframework .test .web .servlet .MvcResult ;
36
- import org .springframework .web .servlet .LocaleResolver ;
37
- import org .springframework .web .servlet .i18n .SessionLocaleResolver ;
38
35
39
36
import test .org .springdoc .api .AbstractSpringDocTest ;
40
37
@@ -45,12 +42,6 @@ public class SpringDocApp171Test extends AbstractSpringDocTest {
45
42
static class SpringDocTestApp {
46
43
}
47
44
48
- @ Bean
49
- public LocaleResolver localeResolver () {
50
- SessionLocaleResolver localeResolver = new SessionLocaleResolver ();
51
- return localeResolver ;
52
- }
53
-
54
45
@ Test
55
46
@ Override
56
47
public void testApp () throws Exception {
@@ -59,8 +50,6 @@ public void testApp() throws Exception {
59
50
}
60
51
61
52
private void testApp (Locale locale ) throws Exception {
62
- Locale .setDefault (locale );
63
-
64
53
className = getClass ().getSimpleName ();
65
54
String testNumber = className .replaceAll ("[^0-9]" , "" );
66
55
MvcResult mockMvcResult =
Original file line number Diff line number Diff line change 14
14
{
15
15
"name" : " Hello! Welcome to our website!" ,
16
16
"description" : " This is a test message"
17
- },
18
- {
19
- "name" : " Change the language"
20
17
}
21
18
],
22
19
"paths" : {
23
20
"/test" : {
24
21
"get" : {
25
22
"tags" : [
26
- " Change the language" ,
27
23
" Hello! Welcome to our website!"
28
24
],
29
25
"operationId" : " demo2" ,
Original file line number Diff line number Diff line change 11
11
}
12
12
],
13
13
"tags" : [
14
- {
15
- "name" : " Change the language[FR]"
16
- },
17
14
{
18
15
"name" : " Hello! Welcome to our website![FR]" ,
19
16
"description" : " This is a test message[FR]"
23
20
"/test" : {
24
21
"get" : {
25
22
"tags" : [
26
- " Change the language[FR]" ,
27
23
" Hello! Welcome to our website![FR]"
28
24
],
29
25
"operationId" : " demo2" ,
You can’t perform that action at this time.
0 commit comments