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 14:25:42 -07:00 committed by Ben McIlwain
parent a7256f5edd
commit 5d80f124ca
377 changed files with 2297 additions and 2373 deletions

View file

@ -62,7 +62,7 @@ public class DomainResourceTest extends EntityTestCase {
DomainResource domain;
@Before
public void setUp() throws Exception {
public void setUp() {
createTld("com");
Key<DomainResource> domainKey = Key.create(null, DomainResource.class, "4-COM");
Key<HostResource> hostKey = Key.create(persistResource(
@ -144,7 +144,7 @@ public class DomainResourceTest extends EntityTestCase {
}
@Test
public void testPersistence() throws Exception {
public void testPersistence() {
assertThat(loadByForeignKey(DomainResource.class, domain.getForeignKey(), clock.nowUtc()))
.isEqualTo(domain);
}
@ -211,7 +211,7 @@ public class DomainResourceTest extends EntityTestCase {
}
@Test
public void testEmptyTransferDataBecomesNull() throws Exception {
public void testEmptyTransferDataBecomesNull() {
DomainResource withNull =
newDomainResource("example.com").asBuilder().setTransferData(null).build();
DomainResource withEmpty = withNull.asBuilder().setTransferData(TransferData.EMPTY).build();