fixed merge
This commit is contained in:
parent
9cc23b1901
commit
58492b3ebc
|
@ -83,13 +83,14 @@ public class RolloverFileOutputStreamTest
|
||||||
public void testMidnightRolloverCalc_PDT_Issue1507()
|
public void testMidnightRolloverCalc_PDT_Issue1507()
|
||||||
{
|
{
|
||||||
ZoneId zone = toZoneId("PST");
|
ZoneId zone = toZoneId("PST");
|
||||||
ZonedDateTime initialDate = toDateTime("2017.04.27-08:00:00.0 PM PDT", zone);
|
ZonedDateTime initialDate = toDateTime("2017.04.26-08:00:00.0 PM PDT", zone);
|
||||||
|
|
||||||
ZonedDateTime midnight = RolloverFileOutputStream.toMidnight(initialDate);
|
ZonedDateTime midnight = RolloverFileOutputStream.toMidnight(initialDate);
|
||||||
assertThat("Midnight", toString(midnight), is("2017.04.27-12:00:00.0 AM PDT"));
|
assertThat("Midnight", toString(midnight), is("2017.04.27-12:00:00.0 AM PDT"));
|
||||||
|
|
||||||
Object expected[][] = {
|
Object expected[][] = {
|
||||||
{"2017.04.28-12:00:00.0 AM PDT", 14_400_000L}, // Ensure not negative
|
{"2017.04.27-12:00:00.0 AM PDT", 14_400_000L},
|
||||||
|
{"2017.04.28-12:00:00.0 AM PDT", 86_400_000L},
|
||||||
{"2017.04.29-12:00:00.0 AM PDT", 86_400_000L},
|
{"2017.04.29-12:00:00.0 AM PDT", 86_400_000L},
|
||||||
{"2017.04.30-12:00:00.0 AM PDT", 86_400_000L},
|
{"2017.04.30-12:00:00.0 AM PDT", 86_400_000L},
|
||||||
{"2017.05.01-12:00:00.0 AM PDT", 86_400_000L},
|
{"2017.05.01-12:00:00.0 AM PDT", 86_400_000L},
|
||||||
|
|
Loading…
Reference in New Issue