mirror of
https://github.com/google/nomulus.git
synced 2025-06-29 15:53:35 +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
|
@ -101,21 +101,21 @@ public class DomainClaimsCheckFlowTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_TooManyIds() throws Exception {
|
||||
public void testFailure_TooManyIds() {
|
||||
setEppInput("domain_check_claims_51.xml");
|
||||
EppException thrown = assertThrows(TooManyResourceChecksException.class, this::runFlow);
|
||||
assertAboutEppExceptions().that(thrown).marshalsToXml();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_tldDoesntExist() throws Exception {
|
||||
public void testFailure_tldDoesntExist() {
|
||||
setEppInput("domain_check_claims_bad_tld.xml");
|
||||
EppException thrown = assertThrows(TldDoesNotExistException.class, this::runFlow);
|
||||
assertAboutEppExceptions().that(thrown).marshalsToXml();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_notAuthorizedForTld() throws Exception {
|
||||
public void testFailure_notAuthorizedForTld() {
|
||||
persistResource(
|
||||
loadRegistrar("TheRegistrar").asBuilder().setAllowedTlds(ImmutableSet.of()).build());
|
||||
EppException thrown = assertThrows(NotAuthorizedForTldException.class, this::runFlow);
|
||||
|
@ -136,7 +136,7 @@ public class DomainClaimsCheckFlowTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_predelgation() throws Exception {
|
||||
public void testFailure_predelgation() {
|
||||
createTld("tld", TldState.PREDELEGATION);
|
||||
setEppInput("domain_check_claims.xml");
|
||||
EppException thrown = assertThrows(BadCommandForRegistryPhaseException.class, this::runFlow);
|
||||
|
@ -144,7 +144,7 @@ public class DomainClaimsCheckFlowTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_sunrise() throws Exception {
|
||||
public void testFailure_sunrise() {
|
||||
createTld("tld", TldState.SUNRISE);
|
||||
setEppInput("domain_check_claims.xml");
|
||||
EppException thrown = assertThrows(DomainClaimsCheckNotAllowedInSunrise.class, this::runFlow);
|
||||
|
@ -152,7 +152,7 @@ public class DomainClaimsCheckFlowTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_allocationToken() throws Exception {
|
||||
public void testFailure_allocationToken() {
|
||||
createTld("tld", TldState.SUNRISE);
|
||||
setEppInput("domain_check_claims_allocationtoken.xml");
|
||||
EppException thrown =
|
||||
|
@ -161,7 +161,7 @@ public class DomainClaimsCheckFlowTest
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_multipleTlds_oneHasEndedClaims() throws Exception {
|
||||
public void testFailure_multipleTlds_oneHasEndedClaims() {
|
||||
createTlds("tld1", "tld2");
|
||||
persistResource(
|
||||
Registry.get("tld2").asBuilder().setClaimsPeriodEnd(clock.nowUtc().minusMillis(1)).build());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue