mirror of
https://github.com/google/nomulus
synced 2026-09-13 11:34:31 +00:00
Remove unnecessary "throws" declarations
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=201058582
This commit is contained in:
@@ -57,7 +57,7 @@ public class PollMessageExternalKeyConverterTest {
|
||||
FakeClock clock = new FakeClock(DateTime.parse("2007-07-07T01:01:01Z"));
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
public void setUp() {
|
||||
inject.setStaticField(Ofy.class, "clock", clock);
|
||||
createTld("foobar");
|
||||
historyEntry = persistResource(new HistoryEntry.Builder()
|
||||
@@ -129,7 +129,7 @@ public class PollMessageExternalKeyConverterTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_invalidEppResourceTypeId() throws Exception {
|
||||
public void testFailure_invalidEppResourceTypeId() {
|
||||
// Populate the testdata correctly as for 1-2-FOOBAR-4-5 so we know that the only thing that
|
||||
// is wrong here is the EppResourceTypeId.
|
||||
testSuccess_domain();
|
||||
@@ -139,14 +139,14 @@ public class PollMessageExternalKeyConverterTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_tooFewComponentParts() throws Exception {
|
||||
public void testFailure_tooFewComponentParts() {
|
||||
assertThrows(
|
||||
PollMessageExternalKeyParseException.class,
|
||||
() -> parsePollMessageExternalId("1-3-EXAMPLE"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_tooManyComponentParts() throws Exception {
|
||||
public void testFailure_tooManyComponentParts() {
|
||||
assertThrows(
|
||||
PollMessageExternalKeyParseException.class,
|
||||
() -> parsePollMessageExternalId("1-3-EXAMPLE-4-5-2007-2009"));
|
||||
@@ -154,7 +154,7 @@ public class PollMessageExternalKeyConverterTest {
|
||||
|
||||
|
||||
@Test
|
||||
public void testFailure_nonNumericIds() throws Exception {
|
||||
public void testFailure_nonNumericIds() {
|
||||
assertThrows(
|
||||
PollMessageExternalKeyParseException.class,
|
||||
() -> parsePollMessageExternalId("A-B-FOOBAR-D-E-F"));
|
||||
|
||||
Reference in New Issue
Block a user