mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +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
|
@ -107,9 +107,10 @@ public class CreateTldCommandTest extends CommandTestCase<CreateTldCommand> {
|
|||
"xn--q9jyb4c");
|
||||
|
||||
Registry registry = Registry.get("xn--q9jyb4c");
|
||||
assertThat(registry.getEapFeeFor(now.minusHours(1))).isEqualTo(Money.zero(USD));
|
||||
assertThat(registry.getEapFeeFor(now.plusHours(1))).isEqualTo(Money.of(USD, 50));
|
||||
assertThat(registry.getEapFeeFor(now.plusDays(1).plusHours(1))).isEqualTo(Money.of(USD, 10));
|
||||
assertThat(registry.getEapFeeFor(now.minusHours(1)).getCost()).isEqualTo(Money.zero(USD));
|
||||
assertThat(registry.getEapFeeFor(now.plusHours(1)).getCost()).isEqualTo(Money.of(USD, 50));
|
||||
assertThat(registry.getEapFeeFor(now.plusDays(1).plusHours(1)).getCost())
|
||||
.isEqualTo(Money.of(USD, 10));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue