Skip to content

Commit e94280f

Browse files
committed
fix test
1 parent f7095c3 commit e94280f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

engine/storage/volume/src/test/java/org/apache/cloudstack/storage/volume/VolumeObjectTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import org.junit.Before;
5454
import org.junit.Test;
5555
import org.junit.runner.RunWith;
56-
import org.mockito.InjectMocks;
5756
import org.mockito.Mock;
5857
import org.mockito.Mockito;
5958
import org.mockito.Spy;
@@ -63,7 +62,6 @@
6362
public class VolumeObjectTest extends TestCase{
6463

6564
@Spy
66-
@InjectMocks
6765
VolumeObject volumeObjectSpy;
6866

6967
@Mock
@@ -98,6 +96,7 @@ public class VolumeObjectTest extends TestCase{
9896

9997
@Before
10098
public void setup(){
99+
volumeObjectSpy.orchestrationService = orchestrationServiceMock;
101100
Mockito.doReturn(new Pair<>(List.of(), Set.of())).when(orchestrationServiceMock).getVolumeCheckpointPathsAndImageStoreUrls(Mockito.anyLong(), Mockito.any());
102101
Mockito.doReturn(Hypervisor.HypervisorType.KVM).when(volumeObjectSpy).getHypervisorType();
103102
volumeObjectSpy.configure(dataStoreMock, volumeVoMock);

0 commit comments

Comments
 (0)