Remove more unnecessary "throws" declarations

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=201243722
This commit is contained in:
mcilwain 2018-06-19 14:40:42 -07:00 committed by Ben McIlwain
parent 47322b7fcd
commit ad73f3d167
61 changed files with 318 additions and 331 deletions

View file

@ -94,7 +94,7 @@ public class TimedTransitionPropertyTest {
}
@Test
public void testSuccess_getValueAtTime() throws Exception {
public void testSuccess_getValueAtTime() {
testGetValueAtTime(timedString);
}
@ -110,7 +110,7 @@ public class TimedTransitionPropertyTest {
}
@Test
public void testSuccess_simulatedLoad() throws Exception {
public void testSuccess_simulatedLoad() {
// Just for testing, don't extract transitions from a TimedTransitionProperty in real code.
Set<Map.Entry<DateTime, StringTimedTransition>> transitions = timedString.entrySet();
timedString = forMapify("0", StringTimedTransition.class);

View file

@ -82,7 +82,7 @@ public class OfyFilterTest {
/** The filter should register all types for us. */
@Test
public void testKeyCreateAfterFilter() throws Exception {
public void testKeyCreateAfterFilter() {
new OfyFilter().init(null);
ContactResource contact = newContactResource("contact1234");
Key.create(contact);

View file

@ -117,7 +117,7 @@ public class PremiumListUtilsTest {
}
@Test
public void testSave_largeNumberOfEntries_succeeds() throws Exception {
public void testSave_largeNumberOfEntries_succeeds() {
PremiumList premiumList = persistHumongousPremiumList("tld", 2500);
assertThat(loadPremiumListEntries(premiumList)).hasSize(2500);
assertThat(getPremiumPrice("7", Registry.get("tld"))).hasValue(Money.parse("USD 100"));
@ -258,7 +258,7 @@ public class PremiumListUtilsTest {
}
@Test
public void testGetPremiumPrice_allLabelsAreNonPremium_whenNotInList() throws Exception {
public void testGetPremiumPrice_allLabelsAreNonPremium_whenNotInList() {
assertThat(getPremiumPrice("blah", Registry.get("tld"))).isEmpty();
assertThat(getPremiumPrice("slinge", Registry.get("tld"))).isEmpty();
assertMetricOutcomeCount(2, BLOOM_FILTER_NEGATIVE);