mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 20:18:34 +02:00
Remove unnecessary "throws" declarations
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201058582
This commit is contained in:
parent
a7256f5edd
commit
5d80f124ca
377 changed files with 2297 additions and 2373 deletions
|
@ -91,7 +91,7 @@ public final class LockHandlerImplTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testLockSucceeds() throws Exception {
|
||||
public void testLockSucceeds() {
|
||||
Lock lock = mock(Lock.class);
|
||||
CountingCallable countingCallable = new CountingCallable();
|
||||
assertThat(executeWithLocks(countingCallable, lock)).isTrue();
|
||||
|
@ -100,7 +100,7 @@ public final class LockHandlerImplTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testLockSucceeds_uncheckedException() throws Exception {
|
||||
public void testLockSucceeds_uncheckedException() {
|
||||
Lock lock = mock(Lock.class);
|
||||
Exception expectedException = new RuntimeException("test");
|
||||
RuntimeException exception =
|
||||
|
@ -129,7 +129,7 @@ public final class LockHandlerImplTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testLockSucceeds_checkedException() throws Exception {
|
||||
public void testLockSucceeds_checkedException() {
|
||||
Lock lock = mock(Lock.class);
|
||||
Exception expectedException = new Exception("test");
|
||||
RuntimeException exception =
|
||||
|
@ -141,7 +141,7 @@ public final class LockHandlerImplTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testLockFailed() throws Exception {
|
||||
public void testLockFailed() {
|
||||
Lock lock = null;
|
||||
CountingCallable countingCallable = new CountingCallable();
|
||||
assertThat(executeWithLocks(countingCallable, lock)).isFalse();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue