diff --git a/pom.xml b/pom.xml index a56a7bcd..61408602 100644 --- a/pom.xml +++ b/pom.xml @@ -47,12 +47,12 @@ - 0.8.0 + 0.8.2 UTF-8 UTF-8 UTF-8 1.7 - 1.5.1-M2 + 1.5.3 @@ -77,7 +77,7 @@ ${dropwizard.version} - com.wordnik + io.swagger swagger-jersey2-jaxrs ${swagger.version} @@ -176,9 +176,14 @@ io.federecio dropwizard-junit - 0.6 + 0.7 test + + org.glassfish.jersey.media + jersey-media-multipart + 2.19 + org.seleniumhq.selenium.client-drivers selenium-java-client-driver diff --git a/src/main/java/io/federecio/dropwizard/swagger/SwaggerBundle.java b/src/main/java/io/federecio/dropwizard/swagger/SwaggerBundle.java index 80e32dc2..2099cd7d 100644 --- a/src/main/java/io/federecio/dropwizard/swagger/SwaggerBundle.java +++ b/src/main/java/io/federecio/dropwizard/swagger/SwaggerBundle.java @@ -15,16 +15,19 @@ */ package io.federecio.dropwizard.swagger; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.google.common.collect.ImmutableMap; -import com.wordnik.swagger.jaxrs.config.BeanConfig; -import com.wordnik.swagger.jaxrs.listing.ApiListingResource; import io.dropwizard.Configuration; import io.dropwizard.ConfiguredBundle; import io.dropwizard.assets.AssetsBundle; import io.dropwizard.setup.Bootstrap; import io.dropwizard.setup.Environment; import io.dropwizard.views.ViewBundle; +import io.swagger.jaxrs.config.BeanConfig; +import io.swagger.jaxrs.listing.ApiListingResource; + +import java.util.Map; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.google.common.collect.ImmutableMap; /** * A {@link io.dropwizard.ConfiguredBundle} that provides hassle-free configuration of Swagger and Swagger UI @@ -40,7 +43,7 @@ public abstract class SwaggerBundle implements Configur public void initialize(Bootstrap bootstrap) { bootstrap.addBundle(new ViewBundle() { @Override - public ImmutableMap> getViewConfiguration(final Configuration configuration) { + public Map> getViewConfiguration(final Configuration configuration) { return ImmutableMap.of(); } }); diff --git a/src/test/java/io/federecio/dropwizard/swagger/DropwizardTest.java b/src/test/java/io/federecio/dropwizard/swagger/DropwizardTest.java index 3c073e01..3b0824e0 100644 --- a/src/test/java/io/federecio/dropwizard/swagger/DropwizardTest.java +++ b/src/test/java/io/federecio/dropwizard/swagger/DropwizardTest.java @@ -18,13 +18,15 @@ import com.google.common.base.Joiner; import com.google.common.base.Splitter; import com.jayway.restassured.RestAssured; -import com.wordnik.swagger.jaxrs.listing.ApiListingResource; + import org.eclipse.jetty.http.HttpStatus; import org.hamcrest.core.StringContains; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; +import io.swagger.jaxrs.listing.ApiListingResource; + import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; @@ -51,7 +53,6 @@ public void setPort() { public static void crap() throws Exception { Field initialized = ApiListingResource.class.getDeclaredField("initialized"); initialized.setAccessible(true); - initialized.set(null, false); } @Test diff --git a/src/test/java/io/federecio/dropwizard/swagger/TestResource.java b/src/test/java/io/federecio/dropwizard/swagger/TestResource.java index 46feea6c..70a8157c 100644 --- a/src/test/java/io/federecio/dropwizard/swagger/TestResource.java +++ b/src/test/java/io/federecio/dropwizard/swagger/TestResource.java @@ -15,8 +15,9 @@ */ package io.federecio.dropwizard.swagger; -import com.wordnik.swagger.annotations.Api; -import com.wordnik.swagger.annotations.ApiOperation; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import javax.ws.rs.GET; import javax.ws.rs.Path;