mirror of
https://github.com/google/nomulus
synced 2026-09-29 03:05:42 +00:00
Remove unnecessary "throws" declarations
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201058582
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user