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 14:25:42 -07:00 committed by Ben McIlwain
parent a7256f5edd
commit 5d80f124ca
377 changed files with 2297 additions and 2373 deletions

View file

@ -50,12 +50,12 @@ public class ClaimsListShardTest {
public final InjectRule inject = new InjectRule();
@Before
public void before() throws Exception {
public void before() {
inject.setStaticField(ClaimsListShard.class, "shardSize", 10);
}
@Test
public void test_unshardedSaveFails() throws Exception {
public void test_unshardedSaveFails() {
assertThrows(
UnshardedSaveException.class,
() ->
@ -72,13 +72,13 @@ public class ClaimsListShardTest {
}
@Test
public void testGet_safelyLoadsEmptyClaimsList_whenNoShardsExist() throws Exception {
public void testGet_safelyLoadsEmptyClaimsList_whenNoShardsExist() {
assertThat(ClaimsListShard.get().labelsToKeys).isEmpty();
assertThat(ClaimsListShard.get().creationTime).isEqualTo(START_OF_TIME);
}
@Test
public void test_savesAndGets_withSharding() throws Exception {
public void test_savesAndGets_withSharding() {
// Create a ClaimsList that will need 4 shards to save.
Map<String, String> labelsToKeys = new HashMap<>();
for (int i = 0; i <= ClaimsListShard.shardSize * 3; i++) {