use of org.opentosca.toscana.model.node.custom.JavaRuntime in project TOSCAna by StuPro-TOSCAna.
the class NodeConvertTest method java.
@Test
public void java() {
EffectiveModel model = new EffectiveModelFactory().create(JAVA, logMock());
JavaApplication app = (JavaApplication) model.getNodeMap().get("app");
assertEquals("test-vm_options", app.getVmOptions().get());
assertEquals("test-arguments", app.getArguments().get());
Artifact artifact = app.getJar();
assertEquals("test-artifact-path", artifact.getFilePath());
JavaRuntime jre = (JavaRuntime) model.getNodeMap().get("jre");
assertEquals("1.8", jre.getComponentVersion().get());
}
Aggregations