Processor extends ResourceManageableAbstract { @Override public long getCapacity() { return super.getCapacity(); } Processor(Vm vm, double pesMips, long numberOfPes); private  Processor(); double getTotalMips(); double getMips(); void setMips(final double newMips); @Override long getCapacity(); @Override long getAvailableResource(); @Override long getAllocatedResource(); @Override boolean setCapacity(long numberOfPes); Vm getVm(); static final Processor NULL; }
@Test public void testGetCapacity() { final Processor instance = createDefaultProcessor(); final double expResult = PE_MIPS; assertEquals(expResult, instance.getMips()); }
@Test public void testGetNumberOfPesFromDefaultConstructor() { final Processor instance = createDefaultProcessor(); final int expResult = NUMBER_OF_PES; assertEquals(expResult, instance.getCapacity()); }