Add a missing test to ContactUpdateFlow

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=133000632
This commit is contained in:
cgoldfeder 2016-09-13 08:08:20 -07:00 committed by Ben McIlwain
parent 68cdd04124
commit 04fd14995e
3 changed files with 49 additions and 0 deletions

View file

@ -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();
}
}