Skip to content

Commit

Permalink
Merge pull request #321 from cqframework/HotFixCqfToolingExtensionError
Browse files Browse the repository at this point in the history
Hot fix cqf tooling extension error
  • Loading branch information
bryantaustin13 authored Dec 6, 2021
2 parents fea0696 + c0093b8 commit 2282d90
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/test/java/org/opencds/cqf/tooling/RefreshTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;

import com.google.common.base.Strings;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package org.opencds.cqf.tooling.library;

import java.util.ArrayList;

import org.opencds.cqf.tooling.RefreshTest;
import org.opencds.cqf.tooling.parameter.RefreshLibraryParameters;
import org.opencds.cqf.tooling.utilities.IOUtils;
import org.opencds.cqf.tooling.utilities.IOUtils.Encoding;
import org.testng.annotations.BeforeMethod;

Expand All @@ -16,8 +13,6 @@ public abstract class LibraryProcessorTest extends RefreshTest {
// When running mvn package there is some collisions between tests running while trying to delete this directory
@BeforeMethod
public void setUp() throws Exception {
IOUtils.resourceDirectories = new ArrayList<String>();
IOUtils.clearDevicePaths();
// File dir = new File("target/refreshLibraries");
// if (dir.exists()) {
// FileUtils.deleteDirectory(dir);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package org.opencds.cqf.tooling.library.r4;

import java.io.File;
import java.util.ArrayList;

import org.apache.commons.io.FileUtils;
import org.opencds.cqf.tooling.library.LibraryProcessorTest;
import org.opencds.cqf.tooling.utilities.IOUtils;
import org.opencds.cqf.tooling.RefreshTest;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
Expand All @@ -21,6 +23,8 @@ public R4LibraryProcessorTest() {

@BeforeMethod
public void setUp() throws Exception {
IOUtils.resourceDirectories = new ArrayList<String>();
IOUtils.clearDevicePaths();
File dir = new File("target" + separator + "refreshLibraries" + separator + "r4");
if (dir.exists()) {
FileUtils.deleteDirectory(dir);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package org.opencds.cqf.tooling.library.stu3;

import java.io.File;
import java.util.ArrayList;

import org.apache.commons.io.FileUtils;
import org.opencds.cqf.tooling.library.LibraryProcessorTest;
import org.opencds.cqf.tooling.utilities.IOUtils;
import org.opencds.cqf.tooling.RefreshTest;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
Expand All @@ -22,6 +24,8 @@ public STU3LibraryProcessorTest() {

@BeforeMethod
public void setUp() throws Exception {
IOUtils.resourceDirectories = new ArrayList<String>();
IOUtils.clearDevicePaths();
File dir = new File("target" + separator + "refreshLibraries" + separator + "stu3");
if (dir.exists()) {
FileUtils.deleteDirectory(dir);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package org.opencds.cqf.tooling.measure.r4;

import java.io.File;
import java.util.ArrayList;

import org.apache.commons.io.FileUtils;
import org.opencds.cqf.tooling.measure.MeasureProcessorTest;
import org.opencds.cqf.tooling.utilities.IOUtils;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

Expand All @@ -18,6 +20,8 @@ public R4MeasureProcessorTest() {

@BeforeMethod
public void setUp() throws Exception {
IOUtils.resourceDirectories = new ArrayList<String>();
IOUtils.clearDevicePaths();
File dir = new File("target" + separator + "refreshMeasures" + separator + "r4");
if (dir.exists()) {
FileUtils.deleteDirectory(dir);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package org.opencds.cqf.tooling.measure.r4;

import java.io.File;
import java.util.ArrayList;

import org.apache.commons.io.FileUtils;
import org.opencds.cqf.tooling.RefreshTest;
import org.opencds.cqf.tooling.utilities.IOUtils;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

Expand All @@ -21,6 +23,8 @@ public RefreshR4MeasureOperationTest() {

@BeforeMethod
public void setUp() throws Exception {
IOUtils.resourceDirectories = new ArrayList<String>();
IOUtils.clearDevicePaths();
File dir = new File("target" + separator + "refreshMeasures" + separator + "r4");
if (dir.exists()) {
FileUtils.deleteDirectory(dir);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package org.opencds.cqf.tooling.measure.stu3;

import java.io.File;
import java.util.ArrayList;

import org.apache.commons.io.FileUtils;
import org.opencds.cqf.tooling.RefreshTest;
import org.opencds.cqf.tooling.utilities.IOUtils;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

Expand All @@ -21,6 +23,8 @@ public RefreshStu3MeasureOperationTest() {

@BeforeMethod
public void setUp() throws Exception {
IOUtils.resourceDirectories = new ArrayList<String>();
IOUtils.clearDevicePaths();
File dir = new File("target" + separator + "refreshMeasures" + separator + "stu3");
if (dir.exists()) {
FileUtils.deleteDirectory(dir);
Expand Down

0 comments on commit 2282d90

Please sign in to comment.