mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 17:37:13 +02:00
Add a missing test to ContactUpdateFlow
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133000632
This commit is contained in:
parent
68cdd04124
commit
04fd14995e
3 changed files with 49 additions and 0 deletions
|
@ -26,6 +26,7 @@ import com.google.common.collect.ImmutableSet;
|
|||
import google.registry.flows.ResourceFlowTestCase;
|
||||
import google.registry.flows.ResourceFlowUtils.ResourceNotOwnedException;
|
||||
import google.registry.flows.ResourceMutateFlow.ResourceToMutateDoesNotExistException;
|
||||
import google.registry.flows.ResourceUpdateFlow.AddRemoveSameValueEppException;
|
||||
import google.registry.flows.ResourceUpdateFlow.ResourceHasClientUpdateProhibitedException;
|
||||
import google.registry.flows.ResourceUpdateFlow.StatusNotClientSettableException;
|
||||
import google.registry.flows.SingleResourceFlow.ResourceStatusProhibitsOperationException;
|
||||
|
@ -258,4 +259,12 @@ public class ContactUpdateFlowTest
|
|||
persistActiveContact(getUniqueIdFromCommand());
|
||||
runFlow();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_addRemoveSameValue() throws Exception {
|
||||
thrown.expect(AddRemoveSameValueEppException.class);
|
||||
setEppInput("contact_update_add_remove_same.xml");
|
||||
persistActiveContact(getUniqueIdFromCommand());
|
||||
runFlow();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue