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
|
@ -39,7 +39,7 @@ public class DomainApplicationInfoCommandTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_invalidPhase() throws Exception {
|
||||
public void testFailure_invalidPhase() {
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
() ->
|
||||
|
@ -51,21 +51,21 @@ public class DomainApplicationInfoCommandTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_missingClientId() throws Exception {
|
||||
public void testFailure_missingClientId() {
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
() -> runCommand("--domain_name=example.tld", "--phase=sunrush", "--id=123"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_missingPhase() throws Exception {
|
||||
public void testFailure_missingPhase() {
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
() -> runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--id=123"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_missingApplicationId() throws Exception {
|
||||
public void testFailure_missingApplicationId() {
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
() ->
|
||||
|
@ -74,7 +74,7 @@ public class DomainApplicationInfoCommandTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_mainParameter() throws Exception {
|
||||
public void testFailure_mainParameter() {
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
() ->
|
||||
|
@ -87,7 +87,7 @@ public class DomainApplicationInfoCommandTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_unknownFlag() throws Exception {
|
||||
public void testFailure_unknownFlag() {
|
||||
assertThrows(
|
||||
ParameterException.class,
|
||||
() ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue