@Test(expected = IllegalArgumentException.class) public void getMessagesNullTest() { container.getMessages(null); }
public SortedSet<AcceptedMessage> getMessages() { synchronized (lock) { if (expirationTimer == null) { expireMessages(); } return emptyMessageSet(tagMessages.get(MESSAGES_MAIN_PAGE_TAG)); } }
MessagesContainer { public SortedSet<AcceptedMessage> getMessages() { synchronized (lock) { if (expirationTimer == null) { expireMessages(); } return emptyMessageSet(tagMessages.get(MESSAGES_MAIN_PAGE_TAG)); } } }
MessagesContainer { public SortedSet<AcceptedMessage> getMessages() { synchronized (lock) { if (expirationTimer == null) { expireMessages(); } return emptyMessageSet(tagMessages.get(MESSAGES_MAIN_PAGE_TAG)); } }  }
MessagesContainer { public SortedSet<AcceptedMessage> getMessages() { synchronized (lock) { if (expirationTimer == null) { expireMessages(); } return emptyMessageSet(tagMessages.get(MESSAGES_MAIN_PAGE_TAG)); } }  Set<AcceptedMessage> getAllMessages(); SortedSet<AcceptedMessage> getMessages(); SortedSet<AcceptedMessage> getMessages(final String tag); void addMessage(final Message m); void removeAnyMessage(Set<String> tags); void removeAnyMessage(Set<String> tags, String text); void setMessageLimit(int limit); void startExpirationTimer(); void stopExpirationTimer(); }
MessagesContainer { public SortedSet<AcceptedMessage> getMessages() { synchronized (lock) { if (expirationTimer == null) { expireMessages(); } return emptyMessageSet(tagMessages.get(MESSAGES_MAIN_PAGE_TAG)); } }  Set<AcceptedMessage> getAllMessages(); SortedSet<AcceptedMessage> getMessages(); SortedSet<AcceptedMessage> getMessages(final String tag); void addMessage(final Message m); void removeAnyMessage(Set<String> tags); void removeAnyMessage(Set<String> tags, String text); void setMessageLimit(int limit); void startExpirationTimer(); void stopExpirationTimer(); static final String MESSAGES_MAIN_PAGE_TAG; }