use of org.eclipse.winery.repository.targetallocation.Criteria in project winery by eclipse.
the class MinExternalConnectionsTest method performanceTest.
@Test
public void performanceTest() throws Exception {
ServiceTemplateId id = new ServiceTemplateId("http://www.winery.opentosca.org/test/targetallocation/servicetemplates", "MinExternalConnectionsTest2", false);
TopologyWrapper topology = new TopologyWrapper(repository.getElement(id).getTopologyTemplate());
Criteria minExternalConnections = new MinExternalConnections(null, Integer.MAX_VALUE);
List<TopologyWrapper> topologies = minExternalConnections.allocate(topology);
for (TopologyWrapper allocated : topologies) {
assertEquals(22, allocated.getNodeTemplates().size());
}
}
Aggregations