mirror of
https://github.com/google/nomulus.git
synced 2025-07-03 01:33:29 +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
|
@ -14,6 +14,7 @@
|
|||
|
||||
package google.registry.flows.domain;
|
||||
|
||||
import static google.registry.model.registry.Registry.TldState.PREDELEGATION;
|
||||
import static google.registry.testing.DatastoreHelper.assertNoBillingEvents;
|
||||
import static google.registry.testing.DatastoreHelper.createTld;
|
||||
import static google.registry.testing.DatastoreHelper.createTlds;
|
||||
|
@ -130,7 +131,7 @@ public class DomainClaimsCheckFlowTest
|
|||
|
||||
@Test
|
||||
public void testFailure_predelgation() {
|
||||
createTld("tld", TldState.PREDELEGATION);
|
||||
createTld("tld", PREDELEGATION);
|
||||
setEppInput("domain_check_claims.xml");
|
||||
EppException thrown = assertThrows(BadCommandForRegistryPhaseException.class, this::runFlow);
|
||||
assertAboutEppExceptions().that(thrown).marshalsToXml();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue