mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 16:37:13 +02:00
Remove temporary @OnLoad used for setting period in DomainApplication
Now that the registration period has been added to DomainApplication, we can remove this @OnLoad that was populating it for objects that were missing the period. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=159464438
This commit is contained in:
parent
fc78fd7d4a
commit
fd1051f90a
4 changed files with 2 additions and 182 deletions
|
@ -275,21 +275,11 @@ public final class FullFieldsTestEntityHelper {
|
|||
Period period,
|
||||
String reason,
|
||||
DateTime modificationTime) {
|
||||
return makeHistoryEntry(resource, type, period, reason, modificationTime, "<xml></xml>");
|
||||
}
|
||||
|
||||
public static HistoryEntry makeHistoryEntry(
|
||||
EppResource resource,
|
||||
HistoryEntry.Type type,
|
||||
Period period,
|
||||
String reason,
|
||||
DateTime modificationTime,
|
||||
String xml) {
|
||||
HistoryEntry.Builder builder = new HistoryEntry.Builder()
|
||||
.setParent(resource)
|
||||
.setType(type)
|
||||
.setPeriod(period)
|
||||
.setXmlBytes(xml.getBytes(UTF_8))
|
||||
.setXmlBytes("<xml></xml>".getBytes(UTF_8))
|
||||
.setModificationTime(modificationTime)
|
||||
.setClientId("foo")
|
||||
.setTrid(Trid.create("ABC-123", "server-trid"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue