Search in sources :

Example 1 with PluginService

use of org.opentosca.toscana.core.plugin.PluginService in project TOSCAna by StuPro-TOSCAna.

the class TransformerHealthIndicatorTest method setUp.

@Before
public void setUp() throws Exception {
    mapper = new ObjectMapper();
    pluginService = mock(PluginService.class);
    repository = mock(CsarDao.class);
    when(pluginService.getSupportedPlatforms()).thenReturn(new HashSet<>());
    when(repository.findAll()).thenReturn(new ArrayList<>());
    indicator = new TransformerHealthIndicator(repository, pluginService);
}
Also used : PluginService(org.opentosca.toscana.core.plugin.PluginService) CsarDao(org.opentosca.toscana.core.csar.CsarDao) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) Before(org.junit.Before)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 Before (org.junit.Before)1 CsarDao (org.opentosca.toscana.core.csar.CsarDao)1 PluginService (org.opentosca.toscana.core.plugin.PluginService)1