mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 16:37:13 +02: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:
parent
d5d29959b4
commit
9157930983
100 changed files with 3900 additions and 3192 deletions
|
@ -15,6 +15,7 @@
|
|||
package google.registry.flows.session;
|
||||
|
||||
import static google.registry.testing.DatastoreHelper.createTld;
|
||||
import static google.registry.testing.JUnitBackports.assertThrows;
|
||||
|
||||
import google.registry.flows.FlowTestCase;
|
||||
import google.registry.flows.FlowUtils.NotLoggedInException;
|
||||
|
@ -43,7 +44,6 @@ public class LogoutFlowTest extends FlowTestCase<LogoutFlow> {
|
|||
@Test
|
||||
public void testFailure() throws Exception {
|
||||
sessionMetadata.setClientId(null); // Turn off the implicit login
|
||||
thrown.expect(NotLoggedInException.class);
|
||||
runFlow();
|
||||
assertThrows(NotLoggedInException.class, () -> runFlow());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue