mirror of
https://github.com/google/nomulus.git
synced 2025-05-01 20:47:52 +02:00
Supply explicit type to ImmutableMap.of() to rid Eclipse warnings
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=137944794
This commit is contained in:
parent
053538b1b5
commit
7206f88c6c
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ public class RegistrarSettingsActionTest extends RegistrarSettingsActionTestCase
|
|||
@Test
|
||||
public void testRead_notAuthorized_failure() throws Exception {
|
||||
when(sessionUtils.checkRegistrarConsoleLogin(req)).thenReturn(false);
|
||||
Map<String, Object> response = action.handleJsonRequest(ImmutableMap.of());
|
||||
Map<String, Object> response = action.handleJsonRequest(ImmutableMap.<String, Object>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<String, Object> response = action.handleJsonRequest(ImmutableMap.of());
|
||||
Map<String, Object> response = action.handleJsonRequest(ImmutableMap.<String, Object>of());
|
||||
assertThat(response).containsEntry("status", "SUCCESS");
|
||||
assertThat(response).containsEntry("results", asList(
|
||||
Registrar.loadByClientId(CLIENT_ID).toJsonMap()));
|
||||
|
|
Loading…
Add table
Reference in a new issue