mirror of
https://github.com/google/nomulus.git
synced 2025-05-21 03:39:36 +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
|
@ -83,7 +83,7 @@ public class CreateAnchorTenantCommandTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_mainParameter() throws Exception {
|
||||
public void testFailure_mainParameter() {
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
() ->
|
||||
|
@ -98,7 +98,7 @@ public class CreateAnchorTenantCommandTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_missingClientId() throws Exception {
|
||||
public void testFailure_missingClientId() {
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
() ->
|
||||
|
@ -110,7 +110,7 @@ public class CreateAnchorTenantCommandTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_unknownFlag() throws Exception {
|
||||
public void testFailure_unknownFlag() {
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
() ->
|
||||
|
@ -124,7 +124,7 @@ public class CreateAnchorTenantCommandTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_missingDomainName() throws Exception {
|
||||
public void testFailure_missingDomainName() {
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
() ->
|
||||
|
@ -137,7 +137,7 @@ public class CreateAnchorTenantCommandTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_missingContact() throws Exception {
|
||||
public void testFailure_missingContact() {
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
() ->
|
||||
|
@ -150,7 +150,7 @@ public class CreateAnchorTenantCommandTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_notAsSuperuser() throws Exception {
|
||||
public void testFailure_notAsSuperuser() {
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
() ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue