mirror of
https://github.com/google/nomulus
synced 2026-02-09 06:20:29 +00:00
Run automatic Java 8 conversion over codebase
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171174380
This commit is contained in:
@@ -34,6 +34,7 @@ import static google.registry.testing.DatastoreHelper.persistResource;
|
||||
import static google.registry.testing.DomainApplicationSubject.assertAboutApplications;
|
||||
import static google.registry.testing.EppExceptionSubject.assertAboutEppExceptions;
|
||||
import static google.registry.util.DateTimeUtils.START_OF_TIME;
|
||||
import static java.util.Comparator.comparing;
|
||||
import static org.joda.money.CurrencyUnit.EUR;
|
||||
import static org.joda.money.CurrencyUnit.USD;
|
||||
|
||||
@@ -124,7 +125,6 @@ import google.registry.tmch.TmchCertificateAuthority;
|
||||
import google.registry.tmch.TmchXmlSignature;
|
||||
import java.security.GeneralSecurityException;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import org.joda.money.CurrencyUnit;
|
||||
import org.joda.money.Money;
|
||||
@@ -205,11 +205,7 @@ public class DomainApplicationCreateFlowTest
|
||||
// Check that the domain application was created and persisted with a history entry.
|
||||
// We want the one with the newest creation time, but lacking an index we need this code.
|
||||
List<DomainApplication> applications = ofy().load().type(DomainApplication.class).list();
|
||||
Collections.sort(applications, new Comparator<DomainApplication>() {
|
||||
@Override
|
||||
public int compare(DomainApplication a, DomainApplication b) {
|
||||
return a.getCreationTime().compareTo(b.getCreationTime());
|
||||
}});
|
||||
Collections.sort(applications, comparing(DomainApplication::getCreationTime));
|
||||
assertAboutApplications().that(getLast(applications))
|
||||
.hasFullyQualifiedDomainName(getUniqueIdFromCommand()).and()
|
||||
.hasNumEncodedSignedMarks(sunriseApplication ? 1 : 0).and()
|
||||
|
||||
Reference in New Issue
Block a user