Remove unnecessary "throws" declarations

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=201058582
This commit is contained in:
mcilwain
2018-06-18 18:17:56 -04:00
committed by Ben McIlwain
parent a7256f5edd
commit 5d80f124ca
377 changed files with 2297 additions and 2373 deletions
@@ -140,17 +140,17 @@ public class WhoisReaderTest {
}
@Test
public void testTooManyArgsDomainLookup() throws Exception {
public void testTooManyArgsDomainLookup() {
assertThrows(WhoisException.class, () -> readCommand("domain example.tld foo.bar"));
}
@Test
public void testTooFewArgsDomainLookup() throws Exception {
public void testTooFewArgsDomainLookup() {
assertThrows(WhoisException.class, () -> readCommand("domain"));
}
@Test
public void testIllegalArgDomainLookup() throws Exception {
public void testIllegalArgDomainLookup() {
assertThrows(WhoisException.class, () -> readCommand("domain 1.1"));
}
@@ -212,17 +212,17 @@ public class WhoisReaderTest {
}
@Test
public void testTooManyArgsNameserverLookup() throws Exception {
public void testTooManyArgsNameserverLookup() {
assertThrows(WhoisException.class, () -> readCommand("nameserver ns.example.tld foo.bar"));
}
@Test
public void testTooFewArgsNameserverLookup() throws Exception {
public void testTooFewArgsNameserverLookup() {
assertThrows(WhoisException.class, () -> readCommand("nameserver"));
}
@Test
public void testIllegalArgNameserverLookup() throws Exception {
public void testIllegalArgNameserverLookup() {
assertThrows(WhoisException.class, () -> readCommand("nameserver 1.1"));
}
@@ -252,7 +252,7 @@ public class WhoisReaderTest {
}
@Test
public void testRegistrarLookupNoArgs() throws Exception {
public void testRegistrarLookupNoArgs() {
assertThrows(WhoisException.class, () -> readCommand("registrar"));
}
@@ -302,7 +302,7 @@ public class WhoisReaderTest {
}
@Test
public void testNameserverLookupByIpTooManyArgs() throws Exception {
public void testNameserverLookupByIpTooManyArgs() {
assertThrows(WhoisException.class, () -> readCommand("nameserver 43.34.12.213 43.34.12.213"));
}
@@ -331,7 +331,7 @@ public class WhoisReaderTest {
}
@Test
public void testNoArgs() throws Exception {
public void testNoArgs() {
assertThrows(WhoisException.class, () -> readCommand(""));
}