@@ -601,7 +601,7 @@ List<CapacityVO> getClusterCapacities() {
601601 when (memCapacity2 .getTotalCapacity ()).thenReturn (8589934592L );
602602 when (memCapacity2 .getReservedCapacity ()).thenReturn (0L );
603603 when (memCapacity2 .getUsedCapacity ()).thenReturn (1073741824L );
604- when (memCapacity1 .getCapacityType ()).thenReturn (CapacityVO .CAPACITY_TYPE_MEMORY );
604+ when (memCapacity2 .getCapacityType ()).thenReturn (CapacityVO .CAPACITY_TYPE_MEMORY );
605605 return Arrays .asList (cpuCapacity1 , memCapacity1 , cpuCapacity2 , memCapacity2 );
606606 }
607607
@@ -616,27 +616,27 @@ List<CapacityVO> getPodCapacities() {
616616
617617 CapacityVO cpuCapacity2 = mock (CapacityVO .class );
618618 when (cpuCapacity2 .getPodId ()).thenReturn (2L );
619- when (cpuCapacity1 .getClusterId ()).thenReturn (1L );
619+ when (cpuCapacity2 .getClusterId ()).thenReturn (1L );
620620 when (cpuCapacity2 .getTotalCapacity ()).thenReturn (32000L );
621621 when (cpuCapacity2 .getReservedCapacity ()).thenReturn (0L );
622622 when (cpuCapacity2 .getUsedCapacity ()).thenReturn (500L );
623623 when (cpuCapacity2 .getCapacityType ()).thenReturn (CapacityVO .CAPACITY_TYPE_CPU );
624624
625625 CapacityVO memCapacity1 = mock (CapacityVO .class );
626626 when (memCapacity1 .getPodId ()).thenReturn (1L );
627- when (cpuCapacity1 .getClusterId ()).thenReturn (1L );
627+ when (memCapacity1 .getClusterId ()).thenReturn (1L );
628628 when (memCapacity1 .getTotalCapacity ()).thenReturn (8589934592L );
629629 when (memCapacity1 .getReservedCapacity ()).thenReturn (0L );
630630 when (memCapacity1 .getUsedCapacity ()).thenReturn (536870912L );
631631 when (memCapacity1 .getCapacityType ()).thenReturn (CapacityVO .CAPACITY_TYPE_MEMORY );
632632
633633 CapacityVO memCapacity2 = mock (CapacityVO .class );
634634 when (memCapacity2 .getPodId ()).thenReturn (2L );
635- when (cpuCapacity1 .getClusterId ()).thenReturn (1L );
635+ when (memCapacity2 .getClusterId ()).thenReturn (1L );
636636 when (memCapacity2 .getTotalCapacity ()).thenReturn (8589934592L );
637637 when (memCapacity2 .getReservedCapacity ()).thenReturn (0L );
638638 when (memCapacity2 .getUsedCapacity ()).thenReturn (1073741824L );
639- when (memCapacity1 .getCapacityType ()).thenReturn (CapacityVO .CAPACITY_TYPE_MEMORY );
639+ when (memCapacity2 .getCapacityType ()).thenReturn (CapacityVO .CAPACITY_TYPE_MEMORY );
640640 return Arrays .asList (cpuCapacity1 , memCapacity1 , cpuCapacity2 , memCapacity2 );
641641 }
642642}
0 commit comments