Search in sources :

Example 1 with GroupsSyncDto

use of org.openkilda.northbound.dto.v1.switches.GroupsSyncDto in project open-kilda by telstra.

the class JsonSerializationTest method switchSyncResultTest.

@Test
public void switchSyncResultTest() throws IOException {
    RulesSyncDto rules = new RulesSyncDto(singletonList(0L), singletonList(1L), singletonList(2L), singletonList(3L), singletonList(4L), singletonList(5L));
    MetersSyncDto meters = new MetersSyncDto(emptyList(), emptyList(), emptyList(), emptyList(), emptyList(), emptyList());
    GroupsSyncDto groups = new GroupsSyncDto(emptyList(), emptyList(), emptyList(), emptyList(), emptyList(), emptyList(), emptyList());
    LogicalPortsSyncDto logicalPorts = new LogicalPortsSyncDto(emptyList(), emptyList(), emptyList(), emptyList(), emptyList(), emptyList());
    SwitchSyncResult dto = new SwitchSyncResult(rules, meters, groups, logicalPorts);
    assertEquals(dto, pass(dto, SwitchSyncResult.class));
}
Also used : GroupsSyncDto(org.openkilda.northbound.dto.v1.switches.GroupsSyncDto) RulesSyncDto(org.openkilda.northbound.dto.v1.switches.RulesSyncDto) LogicalPortsSyncDto(org.openkilda.northbound.dto.v1.switches.LogicalPortsSyncDto) MetersSyncDto(org.openkilda.northbound.dto.v1.switches.MetersSyncDto) SwitchSyncResult(org.openkilda.northbound.dto.v1.switches.SwitchSyncResult) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 GroupsSyncDto (org.openkilda.northbound.dto.v1.switches.GroupsSyncDto)1 LogicalPortsSyncDto (org.openkilda.northbound.dto.v1.switches.LogicalPortsSyncDto)1 MetersSyncDto (org.openkilda.northbound.dto.v1.switches.MetersSyncDto)1 RulesSyncDto (org.openkilda.northbound.dto.v1.switches.RulesSyncDto)1 SwitchSyncResult (org.openkilda.northbound.dto.v1.switches.SwitchSyncResult)1