Skip to content

Commit

Permalink
Add parameterized tests for CqlTypesOperatorsTest, which fails on the…
Browse files Browse the repository at this point in the history
… Newfoundland workstation due a flaw in the bugfix.
  • Loading branch information
lukedegruchy committed Oct 25, 2023
1 parent b715e61 commit e03fe16
Show file tree
Hide file tree
Showing 4 changed files with 211 additions and 244 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ else if (i == 6) {
final int totalMinutesModulo60 = totalMinutes % 60;

final int minutes = totalMinutesModulo60 == 0
// final int minutes = totalMinutesModulo60 != 500000
? new BigDecimal("60").multiply(offset.remainder(BigDecimal.ONE)) .intValue()
: Math.abs(totalMinutesModulo60); // This is for a half hour or 45 minute timezone, such as Newfoundland, Canada
dateString.append(ZoneOffset.ofHoursMinutes(offset.intValue(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,24 @@
import org.cqframework.cql.cql2elm.*;
import org.hl7.elm.r1.Library;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;

public class CqlTestBase {
static final String NORTH_AMERICA_MOUNTAIN = "America/Denver"; // This is the baseline: Normal hour on the hour timezone
static final String NEWFOUNDLAND = "America/St_Johns";
static final String INDIA = "Asia/Kolkata";
static final String AUSTRALIA_NORTHERN_TERRITORY = "Australia/Darwin";
static final String AUSTRALIA_EUCLA= "Australia/Eucla";
static final String AUSTRALIA_BROKEN_HILL = "Australia/Broken_Hill";
static final String AUSTRALIA_LORD_HOWE = "Australia/Lord_Howe";
static final String AUSTRALIA_SOUTH = "Australia/Adelaide";
static final String INDIAN_COCOS = "Indian/Cocos";
static final String PACIFIC_CHATHAM = "Pacific/Chatham";

@DataProvider
static Object[][] timezones() {
return new Object[][] {{NORTH_AMERICA_MOUNTAIN},{NEWFOUNDLAND},{INDIA},{AUSTRALIA_NORTHERN_TERRITORY},{AUSTRALIA_EUCLA},{AUSTRALIA_BROKEN_HILL},{AUSTRALIA_LORD_HOWE},{AUSTRALIA_SOUTH},{INDIAN_COCOS},{PACIFIC_CHATHAM}};
}

private static ModelManager modelManager;
protected static ModelManager getModelManager() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,90 +1,38 @@
package org.opencds.cqf.cql.engine.execution;

import org.cqframework.cql.cql2elm.CqlCompilerOptions;
import org.cqframework.cql.cql2elm.LibraryManager;
import org.cqframework.cql.cql2elm.ModelManager;
import org.hl7.elm.r1.VersionedIdentifier;
import org.testng.annotations.*;
import org.testng.asserts.SoftAssert;

import java.util.TimeZone;

@SuppressWarnings("removal")
public class CqlTimezoneTests {
private static final String NORTH_AMERICA_MOUNTAIN = "America/Denver"; // This is the baseline: Normal hour on the hour timezone
private static final String NEWFOUNDLAND = "America/St_Johns";
private static final String INDIA = "Asia/Kolkata";
private static final String AUSTRALIA_NORTHERN_TERRITORY = "Australia/Darwin";
private static final String AUSTRALIA_EUCLA= "Australia/Eucla";
private static final String AUSTRALIA_BROKEN_HILL = "Australia/Broken_Hill";
private static final String AUSTRALIA_LORD_HOWE = "Australia/Lord_Howe";
private static final String AUSTRALIA_SOUTH = "Australia/Adelaide";

private static final String INDIAN_COCOS = "Indian/Cocos";
private static final String PACIFIC_CHATHAM = "Pacific/Chatham";

private static ModelManager modelManager;
public class CqlTimezoneTests extends CqlTestBase {

private static final VersionedIdentifier library = new VersionedIdentifier().withId("CqlTimezoneTests");

@DataProvider
private static Object[][] timezones() {
return new Object[][] {{NORTH_AMERICA_MOUNTAIN},{NEWFOUNDLAND},{INDIA},{AUSTRALIA_NORTHERN_TERRITORY},{AUSTRALIA_EUCLA},{AUSTRALIA_BROKEN_HILL},{AUSTRALIA_LORD_HOWE},{AUSTRALIA_SOUTH},{INDIAN_COCOS},{PACIFIC_CHATHAM}};
}

@Test(dataProvider = "timezones")
public void testExpressionsProblematicForWeirdTimezones(String timezone) {
final String oldTz = System.getProperty("user.timezone");
// This is the ONLY thing that will work. System.setProperty() and -Duser.timezone do NOT work
TimeZone.setDefault(TimeZone.getTimeZone(timezone));

try {
final Environment localEnvironment = new Environment(getLibraryManager());
final CqlEngine localEngine = new CqlEngine(localEnvironment);
final SoftAssert softAssert = new SoftAssert();

evaluateExpression(localEngine, "After_SameHour", false, softAssert);
evaluateExpression(localEngine, "SameAs_SameHour", true, softAssert);
evaluateExpression(localEngine, "SameOrAfter_HourBefore", false, softAssert);
evaluateExpression(localEngine, "SameOrBefore_SameHour", true, softAssert);
evaluateExpression("After_SameHour", false, softAssert);

Check failure on line 23 in Src/java/engine/src/test/java/org/opencds/cqf/cql/engine/execution/CqlTimezoneTests.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones[0](America/Denver)

org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
Raw output
org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
	at app//org.cqframework.cql.cql2elm.LibraryManager.compileLibrary(LibraryManager.java:212)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:186)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:165)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.loadAndValidate(CqlEngine.java:250)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.evaluate(CqlEngine.java:183)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:93)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:106)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.evaluateExpression(CqlTimezoneTests.java:35)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones(CqlTimezoneTests.java:23)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at app//org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
	at app//org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
	at app//org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
	at app//org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
	at app//org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
	at app//org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
	at app//org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
	at app//org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
	at java.base@11.0.20.1/java.util.ArrayList.forEach(ArrayList.java:1541)
	at app//org.testng.TestRunner.privateRun(TestRunner.java:794)
	at app//org.testng.TestRunner.run(TestRunner.java:596)
	at app//org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
	at app//org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
	at app//org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
	at app//org.testng.SuiteRunner.run(SuiteRunner.java:276)
	at app//org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
	at app//org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
	at app//org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
	at app//org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
	at app//org.testng.TestNG.runSuites(TestNG.java:1063)
	at app//org.testng.TestNG.run(TestNG.java:1031)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:145)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:92)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy5.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

Check failure on line 23 in Src/java/engine/src/test/java/org/opencds/cqf/cql/engine/execution/CqlTimezoneTests.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones[1](America/St_Johns)

org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
Raw output
org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
	at app//org.cqframework.cql.cql2elm.LibraryManager.compileLibrary(LibraryManager.java:212)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:186)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:165)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.loadAndValidate(CqlEngine.java:250)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.evaluate(CqlEngine.java:183)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:93)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:106)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.evaluateExpression(CqlTimezoneTests.java:35)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones(CqlTimezoneTests.java:23)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at app//org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
	at app//org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
	at app//org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
	at app//org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
	at app//org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
	at app//org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
	at app//org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
	at app//org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
	at java.base@11.0.20.1/java.util.ArrayList.forEach(ArrayList.java:1541)
	at app//org.testng.TestRunner.privateRun(TestRunner.java:794)
	at app//org.testng.TestRunner.run(TestRunner.java:596)
	at app//org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
	at app//org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
	at app//org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
	at app//org.testng.SuiteRunner.run(SuiteRunner.java:276)
	at app//org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
	at app//org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
	at app//org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
	at app//org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
	at app//org.testng.TestNG.runSuites(TestNG.java:1063)
	at app//org.testng.TestNG.run(TestNG.java:1031)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:145)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:92)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy5.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

Check failure on line 23 in Src/java/engine/src/test/java/org/opencds/cqf/cql/engine/execution/CqlTimezoneTests.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones[2](Asia/Kolkata)

org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
Raw output
org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
	at app//org.cqframework.cql.cql2elm.LibraryManager.compileLibrary(LibraryManager.java:212)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:186)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:165)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.loadAndValidate(CqlEngine.java:250)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.evaluate(CqlEngine.java:183)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:93)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:106)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.evaluateExpression(CqlTimezoneTests.java:35)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones(CqlTimezoneTests.java:23)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at app//org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
	at app//org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
	at app//org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
	at app//org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
	at app//org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
	at app//org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
	at app//org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
	at app//org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
	at java.base@11.0.20.1/java.util.ArrayList.forEach(ArrayList.java:1541)
	at app//org.testng.TestRunner.privateRun(TestRunner.java:794)
	at app//org.testng.TestRunner.run(TestRunner.java:596)
	at app//org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
	at app//org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
	at app//org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
	at app//org.testng.SuiteRunner.run(SuiteRunner.java:276)
	at app//org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
	at app//org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
	at app//org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
	at app//org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
	at app//org.testng.TestNG.runSuites(TestNG.java:1063)
	at app//org.testng.TestNG.run(TestNG.java:1031)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:145)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:92)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy5.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

Check failure on line 23 in Src/java/engine/src/test/java/org/opencds/cqf/cql/engine/execution/CqlTimezoneTests.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones[3](Australia/Darwin)

org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
Raw output
org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
	at app//org.cqframework.cql.cql2elm.LibraryManager.compileLibrary(LibraryManager.java:212)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:186)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:165)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.loadAndValidate(CqlEngine.java:250)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.evaluate(CqlEngine.java:183)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:93)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:106)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.evaluateExpression(CqlTimezoneTests.java:35)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones(CqlTimezoneTests.java:23)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at app//org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
	at app//org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
	at app//org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
	at app//org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
	at app//org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
	at app//org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
	at app//org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
	at app//org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
	at java.base@11.0.20.1/java.util.ArrayList.forEach(ArrayList.java:1541)
	at app//org.testng.TestRunner.privateRun(TestRunner.java:794)
	at app//org.testng.TestRunner.run(TestRunner.java:596)
	at app//org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
	at app//org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
	at app//org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
	at app//org.testng.SuiteRunner.run(SuiteRunner.java:276)
	at app//org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
	at app//org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
	at app//org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
	at app//org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
	at app//org.testng.TestNG.runSuites(TestNG.java:1063)
	at app//org.testng.TestNG.run(TestNG.java:1031)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:145)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:92)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy5.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

Check failure on line 23 in Src/java/engine/src/test/java/org/opencds/cqf/cql/engine/execution/CqlTimezoneTests.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones[4](Australia/Eucla)

org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
Raw output
org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
	at app//org.cqframework.cql.cql2elm.LibraryManager.compileLibrary(LibraryManager.java:212)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:186)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:165)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.loadAndValidate(CqlEngine.java:250)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.evaluate(CqlEngine.java:183)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:93)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:106)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.evaluateExpression(CqlTimezoneTests.java:35)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones(CqlTimezoneTests.java:23)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at app//org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
	at app//org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
	at app//org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
	at app//org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
	at app//org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
	at app//org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
	at app//org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
	at app//org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
	at java.base@11.0.20.1/java.util.ArrayList.forEach(ArrayList.java:1541)
	at app//org.testng.TestRunner.privateRun(TestRunner.java:794)
	at app//org.testng.TestRunner.run(TestRunner.java:596)
	at app//org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
	at app//org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
	at app//org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
	at app//org.testng.SuiteRunner.run(SuiteRunner.java:276)
	at app//org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
	at app//org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
	at app//org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
	at app//org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
	at app//org.testng.TestNG.runSuites(TestNG.java:1063)
	at app//org.testng.TestNG.run(TestNG.java:1031)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:145)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:92)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy5.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

Check failure on line 23 in Src/java/engine/src/test/java/org/opencds/cqf/cql/engine/execution/CqlTimezoneTests.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones[5](Australia/Broken_Hill)

org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
Raw output
org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
	at app//org.cqframework.cql.cql2elm.LibraryManager.compileLibrary(LibraryManager.java:212)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:186)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:165)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.loadAndValidate(CqlEngine.java:250)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.evaluate(CqlEngine.java:183)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:93)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:106)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.evaluateExpression(CqlTimezoneTests.java:35)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones(CqlTimezoneTests.java:23)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at app//org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
	at app//org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
	at app//org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
	at app//org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
	at app//org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
	at app//org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
	at app//org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
	at app//org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
	at java.base@11.0.20.1/java.util.ArrayList.forEach(ArrayList.java:1541)
	at app//org.testng.TestRunner.privateRun(TestRunner.java:794)
	at app//org.testng.TestRunner.run(TestRunner.java:596)
	at app//org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
	at app//org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
	at app//org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
	at app//org.testng.SuiteRunner.run(SuiteRunner.java:276)
	at app//org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
	at app//org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
	at app//org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
	at app//org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
	at app//org.testng.TestNG.runSuites(TestNG.java:1063)
	at app//org.testng.TestNG.run(TestNG.java:1031)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:145)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:92)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy5.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

Check failure on line 23 in Src/java/engine/src/test/java/org/opencds/cqf/cql/engine/execution/CqlTimezoneTests.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones[6](Australia/Lord_Howe)

org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
Raw output
org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
	at app//org.cqframework.cql.cql2elm.LibraryManager.compileLibrary(LibraryManager.java:212)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:186)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:165)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.loadAndValidate(CqlEngine.java:250)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.evaluate(CqlEngine.java:183)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:93)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:106)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.evaluateExpression(CqlTimezoneTests.java:35)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones(CqlTimezoneTests.java:23)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at app//org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
	at app//org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
	at app//org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
	at app//org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
	at app//org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
	at app//org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
	at app//org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
	at app//org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
	at java.base@11.0.20.1/java.util.ArrayList.forEach(ArrayList.java:1541)
	at app//org.testng.TestRunner.privateRun(TestRunner.java:794)
	at app//org.testng.TestRunner.run(TestRunner.java:596)
	at app//org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
	at app//org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
	at app//org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
	at app//org.testng.SuiteRunner.run(SuiteRunner.java:276)
	at app//org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
	at app//org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
	at app//org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
	at app//org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
	at app//org.testng.TestNG.runSuites(TestNG.java:1063)
	at app//org.testng.TestNG.run(TestNG.java:1031)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:145)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:92)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy5.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

Check failure on line 23 in Src/java/engine/src/test/java/org/opencds/cqf/cql/engine/execution/CqlTimezoneTests.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones[7](Australia/Adelaide)

org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
Raw output
org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
	at app//org.cqframework.cql.cql2elm.LibraryManager.compileLibrary(LibraryManager.java:212)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:186)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:165)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.loadAndValidate(CqlEngine.java:250)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.evaluate(CqlEngine.java:183)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:93)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:106)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.evaluateExpression(CqlTimezoneTests.java:35)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones(CqlTimezoneTests.java:23)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at app//org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
	at app//org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
	at app//org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
	at app//org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
	at app//org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
	at app//org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
	at app//org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
	at app//org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
	at java.base@11.0.20.1/java.util.ArrayList.forEach(ArrayList.java:1541)
	at app//org.testng.TestRunner.privateRun(TestRunner.java:794)
	at app//org.testng.TestRunner.run(TestRunner.java:596)
	at app//org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
	at app//org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
	at app//org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
	at app//org.testng.SuiteRunner.run(SuiteRunner.java:276)
	at app//org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
	at app//org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
	at app//org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
	at app//org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
	at app//org.testng.TestNG.runSuites(TestNG.java:1063)
	at app//org.testng.TestNG.run(TestNG.java:1031)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:145)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:92)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy5.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

Check failure on line 23 in Src/java/engine/src/test/java/org/opencds/cqf/cql/engine/execution/CqlTimezoneTests.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones[8](Indian/Cocos)

org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
Raw output
org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
	at app//org.cqframework.cql.cql2elm.LibraryManager.compileLibrary(LibraryManager.java:212)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:186)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:165)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.loadAndValidate(CqlEngine.java:250)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.evaluate(CqlEngine.java:183)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:93)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:106)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.evaluateExpression(CqlTimezoneTests.java:35)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones(CqlTimezoneTests.java:23)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at app//org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
	at app//org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
	at app//org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
	at app//org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
	at app//org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
	at app//org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
	at app//org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
	at app//org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
	at java.base@11.0.20.1/java.util.ArrayList.forEach(ArrayList.java:1541)
	at app//org.testng.TestRunner.privateRun(TestRunner.java:794)
	at app//org.testng.TestRunner.run(TestRunner.java:596)
	at app//org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
	at app//org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
	at app//org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
	at app//org.testng.SuiteRunner.run(SuiteRunner.java:276)
	at app//org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
	at app//org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
	at app//org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
	at app//org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
	at app//org.testng.TestNG.runSuites(TestNG.java:1063)
	at app//org.testng.TestNG.run(TestNG.java:1031)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:145)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:92)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy5.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)

Check failure on line 23 in Src/java/engine/src/test/java/org/opencds/cqf/cql/engine/execution/CqlTimezoneTests.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones[9](Pacific/Chatham)

org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
Raw output
org.cqframework.cql.cql2elm.CqlIncludeException: Could not load source for library CqlTimezoneTests, version null.
	at app//org.cqframework.cql.cql2elm.LibraryManager.compileLibrary(LibraryManager.java:212)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:186)
	at app//org.cqframework.cql.cql2elm.LibraryManager.resolveLibrary(LibraryManager.java:165)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.loadAndValidate(CqlEngine.java:250)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.evaluate(CqlEngine.java:183)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:93)
	at app//org.opencds.cqf.cql.engine.execution.CqlEngine.expression(CqlEngine.java:106)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.evaluateExpression(CqlTimezoneTests.java:35)
	at app//org.opencds.cqf.cql.engine.execution.CqlTimezoneTests.testExpressionsProblematicForWeirdTimezones(CqlTimezoneTests.java:23)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at app//org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
	at app//org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
	at app//org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
	at app//org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
	at app//org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
	at app//org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
	at app//org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
	at app//org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
	at java.base@11.0.20.1/java.util.ArrayList.forEach(ArrayList.java:1541)
	at app//org.testng.TestRunner.privateRun(TestRunner.java:794)
	at app//org.testng.TestRunner.run(TestRunner.java:596)
	at app//org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
	at app//org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
	at app//org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
	at app//org.testng.SuiteRunner.run(SuiteRunner.java:276)
	at app//org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
	at app//org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
	at app//org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
	at app//org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
	at app//org.testng.TestNG.runSuites(TestNG.java:1063)
	at app//org.testng.TestNG.run(TestNG.java:1031)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:145)
	at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:92)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base@11.0.20.1/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base@11.0.20.1/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base@11.0.20.1/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy5.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
evaluateExpression("SameAs_SameHour", true, softAssert);
evaluateExpression("SameOrAfter_HourBefore", false, softAssert);
evaluateExpression("SameOrBefore_SameHour", true, softAssert);

softAssert.assertAll();
} finally {
TimeZone.setDefault(TimeZone.getTimeZone(oldTz));
}
}
protected static LibraryManager getLibraryManager() {
return getLibraryManager(createOptionsMin());
}

protected static LibraryManager getLibraryManager(CqlCompilerOptions compilerOptions) {
var manager = new LibraryManager(getModelManager(), compilerOptions);
manager.getLibrarySourceLoader().registerProvider(new TestLibrarySourceProvider());

return manager;
}
protected static ModelManager getModelManager() {
if (modelManager == null) {
modelManager = new ModelManager();
}

return modelManager;
}

private static CqlCompilerOptions createOptionsMin() {
CqlCompilerOptions result = new CqlCompilerOptions();
result.setOptions(CqlCompilerOptions.Options.EnableDateRangeOptimization,
CqlCompilerOptions.Options.EnableLocators,
CqlCompilerOptions.Options.EnableResultTypes,
CqlCompilerOptions.Options.DisableListDemotion,
CqlCompilerOptions.Options.DisableListPromotion,
CqlCompilerOptions.Options.DisableMethodInvocation);

return result;
}

private static void evaluateExpression(CqlEngine localEngine, String DateTimeSameOrBeforeTodayTrue1, boolean expectedResult, SoftAssert softAssert) {
Object result = localEngine.expression(library, DateTimeSameOrBeforeTodayTrue1).value();
private void evaluateExpression(String DateTimeSameOrBeforeTodayTrue1, boolean expectedResult, SoftAssert softAssert) {
Object result = engine.expression(library, DateTimeSameOrBeforeTodayTrue1).value();
softAssert.assertEquals(result, expectedResult);
}
}
Loading

0 comments on commit e03fe16

Please sign in to comment.