|
27 | 27 |
|
28 | 28 | import javax.inject.Inject; |
29 | 29 |
|
| 30 | +import org.junit.After; |
| 31 | +import org.junit.Before; |
| 32 | +import org.junit.Rule; |
| 33 | +import org.junit.Test; |
| 34 | +import org.junit.rules.ExpectedException; |
| 35 | +import org.mockito.Mock; |
| 36 | +import org.mockito.Mockito; |
| 37 | +import org.mockito.MockitoAnnotations; |
| 38 | + |
30 | 39 | import org.apache.cloudstack.acl.ControlledEntity; |
31 | 40 | import org.apache.cloudstack.acl.SecurityChecker.AccessType; |
32 | 41 | import org.apache.cloudstack.api.command.user.volume.DetachVolumeCmd; |
|
39 | 48 | import org.apache.cloudstack.framework.jobs.impl.AsyncJobVO; |
40 | 49 | import org.apache.cloudstack.storage.datastore.db.PrimaryDataStoreDao; |
41 | 50 | import org.apache.cloudstack.storage.datastore.db.StoragePoolVO; |
42 | | -import org.junit.After; |
43 | | -import org.junit.Before; |
44 | | -import org.junit.Rule; |
45 | | -import org.junit.Test; |
46 | | -import org.junit.rules.ExpectedException; |
47 | | -import org.mockito.Mock; |
48 | | -import org.mockito.Mockito; |
49 | | -import org.mockito.MockitoAnnotations; |
50 | 51 |
|
51 | 52 | import com.cloud.exception.InvalidParameterValueException; |
52 | 53 | import com.cloud.hypervisor.Hypervisor.HypervisorType; |
@@ -232,7 +233,7 @@ public void setup() throws Exception { |
232 | 233 | } |
233 | 234 |
|
234 | 235 | // helper methods mock |
235 | | - doNothing().when(_svc._accountMgr).checkAccess(any(Account.class), any(AccessType.class), any(Boolean.class), any(ControlledEntity.class)); |
| 236 | + doNothing().when(_svc._accountMgr).checkAccess(any(Account.class), any(AccessType.class), any(ControlledEntity.class)); |
236 | 237 | doNothing().when(_svc._jobMgr).updateAsyncJobAttachment(any(Long.class), any(String.class), any(Long.class)); |
237 | 238 | when(_svc._jobMgr.submitAsyncJob(any(AsyncJobVO.class), any(String.class), any(Long.class))).thenReturn(1L); |
238 | 239 | } |
|
0 commit comments