use of org.opentosca.toscana.model.node.SoftwareComponent in project TOSCAna by StuPro-TOSCAna.
the class NodeConvertTest method softwareComponent.
@Test
public void softwareComponent() {
EffectiveModel model = new EffectiveModelFactory().create(SOFTWARE_COMPONENT, logMock());
SoftwareComponent softwareComponent = (SoftwareComponent) model.getNodes().iterator().next();
Credential credential = softwareComponent.getAdminCredential().get();
assertEquals("securePassword", credential.getToken());
assertEquals("alice", credential.getUser().get());
assertEquals("3.5.1", softwareComponent.getComponentVersion().get());
}
Aggregations