Wire in MetricsReporter to FrontendServlet

This work is identical to the work done for BackendServlet in
[]

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=132100448
This commit is contained in:
shikhman 2016-09-02 13:57:11 -07:00 committed by Ben McIlwain
parent c75ab37dab
commit 180240ae04
6 changed files with 72 additions and 0 deletions

View file

@ -18,8 +18,10 @@ import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import google.registry.testing.AppEngineRule;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@ -28,6 +30,10 @@ import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class FrontendServletTest {
@Rule
public final AppEngineRule appEngine =
AppEngineRule.builder().withDatastore().withLocalModules().build();
private final HttpServletRequest req = mock(HttpServletRequest.class);
private final HttpServletResponse rsp = mock(HttpServletResponse.class);