Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy committed Feb 24, 2015
1 parent 20c86eb commit 80fc11c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/swagger-jaxrs/src/test/scala/SimpleScannerTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand All @@ -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)
}
}

Expand Down

0 comments on commit 80fc11c

Please sign in to comment.