コード例 #1
0
 @Test
 public void testModifyVmVideoCardVRamSizeEqualSizes() {
   _resource.modifyVmVideoCardVRamSize(videoCard, vmMo3dgpu, VIDEO_CARD_MEMORY_SIZE, vmConfigSpec);
   verify(_resource, never())
       .configureSpecVideoCardNewVRamSize(videoCard, VIDEO_CARD_MEMORY_SIZE, vmConfigSpec);
 }
コード例 #2
0
 @Test
 public void testModifyVmVideoCardVRamSizeDifferentVramSizes() {
   _resource.modifyVmVideoCardVRamSize(videoCard, vmMo3dgpu, VRAM_MEMORY_SIZE, vmConfigSpec);
   verify(_resource).configureSpecVideoCardNewVRamSize(videoCard, VRAM_MEMORY_SIZE, vmConfigSpec);
 }