mirror of
https://github.com/google/nomulus.git
synced 2025-08-02 07:52:11 +02:00
Return expiry date along with the EAP fee
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=126407427
This commit is contained in:
parent
9f731ba4d0
commit
d6bd2d56cd
4 changed files with 74 additions and 9 deletions
|
@ -416,7 +416,8 @@ public class RegistryTest extends EntityTestCase {
|
|||
|
||||
@Test
|
||||
public void testEapFee_undefined() {
|
||||
assertThat(Registry.get("tld").getEapFeeFor(clock.nowUtc())).isEqualTo(Money.of(USD, 0));
|
||||
assertThat(Registry.get("tld").getEapFeeFor(clock.nowUtc()).getCost())
|
||||
.isEqualTo(Money.of(USD, 0));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -430,9 +431,11 @@ public class RegistryTest extends EntityTestCase {
|
|||
a, Money.of(USD, 100),
|
||||
b, Money.of(USD, 50))).build();
|
||||
|
||||
assertThat(registry.getEapFeeFor(clock.nowUtc())).isEqualTo(Money.of(USD, 100));
|
||||
assertThat(registry.getEapFeeFor(clock.nowUtc().minusDays(2))).isEqualTo(Money.of(USD, 0));
|
||||
assertThat(registry.getEapFeeFor(clock.nowUtc().plusDays(2))).isEqualTo(Money.of(USD, 50));
|
||||
assertThat(registry.getEapFeeFor(clock.nowUtc()).getCost()).isEqualTo(Money.of(USD, 100));
|
||||
assertThat(registry.getEapFeeFor(clock.nowUtc().minusDays(2)).getCost())
|
||||
.isEqualTo(Money.of(USD, 0));
|
||||
assertThat(registry.getEapFeeFor(clock.nowUtc().plusDays(2)).getCost())
|
||||
.isEqualTo(Money.of(USD, 50));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue