mirror of
https://github.com/google/nomulus.git
synced 2025-07-09 12:43:24 +02:00
Unify two exceptions that mean the same thing
These were historically separate due to the old flow structure, but now they should be one exception. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133984858
This commit is contained in:
parent
21a98b899c
commit
096877f03e
55 changed files with 163 additions and 211 deletions
|
@ -26,7 +26,7 @@ import com.google.common.collect.ImmutableSet;
|
|||
import com.google.common.collect.ImmutableSortedMap;
|
||||
import com.google.common.collect.Range;
|
||||
import com.googlecode.objectify.Key;
|
||||
import google.registry.flows.ResourceMutateFlow.ResourceToMutateDoesNotExistException;
|
||||
import google.registry.flows.ResourceMutateFlow.ResourceDoesNotExistException;
|
||||
import google.registry.model.domain.DomainResource;
|
||||
import google.registry.model.domain.GracePeriod;
|
||||
import google.registry.model.domain.TestExtraLogicManager;
|
||||
|
@ -152,7 +152,7 @@ public class TldSpecificLogicProxyTest extends ShardableTestCase {
|
|||
|
||||
@Test
|
||||
public void test_extraLogic_renewPrice_noDomain() throws Exception {
|
||||
thrown.expect(ResourceToMutateDoesNotExistException.class);
|
||||
thrown.expect(ResourceDoesNotExistException.class);
|
||||
TldSpecificLogicProxy.getRenewPrice(
|
||||
Registry.get("test"), "renew--13.test", "clientId", clock.nowUtc(), 1, null);
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ public class TldSpecificLogicProxyTest extends ShardableTestCase {
|
|||
|
||||
@Test
|
||||
public void test_extraLogic_restorePrice_noDomain() throws Exception {
|
||||
thrown.expect(ResourceToMutateDoesNotExistException.class);
|
||||
thrown.expect(ResourceDoesNotExistException.class);
|
||||
TldSpecificLogicProxy.getRestorePrice(
|
||||
Registry.get("test"), "renew-13.test", "clientId", clock.nowUtc(), null);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue