Skip to content

Commit 82974af

Browse files
add test for summary attribute in info annotation
1 parent 92a99a7 commit 82974af

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tck/src/main/java/org/eclipse/microprofile/openapi/apps/airlines/JAXRSApp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
info = @Info(title = "AirlinesRatingApp API", version = "1.0",
7474
description = "APIs for booking and managing air flights",
7575
termsOfService = "http://airlinesratingapp.com/terms",
76+
summary = "An API for an Airline application",
7677
contact = @Contact(name = "AirlinesRatingApp API Support",
7778
url = "http://exampleurl.com/contact",
7879
email = "[email protected]",

tck/src/main/java/org/eclipse/microprofile/openapi/tck/AirlinesAppTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public void testInfo(String type) {
6969
ValidatableResponse vr = callEndpoint(type);
7070
vr.body("info.title", equalTo("AirlinesRatingApp API"));
7171
vr.body("info.version", equalTo("1.0"));
72+
vr.body("info.summary", equalTo("An API for an Airline application"));
7273
vr.body("info.termsOfService", equalTo("http://airlinesratingapp.com/terms"));
7374
vr.body("info.x-info", equalTo("test-info"));
7475
}

tck/src/main/java/org/eclipse/microprofile/openapi/tck/ModelReaderAppTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public void testInfo(String type) {
6262
ValidatableResponse vr = callEndpoint(type);
6363
vr.body("info.title", equalTo("AirlinesRatingApp API"));
6464
vr.body("info.version", equalTo("1.0"));
65+
vr.body("info.summary", equalTo("An API for an Airline application"));
6566
vr.body("info.termsOfService", equalTo("http://airlinesratingapp.com/terms"));
6667
}
6768

0 commit comments

Comments
 (0)