mirror of
https://github.com/google/nomulus.git
synced 2025-07-04 18:23:26 +02:00
Statically import commonly used TldState enum values
Takes advantage of the fact that the default state of a TLD created in tests is GENERAL_AVAILABILITY. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228916164
This commit is contained in:
parent
eeb65b4610
commit
170980db2f
14 changed files with 62 additions and 63 deletions
|
@ -15,6 +15,7 @@
|
|||
package google.registry.flows.domain;
|
||||
|
||||
import static google.registry.model.eppoutput.CheckData.DomainCheck.create;
|
||||
import static google.registry.model.registry.Registry.TldState.PREDELEGATION;
|
||||
import static google.registry.model.registry.Registry.TldState.START_DATE_SUNRISE;
|
||||
import static google.registry.testing.DatastoreHelper.createTld;
|
||||
import static google.registry.testing.DatastoreHelper.createTlds;
|
||||
|
@ -377,7 +378,7 @@ public class DomainCheckFlowTest
|
|||
|
||||
@Test
|
||||
public void testFailure_predelegation() {
|
||||
createTld("tld", TldState.PREDELEGATION);
|
||||
createTld("tld", PREDELEGATION);
|
||||
EppException thrown = assertThrows(BadCommandForRegistryPhaseException.class, this::runFlow);
|
||||
assertAboutEppExceptions().that(thrown).marshalsToXml();
|
||||
}
|
||||
|
@ -917,9 +918,7 @@ public class DomainCheckFlowTest
|
|||
|
||||
@Test
|
||||
public void testIcannActivityReportField_getsLogged() throws Exception {
|
||||
createTld("com", TldState.GENERAL_AVAILABILITY);
|
||||
createTld("net", TldState.GENERAL_AVAILABILITY);
|
||||
createTld("org", TldState.GENERAL_AVAILABILITY);
|
||||
createTlds("com", "net", "org");
|
||||
setEppInput("domain_check.xml");
|
||||
runFlow();
|
||||
assertIcannReportingActivityFieldLogged("srs-dom-check");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue