use of org.openkilda.northbound.dto.v1.switches.GroupsValidationDto in project open-kilda by telstra.
the class JsonSerializationTest method switchValidateResultTest.
@Test
public void switchValidateResultTest() throws IOException {
RulesValidationDto rules = new RulesValidationDto(singletonList(0L), singletonList(1L), singletonList(2L), singletonList(3L));
MetersValidationDto meters = new MetersValidationDto(emptyList(), emptyList(), emptyList(), emptyList());
GroupsValidationDto groups = new GroupsValidationDto(emptyList(), emptyList(), emptyList(), emptyList());
LogicalPortsValidationDto logicalPorts = new LogicalPortsValidationDto(emptyList(), emptyList(), emptyList(), emptyList());
SwitchValidationResult dto = new SwitchValidationResult(rules, meters, groups, logicalPorts);
assertEquals(dto, pass(dto, SwitchValidationResult.class));
}
Aggregations