Search in sources :

Example 1 with FlowValidationDto

use of org.openkilda.northbound.dto.v1.flows.FlowValidationDto in project open-kilda by telstra.

the class JsonSerializationTest method flowValidationDtoTest.

@Test
public void flowValidationDtoTest() throws IOException {
    PathDiscrepancyDto discrepancyDto = new PathDiscrepancyDto("rule", "field", "expected", "actual");
    FlowValidationDto dto = new FlowValidationDto(FLOW_ID, true, singletonList(0L), singletonList(1L), singletonList(discrepancyDto), 10, 11, 2, 4, true, true);
    assertEquals(dto, pass(dto, FlowValidationDto.class));
}
Also used : PathDiscrepancyDto(org.openkilda.northbound.dto.v1.flows.PathDiscrepancyDto) FlowValidationDto(org.openkilda.northbound.dto.v1.flows.FlowValidationDto) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 FlowValidationDto (org.openkilda.northbound.dto.v1.flows.FlowValidationDto)1 PathDiscrepancyDto (org.openkilda.northbound.dto.v1.flows.PathDiscrepancyDto)1