public void testrequestTicket() { try { assertNotNull(ent1.requestTicket()); } catch (BarrierException e) { e.getMessage(); } }
public void testpassBarrier() { try { ent1.passBarrier(); } catch (BarrierException e) { e.getMessage(); } assertEquals(false, ent1.isRaised()); }
public void testRemoveTicket() { try { ent1.requestTicket(); ent1.removeTicket(); } catch (BarrierException e) { e.getMessage(); } assertEquals(true, ent1.isRaised()); }