Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
devinrsmith committed Jan 13, 2024
1 parent 9c8c18b commit 68859ac
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* Copyright (c) 2016-2023 Deephaven Data Labs and Patent Pending
*/
package io.deephaven.plot.axistransformations;

import io.deephaven.time.calendar.BusinessCalendar;
import io.deephaven.time.calendar.Calendars;

final class CalendarInit {
static {
for (BusinessCalendar calendar : Calendars.calendarsFromConfiguration()) {
Calendars.addCalendar(calendar);
}
}

static void noop() {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,18 @@
*/
package io.deephaven.plot.axistransformations;

import io.deephaven.base.testing.BaseArrayTestCase;
import io.deephaven.time.DateTimeUtils;
import io.deephaven.time.calendar.BusinessCalendar;
import io.deephaven.time.calendar.Calendars;
import junit.framework.TestCase;

import java.nio.file.Paths;
import java.time.Instant;
import java.time.ZoneId;
import java.util.Objects;

public class TestAxisTransformBusinessCalendar extends BaseArrayTestCase {

public class TestAxisTransformBusinessCalendar extends TestCase {
static {
for (BusinessCalendar calendar : Calendars.calendarsFromConfiguration()) {
Calendars.addCalendar(calendar);
}
CalendarInit.noop();
}

private static final ZoneId TZ_JP = ZoneId.of("Asia/Tokyo");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@
import static org.junit.Assert.assertTrue;

public class TestAxisTransforms {

static {
for (BusinessCalendar calendar : Calendars.calendarsFromConfiguration()) {
Calendars.addCalendar(calendar);
}
CalendarInit.noop();
}

final double d1 = 3.5;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Copyright (c) 2016-2023 Deephaven Data Labs and Patent Pending
*/
package io.deephaven.time.calendar;

final class CalendarInit {

static {
for (BusinessCalendar calendar : Calendars.calendarsFromConfiguration()) {
Calendars.addCalendar(calendar);
}
}

static void noop() {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
public class TestCalendars extends BaseArrayTestCase {

static {
for (BusinessCalendar calendar : Calendars.calendarsFromConfiguration()) {
Calendars.addCalendar(calendar);
}
CalendarInit.noop();
}

public void testDefault() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
public class TestStaticCalendarMethods extends BaseArrayTestCase {

static {
for (BusinessCalendar calendar : Calendars.calendarsFromConfiguration()) {
Calendars.addCalendar(calendar);
}
CalendarInit.noop();
}

private final Map<Class<?>, Object[]> data = new HashMap<>();
Expand Down

0 comments on commit 68859ac

Please sign in to comment.