mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Just use default Joda DateTime toString()
It defaults to ISO 8601, so no need to be fancy. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=245809048
This commit is contained in:
parent
124d7375c3
commit
d1edd1f58b
1 changed files with 2 additions and 8 deletions
|
@ -46,8 +46,6 @@ import org.junit.Test;
|
|||
/** Unit tests for {@link CreateTldCommand}. */
|
||||
public class CreateTldCommandTest extends CommandTestCase<CreateTldCommand> {
|
||||
|
||||
private static final String DATETIME_FORMAT = "YYYY-MM-dd'T'HH:mm:ssZZ";
|
||||
|
||||
@Before
|
||||
public void init() {
|
||||
persistReservedList("common_abuse", "baa,FULLY_BLOCKED");
|
||||
|
@ -126,9 +124,7 @@ public class CreateTldCommandTest extends CommandTestCase<CreateTldCommand> {
|
|||
runCommandForced(
|
||||
String.format(
|
||||
"--eap_fee_schedule=\"%s=USD 0.00,%s=USD 50.00,%s=USD 10.00\"",
|
||||
START_OF_TIME.toString(DATETIME_FORMAT),
|
||||
now.toString(DATETIME_FORMAT),
|
||||
tomorrow.toString(DATETIME_FORMAT)),
|
||||
START_OF_TIME, now, tomorrow),
|
||||
"--roid_suffix=Q9JYB4C",
|
||||
"--dns_writers=VoidDnsWriter",
|
||||
"xn--q9jyb4c");
|
||||
|
@ -371,9 +367,7 @@ public class CreateTldCommandTest extends CommandTestCase<CreateTldCommand> {
|
|||
IllegalArgumentException.class,
|
||||
() ->
|
||||
runCommandForced(
|
||||
String.format(
|
||||
"--eap_fee_schedule=\"%s=JPY 123456\"",
|
||||
START_OF_TIME.toString(DATETIME_FORMAT)),
|
||||
String.format("--eap_fee_schedule=\"%s=JPY 123456\"", START_OF_TIME),
|
||||
"--roid_suffix=Q9JYB4C",
|
||||
"--dns_writers=VoidDnsWriter",
|
||||
"xn--q9jyb4c"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue