Skip to content

Commit 9dc6f3f

Browse files
committed
SNAPSHOT fix forbidden API
1 parent 0bba7ac commit 9dc6f3f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/scheduler/CronTimezoneTests.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
package org.elasticsearch.xpack.core.scheduler;
99

1010
import org.elasticsearch.test.ESTestCase;
11-
import org.junit.Test;
1211

1312
import java.time.Instant;
1413
import java.time.ZoneId;
@@ -23,16 +22,14 @@
2322

2423
public 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;

0 commit comments

Comments
 (0)