@Test public void messageQueueTest() { MessageQueue msgQueue = new MessageQueue(); msgQueue.submitMsg(new Message("MessageQueue Test")); assertEquals(msgQueue.retrieveMsg().getMsg(), "MessageQueue Test"); }
public MessageQueue() { this.blkQueue = new ArrayBlockingQueue<Message>(1024); }
MessageQueue { public MessageQueue() { this.blkQueue = new ArrayBlockingQueue<Message>(1024); } }
MessageQueue { public MessageQueue() { this.blkQueue = new ArrayBlockingQueue<Message>(1024); } MessageQueue(); }
MessageQueue { public MessageQueue() { this.blkQueue = new ArrayBlockingQueue<Message>(1024); } MessageQueue(); void submitMsg(Message msg); Message retrieveMsg(); }
MessageQueue { public MessageQueue() { this.blkQueue = new ArrayBlockingQueue<Message>(1024); } MessageQueue(); void submitMsg(Message msg); Message retrieveMsg();  }