targetFlow.setDescription(flow.getDescription());
}
if (flow.hasType()) {
- convertFlowType(flow.getType()).ifPresent(targetFlow::setFlowType);
+ convertFlowType(flow.getType()).ifPresent(targetFlow::setType);
}
return targetFlow.build();
}).collect(Collectors.toList());
assertThat(response.getKey()).isEqualTo(hotspot.getKey());
assertThat(response.getFlowsCount()).isEqualTo(2);
assertThat(response.getFlows(0).getDescription()).isEqualTo("FLOW DESCRIPTION");
- assertThat(response.getFlows(0).getFlowType()).isEqualTo(Common.FlowType.DATA);
+ assertThat(response.getFlows(0).getType()).isEqualTo(Common.FlowType.DATA);
assertThat(response.getFlows(0).getLocationsList())
.extracting(Location::getMsg, Location::getComponent)
.containsExactlyInAnyOrder(
tuple("FLOW MESSAGE WITHOUT FILE UUID", file.getKey()));
assertThat(response.getFlows(1).getDescription()).isEmpty();
- assertThat(response.getFlows(1).hasFlowType()).isFalse();
+ assertThat(response.getFlows(1).hasType()).isFalse();
}
@Test