VmSchedulerTimeShared extends VmScheduler { @Override public double getMaxAvailableMips() { return getAvailableMips(); } VmSchedulerTimeShared(List<? extends Pe> pelist); @Override boolean allocatePesForVm(Vm vm, List<Double> mipsShareRequested); @Override void deallocatePesForVm(Vm vm); @Override void deallocatePesForAllVms(); @Override double getMaxAvailableMips();  }
@Test public void testInit() { assertSame(peList, vmScheduler.getPeList()); assertEquals(PeList.getTotalMips(peList), vmScheduler.getAvailableMips(), 0); assertEquals(PeList.getTotalMips(peList), vmScheduler.getMaxAvailableMips(), 0); assertEquals(0, vmScheduler.getTotalAllocatedMipsForVm(vm1), 0); }