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));
}
Aggregations