use of org.openkilda.atdd.staging.model.topology.TopologyDefinition in project open-kilda by telstra.
the class FlowCrudStepsTest method setUp.
@Before
public void setUp() throws IOException {
MockitoAnnotations.initMocks(this);
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
mapper.enable(MapperFeature.ACCEPT_CASE_INSENSITIVE_ENUMS);
TopologyDefinition topology = mapper.readValue(getClass().getResourceAsStream("/5-switch-test-topology.yaml"), TopologyDefinition.class);
when(topologyDefinition.getActiveSwitches()).thenReturn(topology.getActiveSwitches());
}
Aggregations