mirror of
https://github.com/google/nomulus
synced 2026-07-30 03:52:47 +00:00
Remove unnecessary "throws" declarations
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201058582
This commit is contained in:
@@ -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,
|
||||
() ->
|
||||
|
||||
Reference in New Issue
Block a user