mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 03:58: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
|
@ -30,7 +30,7 @@ import org.junit.Test;
|
|||
public class AllocationTokenTest extends EntityTestCase {
|
||||
|
||||
@Test
|
||||
public void testPersistence() throws Exception {
|
||||
public void testPersistence() {
|
||||
AllocationToken token =
|
||||
persistResource(
|
||||
new AllocationToken.Builder()
|
||||
|
@ -52,7 +52,7 @@ public class AllocationTokenTest extends EntityTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testCreationTime_autoPopulates() throws Exception {
|
||||
public void testCreationTime_autoPopulates() {
|
||||
AllocationToken tokenBeforePersisting =
|
||||
new AllocationToken.Builder().setToken("abc123").build();
|
||||
assertThat(tokenBeforePersisting.getCreationTime()).isEmpty();
|
||||
|
@ -61,7 +61,7 @@ public class AllocationTokenTest extends EntityTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testSetCreationTime_cantCallMoreThanOnce() throws Exception {
|
||||
public void testSetCreationTime_cantCallMoreThanOnce() {
|
||||
AllocationToken.Builder builder =
|
||||
new AllocationToken.Builder()
|
||||
.setToken("foobar")
|
||||
|
@ -74,7 +74,7 @@ public class AllocationTokenTest extends EntityTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testSetToken_cantCallMoreThanOnce() throws Exception {
|
||||
public void testSetToken_cantCallMoreThanOnce() {
|
||||
AllocationToken.Builder builder = new AllocationToken.Builder().setToken("foobar");
|
||||
IllegalStateException thrown =
|
||||
assertThrows(IllegalStateException.class, () -> builder.setToken("barfoo"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue