mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 08:27:14 +02:00
Add success exception for TestExtraLogicManager
TestExtraLogicManager is pretty kludgy, and should be replaced with injection, mocking, etc. But in the meantime, using a dedicated error to signal its success, rather than IllegalArgumentException as was done before, at least makes things a little easier to follow. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=134832315
This commit is contained in:
parent
237e588d6c
commit
3d5ab8d068
7 changed files with 36 additions and 11 deletions
|
@ -57,6 +57,7 @@ import google.registry.model.billing.BillingEvent.Reason;
|
|||
import google.registry.model.domain.DomainResource;
|
||||
import google.registry.model.domain.GracePeriod;
|
||||
import google.registry.model.domain.TestExtraLogicManager;
|
||||
import google.registry.model.domain.TestExtraLogicManager.TestExtraLogicManagerSuccessException;
|
||||
import google.registry.model.domain.rgp.GracePeriodStatus;
|
||||
import google.registry.model.eppcommon.StatusValue;
|
||||
import google.registry.model.poll.PollMessage;
|
||||
|
@ -556,7 +557,7 @@ public class DomainRestoreRequestFlowTest extends
|
|||
public void testSuccess_flags() throws Exception {
|
||||
setEppInput("domain_update_restore_request_flags.xml");
|
||||
persistPendingDeleteDomain();
|
||||
thrown.expect(IllegalArgumentException.class, "restored");
|
||||
thrown.expect(TestExtraLogicManagerSuccessException.class, "restored");
|
||||
runFlow();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue