mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 16:30:12 +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
|
@ -73,19 +73,19 @@ public class EppResourceInputsTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_keyInputType_polymorphicBaseType() throws Exception {
|
||||
public void testSuccess_keyInputType_polymorphicBaseType() {
|
||||
createKeyInput(DomainBase.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_keyInputType_polymorphicSubclass() throws Exception {
|
||||
public void testFailure_keyInputType_polymorphicSubclass() {
|
||||
IllegalArgumentException thrown =
|
||||
assertThrows(IllegalArgumentException.class, () -> createKeyInput(DomainResource.class));
|
||||
assertThat(thrown).hasMessageThat().contains("non-polymorphic");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_keyInputType_noInheritanceBetweenTypes_eppResource() throws Exception {
|
||||
public void testFailure_keyInputType_noInheritanceBetweenTypes_eppResource() {
|
||||
IllegalArgumentException thrown =
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
|
@ -94,14 +94,14 @@ public class EppResourceInputsTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_entityInputTypesMayBePolymorphic() throws Exception {
|
||||
public void testSuccess_entityInputTypesMayBePolymorphic() {
|
||||
// Both polymorphic and not should work.
|
||||
createEntityInput(DomainBase.class);
|
||||
createEntityInput(DomainResource.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_entityInputType_noInheritanceBetweenTypes_eppResource() throws Exception {
|
||||
public void testFailure_entityInputType_noInheritanceBetweenTypes_eppResource() {
|
||||
IllegalArgumentException thrown =
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
|
@ -110,7 +110,7 @@ public class EppResourceInputsTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_entityInputType_noInheritanceBetweenTypes_subclasses() throws Exception {
|
||||
public void testFailure_entityInputType_noInheritanceBetweenTypes_subclasses() {
|
||||
IllegalArgumentException thrown =
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue