Add metadata map to LrpToken

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=135382828
This commit is contained in:
ctingue 2016-10-06 11:27:21 -07:00 committed by Ben McIlwain
parent 2cdd252919
commit 0ae5d10632
2 changed files with 25 additions and 4 deletions

View file

@ -20,6 +20,7 @@ import static google.registry.testing.DatastoreHelper.createTld;
import static google.registry.testing.DatastoreHelper.persistActiveDomainApplication;
import static google.registry.testing.DatastoreHelper.persistResource;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.googlecode.objectify.Key;
import google.registry.model.EntityTestCase;
@ -51,6 +52,7 @@ public class LrpTokenTest extends EntityTestCase {
.setAssignee("1:1020304")
.setToken("a0b1c2d3e4f5g6")
.setValidTlds(ImmutableSet.of("tld"))
.setMetadata(ImmutableMap.of("foo", "bar"))
.build());
redeemedToken = persistResource(
new LrpToken.Builder()
@ -59,6 +61,7 @@ public class LrpTokenTest extends EntityTestCase {
.setRedemptionHistoryEntry(
Key.create(applicationCreateHistoryEntry))
.setValidTlds(ImmutableSet.of("tld"))
.setMetadata(ImmutableMap.of("bar", "foo"))
.build());
}