mirror of
https://github.com/google/nomulus.git
synced 2025-08-05 17:28:25 +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
|
@ -123,7 +123,7 @@ public class BrdaCopyActionTest extends ShardableTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testRun() throws Exception {
|
||||
public void testRun() {
|
||||
action.run();
|
||||
assertThat(gcsUtils.existsAndNotEmpty(STAGE_FILE)).isTrue();
|
||||
assertThat(gcsUtils.existsAndNotEmpty(RYDE_FILE)).isTrue();
|
||||
|
|
|
@ -68,12 +68,12 @@ public class ContactResourceToXjcConverterTest {
|
|||
.build();
|
||||
|
||||
@Before
|
||||
public void before() throws Exception {
|
||||
public void before() {
|
||||
createTld("xn--q9jyb4c");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testConvertContact() throws Exception {
|
||||
public void testConvertContact() {
|
||||
ContactResource contact = makeContactResource();
|
||||
XjcRdeContact bean = ContactResourceToXjcConverter.convertContact(contact);
|
||||
|
||||
|
@ -234,7 +234,7 @@ public class ContactResourceToXjcConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertContact_absentVoiceAndFaxNumbers() throws Exception {
|
||||
public void testConvertContact_absentVoiceAndFaxNumbers() {
|
||||
XjcRdeContact bean = ContactResourceToXjcConverter.convertContact(
|
||||
makeContactResource().asBuilder()
|
||||
.setVoiceNumber(null)
|
||||
|
@ -245,7 +245,7 @@ public class ContactResourceToXjcConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertContact_absentDisclose() throws Exception {
|
||||
public void testConvertContact_absentDisclose() {
|
||||
XjcRdeContact bean = ContactResourceToXjcConverter.convertContact(
|
||||
makeContactResource().asBuilder()
|
||||
.setDisclose(null)
|
||||
|
@ -254,7 +254,7 @@ public class ContactResourceToXjcConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertContact_absentTransferData() throws Exception {
|
||||
public void testConvertContact_absentTransferData() {
|
||||
XjcRdeContact bean = ContactResourceToXjcConverter.convertContact(
|
||||
makeContactResource().asBuilder()
|
||||
.setLastTransferTime(null)
|
||||
|
@ -270,7 +270,7 @@ public class ContactResourceToXjcConverterTest {
|
|||
wrapDeposit(bean).marshal(new ByteArrayOutputStream(), UTF_8);
|
||||
}
|
||||
|
||||
private static XjcRdeDeposit wrapDeposit(XjcRdeContact contact) throws Exception {
|
||||
private static XjcRdeDeposit wrapDeposit(XjcRdeContact contact) {
|
||||
XjcRdeDeposit deposit = new XjcRdeDeposit();
|
||||
deposit.setId("984302");
|
||||
deposit.setType(XjcRdeDepositTypeType.FULL);
|
||||
|
|
|
@ -94,12 +94,12 @@ public class DomainResourceToXjcConverterTest {
|
|||
private final FakeClock clock = new FakeClock(now);
|
||||
|
||||
@Before
|
||||
public void before() throws Exception {
|
||||
public void before() {
|
||||
createTld("xn--q9jyb4c");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testConvertThick() throws Exception {
|
||||
public void testConvertThick() {
|
||||
XjcRdeDomain bean =
|
||||
DomainResourceToXjcConverter.convertDomain(makeDomainResource(clock), RdeMode.FULL);
|
||||
|
||||
|
@ -182,7 +182,7 @@ public class DomainResourceToXjcConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertThin() throws Exception {
|
||||
public void testConvertThin() {
|
||||
XjcRdeDomain bean =
|
||||
DomainResourceToXjcConverter.convertDomain(makeDomainResource(clock), RdeMode.THIN);
|
||||
assertThat(bean.getRegistrant()).isNull();
|
||||
|
@ -204,7 +204,7 @@ public class DomainResourceToXjcConverterTest {
|
|||
wrapDeposit(bean).marshal(new ByteArrayOutputStream(), UTF_8);
|
||||
}
|
||||
|
||||
public XjcRdeDeposit wrapDeposit(XjcRdeDomain domain) throws Exception {
|
||||
public XjcRdeDeposit wrapDeposit(XjcRdeDomain domain) {
|
||||
XjcRdeDeposit deposit = new XjcRdeDeposit();
|
||||
deposit.setId("984302");
|
||||
deposit.setType(XjcRdeDepositTypeType.FULL);
|
||||
|
|
|
@ -58,7 +58,7 @@ public class EscrowTaskRunnerTest {
|
|||
private Registry registry;
|
||||
|
||||
@Before
|
||||
public void before() throws Exception {
|
||||
public void before() {
|
||||
createTld("lol");
|
||||
registry = Registry.get("lol");
|
||||
runner = new EscrowTaskRunner();
|
||||
|
@ -92,7 +92,7 @@ public class EscrowTaskRunnerTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testRun_cursorInTheFuture_doesNothing() throws Exception {
|
||||
public void testRun_cursorInTheFuture_doesNothing() {
|
||||
clock.setTo(DateTime.parse("2006-06-06T00:30:00Z"));
|
||||
persistResource(
|
||||
Cursor.create(CursorType.RDE_STAGING, DateTime.parse("2006-06-07TZ"), registry));
|
||||
|
@ -106,7 +106,7 @@ public class EscrowTaskRunnerTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testRun_lockIsntAvailable_throws503() throws Exception {
|
||||
public void testRun_lockIsntAvailable_throws503() {
|
||||
String lockName = "EscrowTaskRunner " + task.getClass().getSimpleName();
|
||||
clock.setTo(DateTime.parse("2006-06-06T00:30:00Z"));
|
||||
persistResource(
|
||||
|
|
|
@ -60,7 +60,7 @@ public class HostResourceToXjcConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertSubordinateHost() throws Exception {
|
||||
public void testConvertSubordinateHost() {
|
||||
DomainResource domain = newDomainResource("love.foobar").asBuilder()
|
||||
.setPersistedCurrentSponsorClientId("LeisureDog")
|
||||
.setLastTransferTime(DateTime.parse("2010-01-01T00:00:00Z"))
|
||||
|
@ -120,7 +120,7 @@ public class HostResourceToXjcConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertExternalHost() throws Exception {
|
||||
public void testConvertExternalHost() {
|
||||
XjcRdeHost bean = HostResourceToXjcConverter.convertExternalHost(
|
||||
new HostResource.Builder()
|
||||
.setCreationClientId("LawyerCat")
|
||||
|
@ -168,7 +168,7 @@ public class HostResourceToXjcConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertExternalHost_ipv6() throws Exception {
|
||||
public void testConvertExternalHost_ipv6() {
|
||||
XjcRdeHost bean = HostResourceToXjcConverter.convertExternalHost(
|
||||
new HostResource.Builder()
|
||||
.setCreationClientId("LawyerCat")
|
||||
|
@ -188,7 +188,7 @@ public class HostResourceToXjcConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testHostStatusValueIsInvalid() throws Exception {
|
||||
public void testHostStatusValueIsInvalid() {
|
||||
assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
() ->
|
||||
|
|
|
@ -56,7 +56,7 @@ public class PendingDepositCheckerTest {
|
|||
private final PendingDepositChecker checker = new PendingDepositChecker();
|
||||
|
||||
@Before
|
||||
public void before() throws Exception {
|
||||
public void before() {
|
||||
inject.setStaticField(Ofy.class, "clock", clock);
|
||||
checker.brdaDayOfWeek = TUESDAY;
|
||||
checker.brdaInterval = standardDays(7);
|
||||
|
@ -65,14 +65,14 @@ public class PendingDepositCheckerTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testMethod_noTldsWithEscrowEnabled_returnsEmpty() throws Exception {
|
||||
public void testMethod_noTldsWithEscrowEnabled_returnsEmpty() {
|
||||
createTld("pal");
|
||||
createTld("fun");
|
||||
assertThat(checker.getTldsAndWatermarksPendingDepositForRdeAndBrda()).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMethod_firstDeposit_depositsRdeTodayAtMidnight() throws Exception {
|
||||
public void testMethod_firstDeposit_depositsRdeTodayAtMidnight() {
|
||||
clock.setTo(DateTime.parse("2000-01-01T08:00Z")); // Saturday
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.advanceOneMilli();
|
||||
|
@ -83,7 +83,7 @@ public class PendingDepositCheckerTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testMethod_firstDepositOnBrdaDay_depositsBothRdeAndBrda() throws Exception {
|
||||
public void testMethod_firstDepositOnBrdaDay_depositsBothRdeAndBrda() {
|
||||
clock.setTo(DateTime.parse("2000-01-04T08:00Z")); // Tuesday
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.advanceOneMilli();
|
||||
|
@ -96,7 +96,7 @@ public class PendingDepositCheckerTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testMethod_firstRdeDeposit_initializesCursorToMidnightToday() throws Exception {
|
||||
public void testMethod_firstRdeDeposit_initializesCursorToMidnightToday() {
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ")); // Saturday
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.advanceOneMilli();
|
||||
|
@ -108,7 +108,7 @@ public class PendingDepositCheckerTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testMethod_subsequentRdeDeposit_doesntMutateCursor() throws Exception {
|
||||
public void testMethod_subsequentRdeDeposit_doesntMutateCursor() {
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ")); // Saturday
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.advanceOneMilli();
|
||||
|
@ -121,8 +121,7 @@ public class PendingDepositCheckerTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testMethod_firstBrdaDepositButNotOnBrdaDay_doesntInitializeCursor()
|
||||
throws Exception {
|
||||
public void testMethod_firstBrdaDepositButNotOnBrdaDay_doesntInitializeCursor() {
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ")); // Saturday
|
||||
createTldWithEscrowEnabled("lol");
|
||||
Registry registry = Registry.get("lol");
|
||||
|
@ -135,7 +134,7 @@ public class PendingDepositCheckerTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testMethod_backloggedTwoDays_onlyWantsLeastRecentDay() throws Exception {
|
||||
public void testMethod_backloggedTwoDays_onlyWantsLeastRecentDay() {
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ"));
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.advanceOneMilli();
|
||||
|
@ -148,7 +147,7 @@ public class PendingDepositCheckerTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testMethod_multipleTldsWithEscrowEnabled_depositsBoth() throws Exception {
|
||||
public void testMethod_multipleTldsWithEscrowEnabled_depositsBoth() {
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ")); // Saturday
|
||||
createTldWithEscrowEnabled("pal");
|
||||
clock.advanceOneMilli();
|
||||
|
|
|
@ -83,7 +83,7 @@ public class RdeMarshallerTest extends ShardableTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testMarshalRegistrar_unicodeCharacters_dontGetMangled() throws Exception {
|
||||
public void testMarshalRegistrar_unicodeCharacters_dontGetMangled() {
|
||||
DepositFragment fragment =
|
||||
new RdeMarshaller(STRICT).marshalRegistrar(loadRegistrar("TheRegistrar"));
|
||||
assertThat(fragment.xml()).contains("123 Example Bőulevard");
|
||||
|
|
|
@ -130,7 +130,7 @@ public class RdeReportActionTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testRun() throws Exception {
|
||||
public void testRun() {
|
||||
createTld("lol");
|
||||
RdeReportAction action = createAction();
|
||||
action.tld = "lol";
|
||||
|
|
|
@ -125,7 +125,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
|||
}
|
||||
|
||||
@Before
|
||||
public void setup() throws Exception {
|
||||
public void setup() {
|
||||
inject.setStaticField(Ofy.class, "clock", clock);
|
||||
action = new RdeStagingAction();
|
||||
action.clock = clock;
|
||||
|
@ -155,7 +155,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testRun_modeInNonManualMode_throwsException() throws Exception {
|
||||
public void testRun_modeInNonManualMode_throwsException() {
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ"));
|
||||
action.modeStrings = ImmutableSet.of("full");
|
||||
|
@ -163,7 +163,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testRun_tldInNonManualMode_throwsException() throws Exception {
|
||||
public void testRun_tldInNonManualMode_throwsException() {
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ"));
|
||||
action.tlds = ImmutableSet.of("tld");
|
||||
|
@ -171,7 +171,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testRun_watermarkInNonManualMode_throwsException() throws Exception {
|
||||
public void testRun_watermarkInNonManualMode_throwsException() {
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ"));
|
||||
action.watermarks = ImmutableSet.of(clock.nowUtc());
|
||||
|
@ -179,7 +179,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testRun_revisionInNonManualMode_throwsException() throws Exception {
|
||||
public void testRun_revisionInNonManualMode_throwsException() {
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ"));
|
||||
action.revision = Optional.of(42);
|
||||
|
@ -233,7 +233,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testManualRun_emptyMode_throwsException() throws Exception {
|
||||
public void testManualRun_emptyMode_throwsException() {
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ"));
|
||||
action.manual = true;
|
||||
|
@ -245,7 +245,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testManualRun_invalidMode_throwsException() throws Exception {
|
||||
public void testManualRun_invalidMode_throwsException() {
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ"));
|
||||
action.manual = true;
|
||||
|
@ -257,7 +257,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testManualRun_emptyTld_throwsException() throws Exception {
|
||||
public void testManualRun_emptyTld_throwsException() {
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ"));
|
||||
action.manual = true;
|
||||
|
@ -269,7 +269,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testManualRun_emptyWatermark_throwsException() throws Exception {
|
||||
public void testManualRun_emptyWatermark_throwsException() {
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ"));
|
||||
action.manual = true;
|
||||
|
@ -281,7 +281,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testManualRun_nonDayStartWatermark_throwsException() throws Exception {
|
||||
public void testManualRun_nonDayStartWatermark_throwsException() {
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ"));
|
||||
action.manual = true;
|
||||
|
@ -293,7 +293,7 @@ public class RdeStagingActionTest extends MapreduceTestCase<RdeStagingAction> {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testManualRun_invalidRevision_throwsException() throws Exception {
|
||||
public void testManualRun_invalidRevision_throwsException() {
|
||||
createTldWithEscrowEnabled("lol");
|
||||
clock.setTo(DateTime.parse("2000-01-01TZ"));
|
||||
action.manual = true;
|
||||
|
|
|
@ -378,7 +378,7 @@ public class RdeUploadActionTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testRunWithLock_stagingNotFinished_throws503() throws Exception {
|
||||
public void testRunWithLock_stagingNotFinished_throws503() {
|
||||
DateTime stagingCursor = DateTime.parse("2010-10-17TZ");
|
||||
DateTime uploadCursor = DateTime.parse("2010-10-17TZ");
|
||||
persistResource(
|
||||
|
|
|
@ -95,7 +95,7 @@ public class RegistrarToXjcConverterTest extends ShardableTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvert() throws Exception {
|
||||
public void testConvert() {
|
||||
XjcRdeRegistrar bean = RegistrarToXjcConverter.convertRegistrar(registrar);
|
||||
|
||||
assertThat(bean.getId()).isEqualTo("GoblinMarket");
|
||||
|
|
|
@ -66,7 +66,7 @@ public class RdeContactImportActionTest extends MapreduceTestCase<RdeContactImpo
|
|||
private Response response;
|
||||
|
||||
@Before
|
||||
public void before() throws Exception {
|
||||
public void before() {
|
||||
response = new FakeResponse();
|
||||
mrRunner = makeDefaultRunner();
|
||||
action = new RdeContactImportAction(
|
||||
|
|
|
@ -191,8 +191,7 @@ public class RdeContactReaderTest {
|
|||
|
||||
/** Verifies that contact id and ROID match expected values */
|
||||
private void checkContact(
|
||||
JaxbFragment<XjcRdeContactElement> fragment, String contactId, String repoId)
|
||||
throws Exception {
|
||||
JaxbFragment<XjcRdeContactElement> fragment, String contactId, String repoId) {
|
||||
assertThat(fragment).isNotNull();
|
||||
XjcRdeContact contact = fragment.getInstance().getValue();
|
||||
assertThat(contact.getId()).isEqualTo(contactId);
|
||||
|
|
|
@ -85,7 +85,7 @@ public class RdeDomainImportActionTest extends MapreduceTestCase<RdeDomainImport
|
|||
private Response response;
|
||||
|
||||
@Before
|
||||
public void before() throws Exception {
|
||||
public void before() {
|
||||
createTld("test");
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
|
|
|
@ -204,8 +204,7 @@ public class RdeDomainReaderTest {
|
|||
|
||||
/** Verifies that domain name and ROID match expected values */
|
||||
private void checkDomain(
|
||||
JaxbFragment<XjcRdeDomainElement> fragment, String domainName, String repoId)
|
||||
throws Exception {
|
||||
JaxbFragment<XjcRdeDomainElement> fragment, String domainName, String repoId) {
|
||||
assertThat(fragment).isNotNull();
|
||||
XjcRdeDomain domain = fragment.getInstance().getValue();
|
||||
assertThat(domain.getName()).isEqualTo(domainName);
|
||||
|
|
|
@ -67,7 +67,7 @@ public class RdeHostImportActionTest extends MapreduceTestCase<RdeHostImportActi
|
|||
private final Optional<Integer> mapShards = Optional.empty();
|
||||
|
||||
@Before
|
||||
public void before() throws Exception {
|
||||
public void before() {
|
||||
response = new FakeResponse();
|
||||
mrRunner = new MapreduceRunner(Optional.empty(), Optional.empty());
|
||||
action = new RdeHostImportAction(
|
||||
|
|
|
@ -59,7 +59,7 @@ public class RdeHostInputTest {
|
|||
.build();
|
||||
/** Number of shards cannot be negative */
|
||||
@Test
|
||||
public void testNegativeShards_throwsIllegalArgumentException() throws Exception {
|
||||
public void testNegativeShards_throwsIllegalArgumentException() {
|
||||
IllegalArgumentException thrown =
|
||||
assertThrows(IllegalArgumentException.class, () -> getInput(Optional.of(-1)));
|
||||
assertThat(thrown).hasMessageThat().contains("Number of shards must be greater than zero");
|
||||
|
@ -67,7 +67,7 @@ public class RdeHostInputTest {
|
|||
|
||||
/** Number of shards cannot be zero */
|
||||
@Test
|
||||
public void testZeroShards_throwsIllegalArgumentException() throws Exception {
|
||||
public void testZeroShards_throwsIllegalArgumentException() {
|
||||
IllegalArgumentException thrown =
|
||||
assertThrows(IllegalArgumentException.class, () -> getInput(Optional.of(0)));
|
||||
assertThat(thrown).hasMessageThat().contains("Number of shards must be greater than zero");
|
||||
|
|
|
@ -80,7 +80,7 @@ public class RdeHostLinkActionTest extends MapreduceTestCase<RdeHostLinkAction>
|
|||
private final FakeClock clock = new FakeClock();
|
||||
|
||||
@Before
|
||||
public void before() throws Exception {
|
||||
public void before() {
|
||||
clock.setTo(DateTime.parse("2016-05-07T14:55:38Z"));
|
||||
inject.setStaticField(Ofy.class, "clock", clock);
|
||||
createTld("test");
|
||||
|
|
|
@ -173,7 +173,7 @@ public class RdeImportUtilsTest extends ShardableTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testImportNewDomain() throws Exception {
|
||||
public void testImportNewDomain() {
|
||||
final DomainResource newDomain = buildNewDomain();
|
||||
importResourceInTransaction(newDomain);
|
||||
|
||||
|
@ -191,7 +191,7 @@ public class RdeImportUtilsTest extends ShardableTestCase {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testImportExistingDomain() throws Exception {
|
||||
public void testImportExistingDomain() {
|
||||
DomainResource newDomain = buildNewDomain();
|
||||
persistResource(newDomain);
|
||||
final DomainResource updatedDomain =
|
||||
|
|
|
@ -104,7 +104,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResource() throws Exception {
|
||||
public void testConvertDomainResource() {
|
||||
final ContactResource jd1234 = persistActiveContact("jd1234");
|
||||
final ContactResource sh8013 = persistActiveContact("sh8013");
|
||||
ImmutableSet<DesignatedContact> expectedContacts =
|
||||
|
@ -135,7 +135,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
|
||||
/** Verifies that uppercase domain names are converted to lowercase */
|
||||
@Test
|
||||
public void testConvertDomainResourceUpperCase() throws Exception {
|
||||
public void testConvertDomainResourceUpperCase() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment_ucase.xml");
|
||||
|
@ -144,7 +144,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceAddPeriod() throws Exception {
|
||||
public void testConvertDomainResourceAddPeriod() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment_addPeriod.xml");
|
||||
|
@ -157,7 +157,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceAutoRenewPeriod() throws Exception {
|
||||
public void testConvertDomainResourceAutoRenewPeriod() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment_autoRenewPeriod.xml");
|
||||
|
@ -170,7 +170,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceRedemptionPeriod() throws Exception {
|
||||
public void testConvertDomainResourceRedemptionPeriod() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment_redemptionPeriod.xml");
|
||||
|
@ -183,7 +183,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceRenewPeriod() throws Exception {
|
||||
public void testConvertDomainResourceRenewPeriod() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment_renewPeriod.xml");
|
||||
|
@ -196,7 +196,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourcePendingDeletePeriod() throws Exception {
|
||||
public void testConvertDomainResourcePendingDeletePeriod() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment_pendingDeletePeriod.xml");
|
||||
|
@ -209,7 +209,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourcePendingRestorePeriodUnsupported() throws Exception {
|
||||
public void testConvertDomainResourcePendingRestorePeriodUnsupported() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment_pendingRestorePeriod.xml");
|
||||
|
@ -221,7 +221,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceTransferPeriod() throws Exception {
|
||||
public void testConvertDomainResourceTransferPeriod() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment_transferPeriod.xml");
|
||||
|
@ -243,7 +243,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceEppUpdateRegistrar() throws Exception {
|
||||
public void testConvertDomainResourceEppUpdateRegistrar() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment_up_rr.xml");
|
||||
|
@ -252,7 +252,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceWithHostObjs() throws Exception {
|
||||
public void testConvertDomainResourceWithHostObjs() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
HostResource host1 = persistActiveHost("ns1.example.net");
|
||||
|
@ -263,7 +263,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceWithHostAttrs() throws Exception {
|
||||
public void testConvertDomainResourceWithHostAttrs() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
persistActiveHost("ns1.example.net");
|
||||
|
@ -275,7 +275,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceHostNotFound() throws Exception {
|
||||
public void testConvertDomainResourceHostNotFound() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
persistActiveHost("ns1.example.net");
|
||||
|
@ -288,7 +288,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceRegistrantNotFound() throws Exception {
|
||||
public void testConvertDomainResourceRegistrantNotFound() {
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment.xml");
|
||||
IllegalStateException thrown =
|
||||
|
@ -297,7 +297,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceRegistrantMissing() throws Exception {
|
||||
public void testConvertDomainResourceRegistrantMissing() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment_registrant_missing.xml");
|
||||
|
@ -309,7 +309,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceAdminNotFound() throws Exception {
|
||||
public void testConvertDomainResourceAdminNotFound() {
|
||||
persistActiveContact("jd1234");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment.xml");
|
||||
IllegalStateException thrown =
|
||||
|
@ -318,7 +318,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceSecDnsData() throws Exception {
|
||||
public void testConvertDomainResourceSecDnsData() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment_secdns.xml");
|
||||
|
@ -354,7 +354,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceAutoRenewBillingEvent() throws Exception {
|
||||
public void testConvertDomainResourceAutoRenewBillingEvent() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment.xml");
|
||||
|
@ -372,7 +372,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourceAutoRenewPollMessage() throws Exception {
|
||||
public void testConvertDomainResourceAutoRenewPollMessage() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment.xml");
|
||||
|
@ -388,7 +388,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourcePendingTransfer() throws Exception {
|
||||
public void testConvertDomainResourcePendingTransfer() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain = loadDomainFromRdeXml("domain_fragment_pending_transfer.xml");
|
||||
|
@ -404,7 +404,7 @@ public class XjcToDomainResourceConverterTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testConvertDomainResourcePendingTransferRegistrationCap() throws Exception {
|
||||
public void testConvertDomainResourcePendingTransferRegistrationCap() {
|
||||
persistActiveContact("jd1234");
|
||||
persistActiveContact("sh8013");
|
||||
final XjcRdeDomain xjcDomain =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue