Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Rohit Yadav <[email protected]>
  • Loading branch information
gzhao9 and rohityadavcloud authored Oct 25, 2023
1 parent b6369bc commit a5b5015
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public void testMigrateWithStorageSendCommand() {
final Connection conn = Mockito.mock(Connection.class);
final VirtualMachineTO vmSpec = Mockito.mock(VirtualMachineTO.class);

final VolumeTO volume1 =MockVolumeTO(path);
final VolumeTO volume1 = MockVolumeTO(path);
final VolumeTO volume2 = MockVolumeTO(path);

final SR sr1 = Mockito.mock(SR.class);
Expand Down Expand Up @@ -475,6 +475,7 @@ public void testXenServer610MigrateVolumeCommandWrapper() {

assertFalse(answer.getResult());
}

VolumeTO MockVolumeTO(String path){
VolumeTO vol = Mockito.mock(VolumeTO.class);
when(vol.getPath()).thenReturn(path);
Expand Down

0 comments on commit a5b5015

Please sign in to comment.