use of org.opentosca.toscana.model.artifact.Repository in project TOSCAna by StuPro-TOSCAna.
the class LinkResolverTest method resolveRepositoryLink.
@Test
public void resolveRepositoryLink() {
EffectiveModel model = new EffectiveModelFactory().create(REPOSITORY, logMock());
WebServer node = (WebServer) model.getNodeMap().get("test-node");
Set<Artifact> artifacts = node.getArtifacts();
Artifact artifact = artifacts.iterator().next();
assertNotNull(artifact);
Optional<Repository> repo = artifact.getRepository();
assertTrue(repo.isPresent());
assertEquals("http://test.repo.com/", repo.get().getUrl());
}
Aggregations