Skip to content
Snippets Groups Projects
Commit b384c88d authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

test

parent c84cb368
No related branches found
No related tags found
Loading
......@@ -16,6 +16,7 @@ import java.util.Map.Entry;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.logging.Logger;
import java.util.stream.Collectors;
import com.fasterxml.jackson.databind.JsonNode;
......@@ -40,6 +41,7 @@ import io.swagger.v3.core.util.Yaml;
* Utilities to run tests on a NSHM.
*/
class NshmTestUtils {
private static Logger LOGGER = Logger.getAnonymousLogger();
private static final Path DATA_PATH = Paths.get("src/test/resources/e2e");
private static final double TOLERANCE = 1e-12;
......@@ -55,6 +57,7 @@ class NshmTestUtils {
*/
static NshmModel loadModel(Nshm nshm) {
int cores = Runtime.getRuntime().availableProcessors();
LOGGER.info("Cores: " + cores);
return new NshmModel(
nshm,
ModelLoader.load(nshm.modelPath()),
......@@ -80,8 +83,11 @@ class NshmTestUtils {
*/
static void testNshm(Nshm nshm) {
NshmModel nshmModel = loadModel(nshm);
LOGGER.info("Model loaded");
LOGGER.info("Number of sites: " + nshm.locations().size());
for (NamedLocation location : nshm.locations()) {
LOGGER.info("Location: " + location.toString());
compareCurves(nshmModel, location);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment