mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +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
|
@ -17,11 +17,11 @@ package google.registry.xml;
|
|||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static org.joda.time.DateTimeZone.UTC;
|
||||
|
||||
import google.registry.testing.ExceptionRule;
|
||||
import org.joda.time.DateTime;
|
||||
import org.joda.time.DateTimeZone;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.rules.ExpectedException;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
||||
|
@ -30,7 +30,7 @@ import org.junit.runners.JUnit4;
|
|||
public class UtcDateTimeAdapterTest {
|
||||
|
||||
@Rule
|
||||
public final ExpectedException thrown = ExpectedException.none();
|
||||
public final ExceptionRule thrown = new ExceptionRule();
|
||||
|
||||
@Test
|
||||
public void testMarshal() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue