reduce memory use in tests?

This commit is contained in:
Grahame Grieve 2023-03-29 20:58:06 +11:00
parent bbdb3dea89
commit 4f8a8108a4
2 changed files with 8 additions and 2 deletions

View File

@ -108,7 +108,7 @@ public class SnapShotGenerationXTests {
sort = "true".equals(test.getAttribute("sort")); sort = "true".equals(test.getAttribute("sort"));
fail = "true".equals(test.getAttribute("fail")); fail = "true".equals(test.getAttribute("fail"));
newSliceProcessing = !"false".equals(test.getAttribute("new-slice-processing")); newSliceProcessing = !"false".equals(test.getAttribute("new-slice-processing"));
debug = "true".equals(test.getAttribute("debug")); debug = false; // "true".equals(test.getAttribute("debug"));
id = test.getAttribute("id"); id = test.getAttribute("id");
include = test.getAttribute("include"); include = test.getAttribute("include");
@ -327,7 +327,7 @@ public class SnapShotGenerationXTests {
@Override @Override
public boolean log(String argument, List<Base> focus) { public boolean log(String argument, List<Base> focus) {
System.out.println(argument + ": " + fp.convertToString(focus)); // System.out.println(argument + ": " + fp.convertToString(focus));
return true; return true;
} }

View File

@ -78,6 +78,7 @@ import org.hl7.fhir.validation.instance.InstanceValidator;
import org.junit.AfterClass; import org.junit.AfterClass;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.junit.runners.Parameterized; import org.junit.runners.Parameterized;
@ -134,6 +135,11 @@ public class ValidationTests implements IEvaluationContext, IValidatorResourceFe
this.content = content; this.content = content;
} }
@AfterAll
public void cleanup() {
ve = null;
}
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
@Test @Test
public void test() throws Exception { public void test() throws Exception {