diff --git a/java/com/google/domain/registry/model/registry/Registry.java b/java/com/google/domain/registry/model/registry/Registry.java index d8d77a812..033595764 100644 --- a/java/com/google/domain/registry/model/registry/Registry.java +++ b/java/com/google/domain/registry/model/registry/Registry.java @@ -41,9 +41,9 @@ import com.google.common.collect.Iterables; import com.google.common.collect.Ordering; import com.google.common.net.InternetDomainName; import com.google.domain.registry.config.RegistryEnvironment; -import com.google.domain.registry.model.BackupGroupRoot; import com.google.domain.registry.model.Buildable; import com.google.domain.registry.model.CreateAutoTimestamp; +import com.google.domain.registry.model.ImmutableObject; import com.google.domain.registry.model.common.EntityGroupRoot; import com.google.domain.registry.model.common.TimedTransitionProperty; import com.google.domain.registry.model.common.TimedTransitionProperty.TimedTransition; @@ -71,7 +71,7 @@ import java.util.Set; /** Persisted per-TLD configuration data. */ @Cache(expirationSeconds = RECOMMENDED_MEMCACHE_EXPIRATION) @Entity -public class Registry extends BackupGroupRoot implements Buildable { +public class Registry extends ImmutableObject implements Buildable { @Parent Key parent = getCrossTldKey(); diff --git a/javatests/com/google/domain/registry/model/schema.txt b/javatests/com/google/domain/registry/model/schema.txt index 6953ee8de..b33953e3b 100644 --- a/javatests/com/google/domain/registry/model/schema.txt +++ b/javatests/com/google/domain/registry/model/schema.txt @@ -663,7 +663,6 @@ class com.google.domain.registry.model.registry.Registry { boolean escrowEnabled; boolean premiumPriceAckRequired; com.google.domain.registry.model.CreateAutoTimestamp creationTime; - com.google.domain.registry.model.UpdateAutoTimestamp updateTimestamp; com.google.domain.registry.model.common.TimedTransitionProperty tldStateTransitions; com.google.domain.registry.model.common.TimedTransitionProperty renewBillingCostTransitions; com.google.domain.registry.model.registry.Registry$TldType tldType; diff --git a/javatests/com/google/domain/registry/tools/CreateTldCommandTest.java b/javatests/com/google/domain/registry/tools/CreateTldCommandTest.java index c9e79e635..d867cf96c 100644 --- a/javatests/com/google/domain/registry/tools/CreateTldCommandTest.java +++ b/javatests/com/google/domain/registry/tools/CreateTldCommandTest.java @@ -66,8 +66,6 @@ public class CreateTldCommandTest extends CommandTestCase { .isEqualTo(Registry.DEFAULT_REDEMPTION_GRACE_PERIOD); assertThat(registry.getPendingDeleteLength()).isEqualTo(Registry.DEFAULT_PENDING_DELETE_LENGTH); assertThat(registry.getCreationTime()).isIn(Range.closed(before, after)); - assertThat(registry.getUpdateAutoTimestamp().getTimestamp()) - .isEqualTo(registry.getCreationTime()); } @Test diff --git a/javatests/com/google/domain/registry/tools/UpdateTldCommandTest.java b/javatests/com/google/domain/registry/tools/UpdateTldCommandTest.java index ebe5b6fa5..a1565623e 100644 --- a/javatests/com/google/domain/registry/tools/UpdateTldCommandTest.java +++ b/javatests/com/google/domain/registry/tools/UpdateTldCommandTest.java @@ -30,7 +30,6 @@ import static org.joda.time.Duration.standardMinutes; import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSortedMap; -import com.google.common.collect.Range; import com.google.domain.registry.model.registry.Registry; import com.google.domain.registry.model.registry.Registry.TldState; import com.google.domain.registry.model.registry.label.PremiumList; @@ -63,22 +62,6 @@ public class UpdateTldCommandTest extends CommandTestCase { createTld("xn--q9jyb4c"); } - @Test - public void testSuccess_updateAutoTimestamp() throws Exception { - Registry registry = Registry.get("xn--q9jyb4c"); - DateTime creationTime = registry.getCreationTime(); - assertThat(creationTime).isNotNull(); - assertThat(registry.getUpdateAutoTimestamp().getTimestamp()).isEqualTo(creationTime); - - DateTime before = DateTime.now(UTC); - runCommandForced("xn--q9jyb4c"); - DateTime after = DateTime.now(UTC); - - registry = Registry.get("xn--q9jyb4c"); - assertThat(registry.getCreationTime()).isEqualTo(creationTime); - assertThat(registry.getUpdateAutoTimestamp().getTimestamp()).isIn(Range.closed(before, after)); - } - @Test public void testSuccess_tldStateTransitions() throws Exception { DateTime sunriseStart = now;