From 80fc11c9b5a9ef892a0d971ef5e2a56a99c79041 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Mon, 23 Feb 2015 22:14:35 -0800 Subject: [PATCH] updated test --- .../swagger-jaxrs/src/test/scala/SimpleScannerTest.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/swagger-jaxrs/src/test/scala/SimpleScannerTest.scala b/modules/swagger-jaxrs/src/test/scala/SimpleScannerTest.scala index cea2847742..afabede374 100644 --- a/modules/swagger-jaxrs/src/test/scala/SimpleScannerTest.scala +++ b/modules/swagger-jaxrs/src/test/scala/SimpleScannerTest.scala @@ -64,7 +64,7 @@ class SimpleScannerTest extends FlatSpec with Matchers { it should "scan a resource with generics per 653" in { val swagger = new Reader(new Swagger()).read(classOf[Resource653]) - val path = swagger.getPaths().get("external/info") + val path = swagger.getPaths().get("/external/info") val get = path.getGet() get should not be (null) @@ -82,7 +82,7 @@ class SimpleScannerTest extends FlatSpec with Matchers { it should "scan a resource with Response.Status return type per 877" in { val swagger = new Reader(new Swagger()).read(classOf[Resource877]) - val path = swagger.getPaths().get("external/info") + val path = swagger.getPaths().get("/external/info") swagger.getTags() should not be (null) swagger.getTags().size() should be (1) @@ -95,7 +95,7 @@ class SimpleScannerTest extends FlatSpec with Matchers { it should "scan a resource with tags" in { val swagger = new Reader(new Swagger()).read(classOf[TaggedResource]) - Json.prettyPrint(swagger) + swagger.getTags().size() should be (2) } }