mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 20:18:34 +02:00
Switch all added usages of java.time to be joda.time
This is for consistency, mostly the LocalDate fields added in [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=224525451
This commit is contained in:
parent
68320ebad8
commit
305b1edc85
10 changed files with 30 additions and 40 deletions
|
@ -32,7 +32,7 @@ import com.google.api.services.dataflow.model.Job;
|
|||
import com.google.common.net.MediaType;
|
||||
import google.registry.testing.FakeResponse;
|
||||
import java.io.IOException;
|
||||
import java.time.LocalDate;
|
||||
import org.joda.time.LocalDate;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -67,7 +67,7 @@ public class PublishSpec11ReportActionTest {
|
|||
response = new FakeResponse();
|
||||
publishAction =
|
||||
new PublishSpec11ReportAction(
|
||||
"test-project", "12345", emailUtils, dataflow, response, LocalDate.of(2018, 6, 5));
|
||||
"test-project", "12345", emailUtils, dataflow, response, new LocalDate(2018, 6, 5));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -75,7 +75,7 @@ public class PublishSpec11ReportActionTest {
|
|||
expectedJob.setCurrentState("JOB_STATE_DONE");
|
||||
publishAction =
|
||||
new PublishSpec11ReportAction(
|
||||
"test-project", "12345", emailUtils, dataflow, response, LocalDate.of(2018, 6, 2));
|
||||
"test-project", "12345", emailUtils, dataflow, response, new LocalDate(2018, 6, 2));
|
||||
publishAction.run();
|
||||
assertThat(response.getStatus()).isEqualTo(SC_OK);
|
||||
verify(emailUtils).emailSpec11Reports();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue