mirror of
https://github.com/google/nomulus.git
synced 2025-07-12 14:08:18 +02:00
Remove duplicate fields hiding the same objects on a parent class
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=130778688
This commit is contained in:
parent
d25be65ed8
commit
5556becd0e
1 changed files with 0 additions and 23 deletions
|
@ -16,40 +16,17 @@ package google.registry.model.domain;
|
|||
|
||||
import static google.registry.testing.DatastoreHelper.persistActiveContact;
|
||||
import static google.registry.testing.DatastoreHelper.persistActiveHost;
|
||||
import static org.joda.time.DateTimeZone.UTC;
|
||||
|
||||
import google.registry.model.ResourceCommandTestCase;
|
||||
import google.registry.model.eppinput.EppInput;
|
||||
import google.registry.model.eppinput.EppInput.ResourceCommandWrapper;
|
||||
import google.registry.model.eppinput.ResourceCommand;
|
||||
import google.registry.model.ofy.Ofy;
|
||||
import google.registry.testing.AppEngineRule;
|
||||
import google.registry.testing.EppLoader;
|
||||
import google.registry.testing.FakeClock;
|
||||
import google.registry.testing.InjectRule;
|
||||
import org.joda.time.DateTime;
|
||||
import org.junit.Before;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
|
||||
/** Tests for DomainCommand. */
|
||||
public class DomainCommandTest extends ResourceCommandTestCase {
|
||||
|
||||
@Rule
|
||||
public final AppEngineRule appEngine = AppEngineRule.builder()
|
||||
.withDatastore()
|
||||
.build();
|
||||
|
||||
@Rule
|
||||
public InjectRule inject = new InjectRule();
|
||||
|
||||
private FakeClock clock = new FakeClock(DateTime.now(UTC));
|
||||
|
||||
@Before
|
||||
public void beforeDomainCommandTest() throws Exception {
|
||||
inject.setStaticField(Ofy.class, "clock", clock);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreate() throws Exception {
|
||||
doXmlRoundtripTest("domain_create.xml");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue