mirror of
https://github.com/google/nomulus.git
synced 2025-08-06 09:45:19 +02:00
Remove unnecessary "throws" declarations
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201058582
This commit is contained in:
parent
a7256f5edd
commit
5d80f124ca
377 changed files with 2297 additions and 2373 deletions
|
@ -76,7 +76,7 @@ public class TldFanoutActionTest {
|
|||
return params.build();
|
||||
}
|
||||
|
||||
private void run(ImmutableListMultimap<String, String> params) throws Exception {
|
||||
private void run(ImmutableListMultimap<String, String> params) {
|
||||
TldFanoutAction action = new TldFanoutAction();
|
||||
action.params = params;
|
||||
action.endpoint = getLast(params.get("endpoint"));
|
||||
|
@ -94,7 +94,7 @@ public class TldFanoutActionTest {
|
|||
}
|
||||
|
||||
@Before
|
||||
public void before() throws Exception {
|
||||
public void before() {
|
||||
createTlds("com", "net", "org", "example");
|
||||
persistResource(Registry.get("example").asBuilder().setTldType(TldType.TEST).build());
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ public class TldFanoutActionTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_noTlds() throws Exception {
|
||||
public void testFailure_noTlds() {
|
||||
assertThrows(IllegalArgumentException.class, () -> run(getParamsMap()));
|
||||
}
|
||||
|
||||
|
@ -188,7 +188,7 @@ public class TldFanoutActionTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_runInEmptyAndTest() throws Exception {
|
||||
public void testFailure_runInEmptyAndTest() {
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
() ->
|
||||
|
@ -199,7 +199,7 @@ public class TldFanoutActionTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_runInEmptyAndReal() throws Exception {
|
||||
public void testFailure_runInEmptyAndReal() {
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
() ->
|
||||
|
@ -210,7 +210,7 @@ public class TldFanoutActionTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_runInEmptyAndExclude() throws Exception {
|
||||
public void testFailure_runInEmptyAndExclude() {
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
() ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue