mirror of
https://github.com/google/nomulus
synced 2026-08-21 06:36:15 +00:00
Remove unnecessary "throws" declarations
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201058582
This commit is contained in:
@@ -93,7 +93,7 @@ public class CreateCreditCommandTest extends CommandTestCase<CreateCreditCommand
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_nonexistentParentRegistrar() throws Exception {
|
||||
public void testFailure_nonexistentParentRegistrar() {
|
||||
IllegalArgumentException thrown =
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
@@ -108,7 +108,7 @@ public class CreateCreditCommandTest extends CommandTestCase<CreateCreditCommand
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_nonexistentTld() throws Exception {
|
||||
public void testFailure_nonexistentTld() {
|
||||
IllegalArgumentException thrown =
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
@@ -123,7 +123,7 @@ public class CreateCreditCommandTest extends CommandTestCase<CreateCreditCommand
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_nonexistentType() throws Exception {
|
||||
public void testFailure_nonexistentType() {
|
||||
ParameterException thrown =
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
@@ -138,7 +138,7 @@ public class CreateCreditCommandTest extends CommandTestCase<CreateCreditCommand
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_negativeBalance() throws Exception {
|
||||
public void testFailure_negativeBalance() {
|
||||
IllegalArgumentException thrown =
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
@@ -153,7 +153,7 @@ public class CreateCreditCommandTest extends CommandTestCase<CreateCreditCommand
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_noRegistrar() throws Exception {
|
||||
public void testFailure_noRegistrar() {
|
||||
ParameterException thrown =
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
@@ -167,7 +167,7 @@ public class CreateCreditCommandTest extends CommandTestCase<CreateCreditCommand
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_noType() throws Exception {
|
||||
public void testFailure_noType() {
|
||||
ParameterException thrown =
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
@@ -181,7 +181,7 @@ public class CreateCreditCommandTest extends CommandTestCase<CreateCreditCommand
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_noTld() throws Exception {
|
||||
public void testFailure_noTld() {
|
||||
ParameterException thrown =
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
@@ -195,7 +195,7 @@ public class CreateCreditCommandTest extends CommandTestCase<CreateCreditCommand
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_noBalance() throws Exception {
|
||||
public void testFailure_noBalance() {
|
||||
ParameterException thrown =
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
@@ -209,7 +209,7 @@ public class CreateCreditCommandTest extends CommandTestCase<CreateCreditCommand
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_noEffectiveTime() throws Exception {
|
||||
public void testFailure_noEffectiveTime() {
|
||||
ParameterException thrown =
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
|
||||
Reference in New Issue
Block a user