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
@@ -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++) {
@@ -29,7 +29,7 @@ public class TmchCrlTest {
@Rule public final AppEngineRule appEngine = AppEngineRule.builder().withDatastore().build();
@Test
public void testSuccess() throws Exception {
public void testSuccess() {
assertThat(TmchCrl.get()).isNull();
TmchCrl.set("lolcat", "http://lol.cat");
assertThat(TmchCrl.get().getCrl()).isEqualTo("lolcat");