mirror of
https://github.com/google/nomulus
synced 2026-08-31 13:17:02 +00:00
Manually migrate some ExceptionRules to Junit 4.13 style asserts
These testing helper functions can't be handled by the automatic refactoring tool because they're taking in expected exception details as parameters. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=178832406
This commit is contained in:
@@ -33,6 +33,7 @@ import static google.registry.testing.DatastoreHelper.persistReservedList;
|
||||
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.testing.JUnitBackports.assertThrows;
|
||||
import static google.registry.util.DateTimeUtils.START_OF_TIME;
|
||||
import static java.util.Comparator.comparing;
|
||||
import static org.joda.money.CurrencyUnit.EUR;
|
||||
@@ -1736,8 +1737,7 @@ public class DomainApplicationCreateFlowTest
|
||||
setEppInput("domain_create_sunrise_signed_mark_uppercase.xml");
|
||||
eppLoader.replaceAll("TEST-VALIDATE.tld", domainName);
|
||||
persistContactsAndHosts();
|
||||
thrown.expect(exception);
|
||||
runFlow();
|
||||
assertThrows(exception, this::runFlow);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user