@Test public void testPut() { GuardedQueue g = new GuardedQueue(); g.put(12); assertEquals(Integer.valueOf(12), g.get()); }
public synchronized void put(Integer e) { LOGGER.info("putting"); sourceList.add(e); LOGGER.info("notifying"); notify(); }
GuardedQueue { public synchronized void put(Integer e) { LOGGER.info("putting"); sourceList.add(e); LOGGER.info("notifying"); notify(); } }
GuardedQueue { public synchronized void put(Integer e) { LOGGER.info("putting"); sourceList.add(e); LOGGER.info("notifying"); notify(); } GuardedQueue(); }
GuardedQueue { public synchronized void put(Integer e) { LOGGER.info("putting"); sourceList.add(e); LOGGER.info("notifying"); notify(); } GuardedQueue(); synchronized Integer get(); synchronized void put(Integer e); }
GuardedQueue { public synchronized void put(Integer e) { LOGGER.info("putting"); sourceList.add(e); LOGGER.info("notifying"); notify(); } GuardedQueue(); synchronized Integer get(); synchronized void put(Integer e);  }