Skip to content

Commit

Permalink
fix some format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomuri committed Nov 14, 2023
1 parent fa305a0 commit 931ca69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public PortNumber getOutPort() {
} else {
if (flowPath.getSegments().isEmpty()) {
throw new IllegalStateException(
format("Multi switch flow path %s has no segments", flowPath.getPathId()));
format("Multi-switch flow path %s has no segments", flowPath.getPathId()));
}
return new PortNumber(flowPath.getSegments().get(0).getSrcPort());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2021 Telstra Open Source
/* Copyright 2023 Telstra Open Source
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public void sendFlowListOnSwitchCommandHaFlow() {
verifyNoMoreInteractions(carrier);
}

@Test void activateFlowMonitoringForSwitchForward() {
@Test
void activateFlowMonitoringForSwitchForward() {
flowRttService.activateFlowMonitoringForSwitch(SWITCH_ID_1);
verify(carrier).notifyActivateFlowMonitoring(SUB_FLOW_ID_A, SWITCH_ID_1, SWITCH_ID_2,
PORT_1, 0, 0, true);
Expand All @@ -82,14 +83,16 @@ public void sendFlowListOnSwitchCommandHaFlow() {
verifyNoMoreInteractions(carrier);
}

@Test void activateFlowMonitoringForSwitchReverse() {
@Test
void activateFlowMonitoringForSwitchReverse() {
flowRttService.activateFlowMonitoringForSwitch(SWITCH_ID_2);
verify(carrier).notifyActivateFlowMonitoring(SUB_FLOW_ID_A, SWITCH_ID_1, SWITCH_ID_2,
PORT_1, 0, 0, false);
verifyNoMoreInteractions(carrier);
}

@Test void activateFlowMonitoringNoRtt() {
@Test
void activateFlowMonitoringNoRtt() {
flowRttService.activateFlowMonitoring(SUB_FLOW_ID_A, SWITCH_ID_3, SWITCH_ID_2,
PORT_1, 0, 0, true);
verifyNoMoreInteractions(carrier);
Expand Down

0 comments on commit 931ca69

Please sign in to comment.