File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/scheduler Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 88package org .elasticsearch .xpack .core .scheduler ;
99
1010import org .elasticsearch .test .ESTestCase ;
11- import org .junit .Test ;
1211
1312import java .time .Instant ;
1413import java .time .ZoneId ;
2322
2423public class CronTimezoneTests extends ESTestCase {
2524
26- @ Test
27- public void forFixedOffsetCorrectlyCalculateNextRuntime () {
25+ public void testForFixedOffsetCorrectlyCalculateNextRuntime () {
2826 Cron cron = new Cron ("0 0 2 * * ?" , getTimeZone (ZoneOffset .of ("+1" )));
2927 long midnightUTC = Instant .parse ("2020-01-01T00:00:00Z" ).toEpochMilli ();
3028 long nextValidTimeAfter = cron .getNextValidTimeAfter (midnightUTC );
3129 assertThat (nextValidTimeAfter , equalTo (Instant .parse ("2020-01-01T01:00:00Z" ).toEpochMilli ()));
3230 }
3331
34- @ Test
35- public void forLondonFixedDSTTransitionCheckCorrectSchedule () {
32+ public void testForLondonFixedDSTTransitionCheckCorrectSchedule () {
3633 ZoneId londonZone = getTimeZone ("Europe/London" ).toZoneId ();
3734
3835 Cron cron = new Cron ("0 0 2 * * ?" , getTimeZone (londonZone ));
@@ -54,8 +51,7 @@ public void forLondonFixedDSTTransitionCheckCorrectSchedule() {
5451 assertThat (cron .getNextValidTimeAfter (timeAfterDST .toEpochMilli ()), equalTo (Instant .parse ("2020-03-30T01:00:00Z" ).toEpochMilli ()));
5552 }
5653
57- @ Test
58- public void forRandomDSTTransitionCalculateNextTimeCorrectlyRelativeToUTC () {
54+ public void testRandomDSTTransitionCalculateNextTimeCorrectlyRelativeToUTC () {
5955 ZoneId timeZone ;
6056
6157 int i = 0 ;
You can’t perform that action at this time.
0 commit comments