Search in sources :

Example 1 with PathDiscrepancyDto

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

the class JsonSerializationTest method pathDiscrepancyDtoTest.

@Test
public void pathDiscrepancyDtoTest() throws IOException {
    PathDiscrepancyDto dto = new PathDiscrepancyDto("rule", "field", "expected", "actual");
    assertEquals(dto, pass(dto, PathDiscrepancyDto.class));
}
Also used : PathDiscrepancyDto(org.openkilda.northbound.dto.v1.flows.PathDiscrepancyDto) Test(org.junit.Test)

Example 2 with PathDiscrepancyDto

use of org.openkilda.northbound.dto.v1.flows.PathDiscrepancyDto 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)2 PathDiscrepancyDto (org.openkilda.northbound.dto.v1.flows.PathDiscrepancyDto)2 FlowValidationDto (org.openkilda.northbound.dto.v1.flows.FlowValidationDto)1