@@ -1666,7 +1666,6 @@ public void testStoragePoolCompatibilityAndAllowEncryptedVolumeMigrationForPower
16661666 @ Test
16671667 public void testValidationsForCheckVolumeAPI () {
16681668 VolumeVO volume = mock (VolumeVO .class );
1669- when (volumeDaoMock .findById (1L )).thenReturn (volume );
16701669
16711670 AccountVO account = new AccountVO ("admin" , 1L , "networkDomain" , Account .Type .NORMAL , "uuid" );
16721671 UserVO user = new UserVO (1 , "testuser" , "password" , "firstname" , "lastName" , "email" , "timezone" , UUID .randomUUID ().toString (), User .Source .UNKNOWN );
@@ -1688,7 +1687,6 @@ public void testValidationsForCheckVolumeAPI() {
16881687 @ Test (expected = InvalidParameterValueException .class )
16891688 public void testValidationsForCheckVolumeAPIWithRunningVM () {
16901689 VolumeVO volume = mock (VolumeVO .class );
1691- when (volumeDaoMock .findById (1L )).thenReturn (volume );
16921690
16931691 AccountVO account = new AccountVO ("admin" , 1L , "networkDomain" , Account .Type .NORMAL , "uuid" );
16941692 UserVO user = new UserVO (1 , "testuser" , "password" , "firstname" , "lastName" , "email" , "timezone" , UUID .randomUUID ().toString (), User .Source .UNKNOWN );
@@ -1707,7 +1705,6 @@ public void testValidationsForCheckVolumeAPIWithRunningVM() {
17071705 @ Test (expected = InvalidParameterValueException .class )
17081706 public void testValidationsForCheckVolumeAPIWithNonexistedVM () {
17091707 VolumeVO volume = mock (VolumeVO .class );
1710- when (volumeDaoMock .findById (1L )).thenReturn (volume );
17111708
17121709 AccountVO account = new AccountVO ("admin" , 1L , "networkDomain" , Account .Type .NORMAL , "uuid" );
17131710 UserVO user = new UserVO (1 , "testuser" , "password" , "firstname" , "lastName" , "email" , "timezone" , UUID .randomUUID ().toString (), User .Source .UNKNOWN );
@@ -1724,7 +1721,6 @@ public void testValidationsForCheckVolumeAPIWithNonexistedVM() {
17241721 @ Test (expected = InvalidParameterValueException .class )
17251722 public void testValidationsForCheckVolumeAPIWithAllocatedVolume () {
17261723 VolumeVO volume = mock (VolumeVO .class );
1727- when (volumeDaoMock .findById (1L )).thenReturn (volume );
17281724
17291725 AccountVO account = new AccountVO ("admin" , 1L , "networkDomain" , Account .Type .NORMAL , "uuid" );
17301726 UserVO user = new UserVO (1 , "testuser" , "password" , "firstname" , "lastName" , "email" , "timezone" , UUID .randomUUID ().toString (), User .Source .UNKNOWN );
@@ -1744,7 +1740,6 @@ public void testValidationsForCheckVolumeAPIWithAllocatedVolume() {
17441740 @ Test (expected = InvalidParameterValueException .class )
17451741 public void testValidationsForCheckVolumeAPIWithNonKVMhypervisor () {
17461742 VolumeVO volume = mock (VolumeVO .class );
1747- when (volumeDaoMock .findById (1L )).thenReturn (volume );
17481743
17491744 AccountVO account = new AccountVO ("admin" , 1L , "networkDomain" , Account .Type .NORMAL , "uuid" );
17501745 UserVO user = new UserVO (1 , "testuser" , "password" , "firstname" , "lastName" , "email" , "timezone" , UUID .randomUUID ().toString (), User .Source .UNKNOWN );
0 commit comments