mirror of
https://github.com/google/nomulus.git
synced 2025-07-26 04:28:34 +02:00
Typo in comment
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=122449880
This commit is contained in:
parent
13f5106070
commit
86f3287761
18 changed files with 84 additions and 107 deletions
|
@ -18,7 +18,8 @@ import static com.google.common.truth.Truth.assertThat;
|
|||
import static google.registry.model.registrar.RegistrarContact.Type.ABUSE;
|
||||
import static google.registry.model.registrar.RegistrarContact.Type.ADMIN;
|
||||
import static google.registry.model.registrar.RegistrarContact.Type.WHOIS;
|
||||
import static google.registry.testing.DatastoreHelper.persistSimpleGlobalResources;
|
||||
import static google.registry.testing.DatastoreHelper.persistSimpleResource;
|
||||
import static google.registry.testing.DatastoreHelper.persistSimpleResources;
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
|
@ -75,7 +76,7 @@ public class RegistrarContactCommandTest extends CommandTestCase<RegistrarContac
|
|||
.setVisibleInWhoisAsAdmin(true)
|
||||
.setVisibleInWhoisAsTech(true)
|
||||
.build());
|
||||
persistSimpleGlobalResources(contacts);
|
||||
persistSimpleResources(contacts);
|
||||
runCommand(
|
||||
"--force",
|
||||
"--mode=UPDATE",
|
||||
|
@ -105,12 +106,12 @@ public class RegistrarContactCommandTest extends CommandTestCase<RegistrarContac
|
|||
@Test
|
||||
public void testUpdate_enableConsoleAccess() throws Exception {
|
||||
Registrar registrar = Registrar.loadByClientId("NewRegistrar");
|
||||
persistSimpleGlobalResources(ImmutableList.of(
|
||||
persistSimpleResource(
|
||||
new RegistrarContact.Builder()
|
||||
.setParent(registrar)
|
||||
.setName("Jane Doe")
|
||||
.setEmailAddress("jane.doe@example.com")
|
||||
.build()));
|
||||
.build());
|
||||
runCommand(
|
||||
"--force",
|
||||
"--mode=UPDATE",
|
||||
|
@ -125,13 +126,13 @@ public class RegistrarContactCommandTest extends CommandTestCase<RegistrarContac
|
|||
@Test
|
||||
public void testUpdate_disableConsoleAccess() throws Exception {
|
||||
Registrar registrar = Registrar.loadByClientId("NewRegistrar");
|
||||
persistSimpleGlobalResources(ImmutableList.of(
|
||||
persistSimpleResource(
|
||||
new RegistrarContact.Builder()
|
||||
.setParent(registrar)
|
||||
.setName("Judith Doe")
|
||||
.setEmailAddress("judith.doe@example.com")
|
||||
.setGaeUserId("11111")
|
||||
.build()));
|
||||
.build());
|
||||
runCommand(
|
||||
"--force",
|
||||
"--mode=UPDATE",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue