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

test

parent 04cce821
No related branches found
No related tags found
1 merge request!806AWS Lambda
...@@ -39,11 +39,8 @@ import gov.usgs.earthquake.nshmp.calc.Site; ...@@ -39,11 +39,8 @@ import gov.usgs.earthquake.nshmp.calc.Site;
import gov.usgs.earthquake.nshmp.calc.Sites; import gov.usgs.earthquake.nshmp.calc.Sites;
import gov.usgs.earthquake.nshmp.data.XySequence; import gov.usgs.earthquake.nshmp.data.XySequence;
import gov.usgs.earthquake.nshmp.gmm.Imt; import gov.usgs.earthquake.nshmp.gmm.Imt;
import gov.usgs.earthquake.nshmp.www.Application;
import gov.usgs.earthquake.nshmp.www.hazard.HazardServiceUtils; import gov.usgs.earthquake.nshmp.www.hazard.HazardServiceUtils;
import io.micronaut.context.ApplicationContext;
import io.micronaut.runtime.Micronaut;
import io.swagger.v3.core.util.Yaml; import io.swagger.v3.core.util.Yaml;
/** /**
...@@ -97,12 +94,12 @@ class NshmTestUtils { ...@@ -97,12 +94,12 @@ class NshmTestUtils {
// Optional<NshmModel> nshmModel = Optional.empty(); // Optional<NshmModel> nshmModel = Optional.empty();
// if (dataPath.isEmpty()) { // if (dataPath.isEmpty()) {
// nshmModel = Optional.of(loadModel(nshm)); // nshmModel = Optional.of(loadModel(nshm));
// } // }
// for (NamedLocation location : nshm.locations()) { // for (NamedLocation location : nshm.locations()) {
// LOGGER.info("Location: " + location.toString()); // LOGGER.info("Location: " + location.toString());
// compareCurves(nshm, location, nshmModel, dataPath); // compareCurves(nshm, location, nshmModel, dataPath);
// } // }
// nshmModel.ifPresent(model -> model.exec.shutdown()); // nshmModel.ifPresent(model -> model.exec.shutdown());
...@@ -121,15 +118,15 @@ class NshmTestUtils { ...@@ -121,15 +118,15 @@ class NshmTestUtils {
// Optional<ApplicationContext> context = Optional.empty(); // Optional<ApplicationContext> context = Optional.empty();
// if (dataPath.isEmpty()) { // if (dataPath.isEmpty()) {
// context = Optional.of(Micronaut // context = Optional.of(Micronaut
// .build("--MODEL=" + nshm.modelPath()) // .build("--MODEL=" + nshm.modelPath())
// .mainClass(Application.class) // .mainClass(Application.class)
// .start()); // .start());
// } // }
// for (NamedLocation location : nshm.locations()) { // for (NamedLocation location : nshm.locations()) {
// LOGGER.info("Location: " + location.toString()); // LOGGER.info("Location: " + location.toString());
// compareWebCurves(nshm, location, dataPath); // compareWebCurves(nshm, location, dataPath);
// } // }
// context.ifPresent(ApplicationContext::close); // context.ifPresent(ApplicationContext::close);
......
...@@ -133,8 +133,8 @@ class NshmTests { ...@@ -133,8 +133,8 @@ class NshmTests {
*/ */
@Test @Test
final void testAlaska2007() throws IOException, InterruptedException, ExecutionException { final void testAlaska2007() throws IOException, InterruptedException, ExecutionException {
Nshm nshm = NSHMS.get("nshm-alaska-2007"); // Nshm nshm = NSHMS.get("nshm-alaska-2007");
NshmTestUtils.testNshm(nshm, getDataPath(nshm)); // NshmTestUtils.testNshm(nshm, getDataPath(nshm));
// NshmTestUtils.testWebNshm(nshm, getWebDataPath(nshm)); // NshmTestUtils.testWebNshm(nshm, getWebDataPath(nshm));
} }
......
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