mirror of
https://github.com/google/nomulus
synced 2026-09-20 06:54:43 +00:00
Remove unnecessary "throws" declarations
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201058582
This commit is contained in:
@@ -31,12 +31,12 @@ public class EnumParameterTest {
|
||||
private final TldStateParameter instance = new TldStateParameter();
|
||||
|
||||
@Test
|
||||
public void testSuccess_convertEnum() throws Exception {
|
||||
public void testSuccess_convertEnum() {
|
||||
assertThat(instance.convert("PREDELEGATION")).isEqualTo(TldState.PREDELEGATION);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_badValue() throws Exception {
|
||||
public void testFailure_badValue() {
|
||||
IllegalArgumentException thrown =
|
||||
assertThrows(IllegalArgumentException.class, () -> instance.convert("GENERAL_SUNRUSH"));
|
||||
assertThat(thrown)
|
||||
|
||||
Reference in New Issue
Block a user