mirror of
https://github.com/google/nomulus
synced 2026-09-25 17:34:20 +00:00
Automatically refactor more exception testing to use new JUnit rules
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=179072309
This commit is contained in:
@@ -20,6 +20,7 @@ import static google.registry.testing.DatastoreHelper.newDomainResource;
|
||||
import static google.registry.testing.DatastoreHelper.persistActiveContact;
|
||||
import static google.registry.testing.DatastoreHelper.persistActiveHost;
|
||||
import static google.registry.testing.DatastoreHelper.persistResource;
|
||||
import static google.registry.testing.JUnitBackports.assertThrows;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import google.registry.flows.FlowTestCase;
|
||||
@@ -220,7 +221,6 @@ public class PollRequestFlowTest extends FlowTestCase<PollRequestFlow> {
|
||||
public void testFailure_messageIdProvided() throws Exception {
|
||||
setEppInput("poll_with_id.xml");
|
||||
assertTransactionalFlow(false);
|
||||
thrown.expect(UnexpectedMessageIdException.class);
|
||||
runFlow();
|
||||
assertThrows(UnexpectedMessageIdException.class, () -> runFlow());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user