Pe { protected void setId(int id) { this.id = id; } Pe(int id, PeProvisioner peProvisioner); int getId(); void setMips(double d); int getMips(); int getStatus(); void setStatusFree(); void setStatusBusy(); void setStatusFailed(); void setStatus(int status); PeProvisioner getPeProvisioner(); static final int FREE; static final int BUSY; static final int FAILED; }
@Test public void testSetId() { Pe pe = new Pe(0, null); assertEquals(0, pe.getId()); pe.setId(1); assertEquals(1, pe.getId()); }