Search in sources :

Example 11 with FlowMeter

use of org.openkilda.model.FlowMeter in project open-kilda by telstra.

the class FermaFlowMeterRepositoryTest method shouldCreateFlowMeter.

@Test
public void shouldCreateFlowMeter() {
    createFlowMeter();
    Collection<FlowMeter> allMeters = flowMeterRepository.findAll();
    FlowMeter foundMeter = allMeters.iterator().next();
    assertEquals(theSwitch.getSwitchId(), foundMeter.getSwitchId());
    assertEquals(TEST_FLOW_ID, foundMeter.getFlowId());
}
Also used : FlowMeter(org.openkilda.model.FlowMeter) InMemoryGraphBasedTest(org.openkilda.persistence.inmemory.InMemoryGraphBasedTest) Test(org.junit.Test)

Aggregations

FlowMeter (org.openkilda.model.FlowMeter)11 Test (org.junit.Test)4 InMemoryGraphBasedTest (org.openkilda.persistence.inmemory.InMemoryGraphBasedTest)4 MeterId (org.openkilda.model.MeterId)3 FlowPath (org.openkilda.model.FlowPath)2 PathId (org.openkilda.model.PathId)2 MeterInfoEntry (org.openkilda.messaging.info.switches.MeterInfoEntry)1 Flow (org.openkilda.model.Flow)1 SwitchId (org.openkilda.model.SwitchId)1 YFlow (org.openkilda.model.YFlow)1 SharedEndpoint (org.openkilda.model.YFlow.SharedEndpoint)1 YSubFlow (org.openkilda.model.YSubFlow)1 YFlowRepository (org.openkilda.persistence.repositories.YFlowRepository)1