mirror of
https://github.com/google/nomulus.git
synced 2025-07-21 02:06:00 +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
|
@ -27,22 +27,22 @@ public class PhoneNumberParameterTest {
|
|||
private final OptionalPhoneNumberParameter instance = new OptionalPhoneNumberParameter();
|
||||
|
||||
@Test
|
||||
public void testConvert_e164() throws Exception {
|
||||
public void testConvert_e164() {
|
||||
assertThat(instance.convert("+1.2125550777")).hasValue("+1.2125550777");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testConvert_sillyString_throws() throws Exception {
|
||||
public void testConvert_sillyString_throws() {
|
||||
assertThrows(IllegalArgumentException.class, () -> instance.convert("foo"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testConvert_empty_returnsAbsent() throws Exception {
|
||||
public void testConvert_empty_returnsAbsent() {
|
||||
assertThat(instance.convert("")).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testConvert_nullString_returnsAbsent() throws Exception {
|
||||
public void testConvert_nullString_returnsAbsent() {
|
||||
assertThat(instance.convert("null")).isEmpty();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue