Skip to content

Commit

Permalink
fixup! JAMES-2886 Allow a user to define custom routes
Browse files Browse the repository at this point in the history
  • Loading branch information
chibenwa committed Sep 20, 2019
1 parent e14946d commit d98291d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
import org.apache.james.util.Port;
import org.apache.james.webadmin.authentication.NoAuthenticationFilter;

import com.google.common.collect.ImmutableList;

import io.restassured.builder.RequestSpecBuilder;
import io.restassured.config.RestAssuredConfig;
import io.restassured.http.ContentType;
Expand All @@ -39,7 +41,7 @@ public class WebAdminUtils {

public static WebAdminServer createWebAdminServer(Routes... routes) {
return new WebAdminServer(WebAdminConfiguration.TEST_CONFIGURATION,
Arrays.asList(routes),
ImmutableList.copyOf(routes),
new NoAuthenticationFilter(),
new NoopMetricFactory());
}
Expand Down

0 comments on commit d98291d

Please sign in to comment.