Skip to content
Snippets Groups Projects

AWS Lambda

1 file
+ 21
21
Compare changes
  • Side-by-side
  • Inline
@@ -94,18 +94,18 @@ class NshmTestUtils {
*/
static void testNshm(Nshm nshm, Optional<Path> dataPath)
throws InterruptedException, ExecutionException {
Optional<NshmModel> nshmModel = Optional.empty();
// Optional<NshmModel> nshmModel = Optional.empty();
if (dataPath.isEmpty()) {
nshmModel = Optional.of(loadModel(nshm));
}
// if (dataPath.isEmpty()) {
// nshmModel = Optional.of(loadModel(nshm));
// }
for (NamedLocation location : nshm.locations()) {
LOGGER.info("Location: " + location.toString());
compareCurves(nshm, location, nshmModel, dataPath);
}
// for (NamedLocation location : nshm.locations()) {
// LOGGER.info("Location: " + location.toString());
// compareCurves(nshm, location, nshmModel, dataPath);
// }
nshmModel.ifPresent(model -> model.exec.shutdown());
// nshmModel.ifPresent(model -> model.exec.shutdown());
}
/**
@@ -118,21 +118,21 @@ class NshmTestUtils {
static void testWebNshm(Nshm nshm, Optional<Path> dataPath)
throws InterruptedException, ExecutionException {
Optional<ApplicationContext> context = Optional.empty();
// Optional<ApplicationContext> context = Optional.empty();
if (dataPath.isEmpty()) {
context = Optional.of(Micronaut
.build("--MODEL=" + nshm.modelPath())
.mainClass(Application.class)
.start());
}
// if (dataPath.isEmpty()) {
// context = Optional.of(Micronaut
// .build("--MODEL=" + nshm.modelPath())
// .mainClass(Application.class)
// .start());
// }
for (NamedLocation location : nshm.locations()) {
LOGGER.info("Location: " + location.toString());
compareWebCurves(nshm, location, dataPath);
}
// for (NamedLocation location : nshm.locations()) {
// LOGGER.info("Location: " + location.toString());
// compareWebCurves(nshm, location, dataPath);
// }
context.ifPresent(ApplicationContext::close);
// context.ifPresent(ApplicationContext::close);
}
/**
Loading