mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 17:37:13 +02:00
Normalize expected exception handling in tests
This removes exception rules that aren't used and switches over existing uses of ExceptedException to ExceptionRule when possible. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=129013329
This commit is contained in:
parent
60fc27646a
commit
9e65acc937
11 changed files with 14 additions and 29 deletions
|
@ -35,7 +35,6 @@ import google.registry.testing.AppEngineRule;
|
|||
import org.junit.Before;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.rules.ExpectedException;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.Matchers;
|
||||
import org.mockito.Mock;
|
||||
|
@ -45,9 +44,6 @@ import org.mockito.runners.MockitoJUnitRunner;
|
|||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class MetricsExportActionTest {
|
||||
|
||||
@Rule
|
||||
public ExpectedException thrown = ExpectedException.none();
|
||||
|
||||
@Rule
|
||||
public final AppEngineRule appEngine = AppEngineRule.builder()
|
||||
.withDatastore()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue