cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject [cxf-dosgi] 02/02: Add itest for swagger json
Date Thu, 21 Sep 2017 08:49:04 GMT
This is an automated email from the ASF dual-hosted git repository.

cschneider pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf-dosgi.git

commit 722f4c261a9798dce71b3839a7ddcb670ae399a4
Author: Christian Schneider <chris@die-schneider.net>
AuthorDate: Thu Sep 21 10:48:53 2017 +0200

    Add itest for swagger json
---
 .../java/org/apache/cxf/dosgi/itests/multi/TestExportService.java     | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/itests/multi-bundle/src/test/java/org/apache/cxf/dosgi/itests/multi/TestExportService.java
b/itests/multi-bundle/src/test/java/org/apache/cxf/dosgi/itests/multi/TestExportService.java
index a4bc5a1..fcc70c0 100644
--- a/itests/multi-bundle/src/test/java/org/apache/cxf/dosgi/itests/multi/TestExportService.java
+++ b/itests/multi-bundle/src/test/java/org/apache/cxf/dosgi/itests/multi/TestExportService.java
@@ -90,6 +90,10 @@ public class TestExportService extends AbstractDosgiTest {
         }
         );
         Assert.assertEquals("Buy some coffee", task.getTitle());
+        final WebClient swaggerClient = WebClient.create(REST_SERVICE_URI + "/swagger.json");
+        String swaggerJson = swaggerClient.get(String.class);
+        Assert.assertEquals("{\"swagger\":\"2.0\"", swaggerJson.substring(0, 16));
+        
     }
     
     @Test

-- 
To stop receiving notification emails like this one, please contact
"commits@cxf.apache.org" <commits@cxf.apache.org>.

Mime
View raw message