File tree 17 files changed +25
-25
lines changed
springdoc-openapi-common/src/main/java/org/springdoc/core
springdoc-openapi-ui/src/test
java/test/org/springdoc/ui
springdoc-openapi-webflux-ui/src/test
java/test/org/springdoc/ui
17 files changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ public final class Constants {
359
359
/**
360
360
* The constant DEFAULT_SWAGGER_UI_ACTUATOR_PATH.
361
361
*/
362
- public static final String DEFAULT_SWAGGER_UI_ACTUATOR_PATH = "swaggerui " ;
362
+ public static final String DEFAULT_SWAGGER_UI_ACTUATOR_PATH = "swagger-ui " ;
363
363
364
364
/**
365
365
* The constant DEFAULT_API_DOCS_ACTUATOR_URL.
Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ void testIndex() throws Exception {
48
48
49
49
@ Test
50
50
public void testIndexActuator () {
51
- String contentAsString = actuatorRestTemplate .getForObject ("/application/swaggerui " , String .class );
51
+ String contentAsString = actuatorRestTemplate .getForObject ("/application/swagger-ui " , String .class );
52
52
assertTrue (contentAsString .contains ("Swagger UI" ));
53
53
}
54
54
55
55
@ Test
56
56
public void testIndexSwaggerConfig () throws Exception {
57
- String contentAsString = actuatorRestTemplate .getForObject ("/application/swaggerui /swagger-config" , String .class );
57
+ String contentAsString = actuatorRestTemplate .getForObject ("/application/swagger-ui /swagger-config" , String .class );
58
58
String expected = getContent ("results/app13-1.json" );
59
59
assertEquals (expected , contentAsString , true );
60
60
}
Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ void testIndex() throws Exception {
48
48
49
49
@ Test
50
50
public void testIndexActuator () {
51
- String contentAsString = actuatorRestTemplate .getForObject ("/application/swaggerui " , String .class );
51
+ String contentAsString = actuatorRestTemplate .getForObject ("/application/swagger-ui " , String .class );
52
52
assertTrue (contentAsString .contains ("Swagger UI" ));
53
53
}
54
54
55
55
@ Test
56
56
public void testIndexSwaggerConfig () throws Exception {
57
- String contentAsString = actuatorRestTemplate .getForObject ("/application/swaggerui /swagger-config" , String .class );
57
+ String contentAsString = actuatorRestTemplate .getForObject ("/application/swagger-ui /swagger-config" , String .class );
58
58
String expected = getContent ("results/app14-1.json" );
59
59
assertEquals (expected , contentAsString , true );
60
60
}
Original file line number Diff line number Diff line change @@ -51,13 +51,13 @@ void testIndex() throws Exception {
51
51
52
52
@ Test
53
53
public void testIndexActuator () {
54
- String contentAsString = actuatorRestTemplate .getForObject ("/test/application/swaggerui " , String .class );
54
+ String contentAsString = actuatorRestTemplate .getForObject ("/test/application/swagger-ui " , String .class );
55
55
assertTrue (contentAsString .contains ("Swagger UI" ));
56
56
}
57
57
58
58
@ Test
59
59
public void testIndexSwaggerConfig () throws Exception {
60
- String contentAsString = actuatorRestTemplate .getForObject ("/test/application/swaggerui /swagger-config" , String .class );
60
+ String contentAsString = actuatorRestTemplate .getForObject ("/test/application/swagger-ui /swagger-config" , String .class );
61
61
String expected = getContent ("results/app15-1.json" );
62
62
assertEquals (expected , contentAsString , true );
63
63
}
Original file line number Diff line number Diff line change @@ -51,13 +51,13 @@ void testIndex() throws Exception {
51
51
52
52
@ Test
53
53
public void testIndexActuator () {
54
- String contentAsString = actuatorRestTemplate .getForObject ("/test/application/swaggerui " , String .class );
54
+ String contentAsString = actuatorRestTemplate .getForObject ("/test/application/swagger-ui " , String .class );
55
55
assertTrue (contentAsString .contains ("Swagger UI" ));
56
56
}
57
57
58
58
@ Test
59
59
public void testIndexSwaggerConfig () throws Exception {
60
- String contentAsString = actuatorRestTemplate .getForObject ("/test/application/swaggerui /swagger-config" , String .class );
60
+ String contentAsString = actuatorRestTemplate .getForObject ("/test/application/swagger-ui /swagger-config" , String .class );
61
61
String expected = getContent ("results/app16-1.json" );
62
62
assertEquals (expected , contentAsString , true );
63
63
}
Original file line number Diff line number Diff line change 1
1
{
2
- "configUrl" : " /application/swaggerui /swagger-config" ,
2
+ "configUrl" : " /application/swagger-ui /swagger-config" ,
3
3
"oauth2RedirectUrl" : " http://localhost:9092/application/swagger-ui/oauth2-redirect.html" ,
4
4
"url" : " /application/openapi" ,
5
5
"validatorUrl" : " "
Original file line number Diff line number Diff line change 1
1
{
2
- "configUrl" : " /application/swaggerui /swagger-config" ,
2
+ "configUrl" : " /application/swagger-ui /swagger-config" ,
3
3
"oauth2RedirectUrl" : " http://localhost:9093/application/swagger-ui/oauth2-redirect.html" ,
4
4
"urls" : [
5
5
{
Original file line number Diff line number Diff line change 1
1
{
2
- "configUrl" : " /test/application/swaggerui /swagger-config" ,
2
+ "configUrl" : " /test/application/swagger-ui /swagger-config" ,
3
3
"oauth2RedirectUrl" : " http://localhost:9094/test/application/swagger-ui/oauth2-redirect.html" ,
4
4
"url" : " /test/application/openapi" ,
5
5
"validatorUrl" : " "
Original file line number Diff line number Diff line change 1
1
{
2
- "configUrl" : " /test/application/swaggerui /swagger-config" ,
2
+ "configUrl" : " /test/application/swagger-ui /swagger-config" ,
3
3
"oauth2RedirectUrl" : " http://localhost:9095/test/application/swagger-ui/oauth2-redirect.html" ,
4
4
"urls" : [
5
5
{
Original file line number Diff line number Diff line change @@ -54,14 +54,14 @@ void testIndex() {
54
54
55
55
@ Test
56
56
public void testIndexActuator () {
57
- HttpStatus httpStatusMono = webClient .get ().uri ("/application/swaggerui " )
57
+ HttpStatus httpStatusMono = webClient .get ().uri ("/application/swagger-ui " )
58
58
.exchangeToMono ( clientResponse -> Mono .just (clientResponse .statusCode ())).block ();
59
59
assertThat (httpStatusMono ).isEqualTo (HttpStatus .FOUND );
60
60
}
61
61
62
62
@ Test
63
63
public void testIndexSwaggerConfig () throws Exception {
64
- String contentAsString = webClient .get ().uri ("/application/swaggerui /swagger-config" ).retrieve ()
64
+ String contentAsString = webClient .get ().uri ("/application/swagger-ui /swagger-config" ).retrieve ()
65
65
.bodyToMono (String .class ).block ();
66
66
String expected = getContent ("results/app13-1.json" );
67
67
assertEquals (expected , contentAsString , true );
Original file line number Diff line number Diff line change @@ -53,14 +53,14 @@ void testIndex() {
53
53
54
54
@ Test
55
55
public void testIndexActuator () {
56
- HttpStatus httpStatusMono = webClient .get ().uri ("/application/swaggerui " )
56
+ HttpStatus httpStatusMono = webClient .get ().uri ("/application/swagger-ui " )
57
57
.exchangeToMono ( clientResponse -> Mono .just (clientResponse .statusCode ())).block ();
58
58
assertThat (httpStatusMono ).isEqualTo (HttpStatus .FOUND );
59
59
}
60
60
61
61
@ Test
62
62
public void testIndexSwaggerConfig () throws Exception {
63
- String contentAsString = webClient .get ().uri ("/application/swaggerui /swagger-config" ).retrieve ()
63
+ String contentAsString = webClient .get ().uri ("/application/swagger-ui /swagger-config" ).retrieve ()
64
64
.bodyToMono (String .class ).block ();
65
65
String expected = getContent ("results/app14-1.json" );
66
66
assertEquals (expected , contentAsString , true );
Original file line number Diff line number Diff line change @@ -56,14 +56,14 @@ void testIndex() {
56
56
57
57
@ Test
58
58
public void testIndexActuator () {
59
- HttpStatus httpStatusMono = webClient .get ().uri ("/test/application/swaggerui " )
59
+ HttpStatus httpStatusMono = webClient .get ().uri ("/test/application/swagger-ui " )
60
60
.exchangeToMono ( clientResponse -> Mono .just (clientResponse .statusCode ())).block ();
61
61
assertThat (httpStatusMono ).isEqualTo (HttpStatus .FOUND );
62
62
}
63
63
64
64
@ Test
65
65
public void testIndexSwaggerConfig () throws Exception {
66
- String contentAsString = webClient .get ().uri ("/test/application/swaggerui /swagger-config" ).retrieve ()
66
+ String contentAsString = webClient .get ().uri ("/test/application/swagger-ui /swagger-config" ).retrieve ()
67
67
.bodyToMono (String .class ).block ();
68
68
String expected = getContent ("results/app15-1.json" );
69
69
assertEquals (expected , contentAsString , true );
Original file line number Diff line number Diff line change @@ -55,14 +55,14 @@ void testIndex() {
55
55
56
56
@ Test
57
57
public void testIndexActuator () {
58
- HttpStatus httpStatusMono = webClient .get ().uri ("/test/application/swaggerui " )
58
+ HttpStatus httpStatusMono = webClient .get ().uri ("/test/application/swagger-ui " )
59
59
.exchangeToMono ( clientResponse -> Mono .just (clientResponse .statusCode ())).block ();
60
60
assertThat (httpStatusMono ).isEqualTo (HttpStatus .FOUND );
61
61
}
62
62
63
63
@ Test
64
64
public void testIndexSwaggerConfig () throws Exception {
65
- String contentAsString = webClient .get ().uri ("/test/application/swaggerui /swagger-config" ).retrieve ()
65
+ String contentAsString = webClient .get ().uri ("/test/application/swagger-ui /swagger-config" ).retrieve ()
66
66
.bodyToMono (String .class ).block ();
67
67
String expected = getContent ("results/app16-1.json" );
68
68
assertEquals (expected , contentAsString , true );
Original file line number Diff line number Diff line change 1
1
{
2
- "configUrl" : " /application/swaggerui /swagger-config" ,
2
+ "configUrl" : " /application/swagger-ui /swagger-config" ,
3
3
"oauth2RedirectUrl" : " http://localhost:9092/application/webjars/swagger-ui/oauth2-redirect.html" ,
4
4
"url" : " /application/openapi" ,
5
5
"validatorUrl" : " "
Original file line number Diff line number Diff line change 1
1
{
2
- "configUrl" : " /application/swaggerui /swagger-config" ,
2
+ "configUrl" : " /application/swagger-ui /swagger-config" ,
3
3
"oauth2RedirectUrl" : " http://localhost:9093/application/webjars/swagger-ui/oauth2-redirect.html" ,
4
4
"urls" : [
5
5
{
Original file line number Diff line number Diff line change 1
1
{
2
- "configUrl" : " /test/application/swaggerui /swagger-config" ,
2
+ "configUrl" : " /test/application/swagger-ui /swagger-config" ,
3
3
"oauth2RedirectUrl" : " http://localhost:9094/test/application/webjars/swagger-ui/oauth2-redirect.html" ,
4
4
"url" : " /test/application/openapi" ,
5
5
"validatorUrl" : " "
Original file line number Diff line number Diff line change 1
1
{
2
- "configUrl" : " /test/application/swaggerui /swagger-config" ,
2
+ "configUrl" : " /test/application/swagger-ui /swagger-config" ,
3
3
"oauth2RedirectUrl" : " http://localhost:9095/test/application/webjars/swagger-ui/oauth2-redirect.html" ,
4
4
"urls" : [
5
5
{
You can’t perform that action at this time.
0 commit comments