mirror of
https://github.com/google/nomulus.git
synced 2025-08-05 09:21:49 +02:00
Remove unnecessary generic type arguments
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=175155365
This commit is contained in:
parent
8dcc2d6833
commit
2aa897e698
140 changed files with 355 additions and 465 deletions
|
@ -94,7 +94,7 @@ public class ContactSettingsTest extends RegistrarSettingsActionTestCase {
|
|||
reqJson.put("contacts",
|
||||
ImmutableList.of(AppEngineRule.makeRegistrarContact2()
|
||||
.asBuilder()
|
||||
.setTypes(ImmutableList.<RegistrarContact.Type>of())
|
||||
.setTypes(ImmutableList.of())
|
||||
.build().toJsonMap()));
|
||||
Map<String, Object> response = action.handleJsonRequest(ImmutableMap.of(
|
||||
"op", "update",
|
||||
|
|
|
@ -82,7 +82,7 @@ public class RegistrarPaymentSetupActionTest {
|
|||
CurrencyUnit.JPY, "torment");
|
||||
String blanketsOfSadness = "our hearts are beating, but no one is breathing";
|
||||
when(clientTokenGateway.generate()).thenReturn(blanketsOfSadness);
|
||||
assertThat(action.handleJsonRequest(ImmutableMap.<String, Object>of()))
|
||||
assertThat(action.handleJsonRequest(ImmutableMap.of()))
|
||||
.containsExactly(
|
||||
"status", "SUCCESS",
|
||||
"message", "Success",
|
||||
|
@ -113,7 +113,7 @@ public class RegistrarPaymentSetupActionTest {
|
|||
when(sessionUtils.getRegistrarForAuthResult(
|
||||
any(HttpServletRequest.class), any(AuthResult.class)))
|
||||
.thenReturn(registrar);
|
||||
assertThat(action.handleJsonRequest(ImmutableMap.<String, Object>of()))
|
||||
assertThat(action.handleJsonRequest(ImmutableMap.of()))
|
||||
.containsExactly(
|
||||
"status", "ERROR",
|
||||
"message", "not-using-cc-billing",
|
||||
|
|
|
@ -74,7 +74,7 @@ public class RegistrarSettingsActionTest extends RegistrarSettingsActionTestCase
|
|||
any(HttpServletRequest.class), any(AuthResult.class)))
|
||||
.thenThrow(new ForbiddenException("Not authorized to access Registrar Console"));
|
||||
try {
|
||||
action.handleJsonRequest(ImmutableMap.<String, Object>of());
|
||||
action.handleJsonRequest(ImmutableMap.of());
|
||||
fail("expected ForbiddenException");
|
||||
} catch (ForbiddenException ex) {
|
||||
assertNoTasksEnqueued("sheet");
|
||||
|
@ -86,7 +86,7 @@ public class RegistrarSettingsActionTest extends RegistrarSettingsActionTestCase
|
|||
*/
|
||||
@Test
|
||||
public void testRead_authorized_returnsRegistrarJson() throws Exception {
|
||||
Map<String, Object> response = action.handleJsonRequest(ImmutableMap.<String, Object>of());
|
||||
Map<String, Object> response = action.handleJsonRequest(ImmutableMap.of());
|
||||
assertThat(response).containsEntry("status", "SUCCESS");
|
||||
assertThat(response).containsEntry("results", asList(loadRegistrar(CLIENT_ID).toJsonMap()));
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ public class RegistrarSettingsActionTestCase {
|
|||
action.sessionUtils = sessionUtils;
|
||||
action.authResult = AuthResult.create(AuthLevel.USER, UserAuthInfo.create(user, false));
|
||||
action.jsonActionRunner = new JsonActionRunner(
|
||||
ImmutableMap.<String, Object>of(), new JsonResponse(new ResponseImpl(rsp)));
|
||||
ImmutableMap.of(), new JsonResponse(new ResponseImpl(rsp)));
|
||||
action.registrarChangesNotificationEmailAddresses = ImmutableList.of(
|
||||
"notification@test.example", "notification2@test.example");
|
||||
action.sendEmailUtils =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue