Skip to content

Commit

Permalink
Merge pull request dropwizard#241 from cb372/servlet-tests-and-fb-fix
Browse files Browse the repository at this point in the history
Servlet tests and fb fix
  • Loading branch information
codahale committed May 7, 2012
2 parents 4c9f9b6 + 8186c8c commit 45b0fe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metrics-servlet/src/main/java/com/yammer/metrics/reporting/AdminServlet.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void init(ServletConfig config) throws ServletException {
pingServlet.init(config);
threadDumpServlet.init(config);

final ServletContext context = config.getServletContext();
//final ServletContext context = config.getServletContext();
this.metricsUri = getParam(config.getInitParameter("metrics-uri"), this.metricsUri);
this.pingUri = getParam(config.getInitParameter("ping-uri"), this.pingUri);
this.threadsUri = getParam(config.getInitParameter("threads-uri"), this.threadsUri);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class AdminServletTest {

@Before
public void setUp() throws Exception {
when(context.getContextPath()).thenReturn("/context");
when(request.getContextPath()).thenReturn("/context");

when(config.getServletContext()).thenReturn(context);

Expand Down

0 comments on commit 45b0fe4

Please sign in to comment.