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:
@@ -41,7 +41,7 @@ public class SignedMarkRevocationListTest {
|
||||
private final FakeClock clock = new FakeClock(DateTime.parse("2013-01-01T00:00:00Z"));
|
||||
|
||||
@Test
|
||||
public void testUnshardedSaveFails() throws Exception {
|
||||
public void testUnshardedSaveFails() {
|
||||
// Our @Entity's @OnSave method will notice that this shouldn't be saved.
|
||||
assertThrows(
|
||||
SignedMarkRevocationList.UnshardedSaveException.class,
|
||||
@@ -59,14 +59,14 @@ public class SignedMarkRevocationListTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEmpty() throws Exception {
|
||||
public void testEmpty() {
|
||||
// When Datastore is empty, it should give us an empty thing.
|
||||
assertThat(SignedMarkRevocationList.get())
|
||||
.isEqualTo(SignedMarkRevocationList.create(START_OF_TIME, ImmutableMap.of()));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSharding2() throws Exception {
|
||||
public void testSharding2() {
|
||||
final int rows = SHARD_SIZE + 1;
|
||||
// Create a SignedMarkRevocationList that will need 2 shards to save.
|
||||
ImmutableMap.Builder<String, DateTime> revokes = new ImmutableMap.Builder<>();
|
||||
@@ -82,7 +82,7 @@ public class SignedMarkRevocationListTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSharding4() throws Exception {
|
||||
public void testSharding4() {
|
||||
final int rows = SHARD_SIZE * 3 + 1;
|
||||
// Create a SignedMarkRevocationList that will need 4 shards to save.
|
||||
ImmutableMap.Builder<String, DateTime> revokes = new ImmutableMap.Builder<>();
|
||||
@@ -109,7 +109,7 @@ public class SignedMarkRevocationListTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_isSmdRevoked_null() throws Exception {
|
||||
public void test_isSmdRevoked_null() {
|
||||
assertThrows(
|
||||
NullPointerException.class,
|
||||
() ->
|
||||
@@ -118,7 +118,7 @@ public class SignedMarkRevocationListTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_isSmdRevoked_garbage() throws Exception {
|
||||
public void test_isSmdRevoked_garbage() {
|
||||
SignedMarkRevocationList smdrl = createSaveGetHelper(SHARD_SIZE + 1);
|
||||
assertThat(smdrl.getCreationTime()).isEqualTo(clock.nowUtc());
|
||||
assertThat(smdrl.isSmdRevoked("rofl", clock.nowUtc())).isFalse();
|
||||
@@ -126,7 +126,7 @@ public class SignedMarkRevocationListTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_getCreationTime() throws Exception {
|
||||
public void test_getCreationTime() {
|
||||
clock.setTo(DateTime.parse("2000-01-01T00:00:00Z"));
|
||||
createSaveGetHelper(5);
|
||||
assertThat(SignedMarkRevocationList.get().getCreationTime())
|
||||
@@ -137,7 +137,7 @@ public class SignedMarkRevocationListTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_isSmdRevoked_present() throws Exception {
|
||||
public void test_isSmdRevoked_present() {
|
||||
final int rows = SHARD_SIZE + 1;
|
||||
SignedMarkRevocationList smdrl = createSaveGetHelper(rows);
|
||||
assertThat(smdrl.isSmdRevoked("0", clock.nowUtc())).isTrue();
|
||||
@@ -146,7 +146,7 @@ public class SignedMarkRevocationListTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_isSmdRevoked_future() throws Exception {
|
||||
public void test_isSmdRevoked_future() {
|
||||
final int rows = SHARD_SIZE;
|
||||
SignedMarkRevocationList smdrl = createSaveGetHelper(rows);
|
||||
clock.advanceOneMilli();
|
||||
@@ -156,7 +156,7 @@ public class SignedMarkRevocationListTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_isSmdRevoked_past() throws Exception {
|
||||
public void test_isSmdRevoked_past() {
|
||||
final int rows = SHARD_SIZE;
|
||||
SignedMarkRevocationList smdrl = createSaveGetHelper(rows);
|
||||
clock.setTo(clock.nowUtc().minusMillis(1));
|
||||
|
||||
Reference in New Issue
Block a user