From 7206f88c6c5264ef73b2f393b51a9da07790fe65 Mon Sep 17 00:00:00 2001 From: jianglai Date: Wed, 2 Nov 2016 07:51:59 -0700 Subject: [PATCH] Supply explicit type to ImmutableMap.of() to rid Eclipse warnings ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=137944794 --- .../ui/server/registrar/RegistrarSettingsActionTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javatests/google/registry/ui/server/registrar/RegistrarSettingsActionTest.java b/javatests/google/registry/ui/server/registrar/RegistrarSettingsActionTest.java index 7133b2940..007b8e923 100644 --- a/javatests/google/registry/ui/server/registrar/RegistrarSettingsActionTest.java +++ b/javatests/google/registry/ui/server/registrar/RegistrarSettingsActionTest.java @@ -66,7 +66,7 @@ public class RegistrarSettingsActionTest extends RegistrarSettingsActionTestCase @Test public void testRead_notAuthorized_failure() throws Exception { when(sessionUtils.checkRegistrarConsoleLogin(req)).thenReturn(false); - Map response = action.handleJsonRequest(ImmutableMap.of()); + Map response = action.handleJsonRequest(ImmutableMap.of()); assertThat(response).containsEntry("status", "ERROR"); assertThat((String) response.get("message")).startsWith("Not authorized"); assertNoTasksEnqueued("sheet"); @@ -77,7 +77,7 @@ public class RegistrarSettingsActionTest extends RegistrarSettingsActionTestCase */ @Test public void testRead_authorized_returnsRegistrarJson() throws Exception { - Map response = action.handleJsonRequest(ImmutableMap.of()); + Map response = action.handleJsonRequest(ImmutableMap.of()); assertThat(response).containsEntry("status", "SUCCESS"); assertThat(response).containsEntry("results", asList( Registrar.loadByClientId(CLIENT_ID).toJsonMap()));