@Test(expectedExceptions = UnsupportedOperationException.class) public void replyThrowsException() { new DefaultMessage("", "", "", false).reply("Reply body."); }
@Override public void reply(String body) throws UnsupportedOperationException { throw new UnsupportedOperationException(); }
DefaultMessage implements Message { @Override public void reply(String body) throws UnsupportedOperationException { throw new UnsupportedOperationException(); } }
DefaultMessage implements Message { @Override public void reply(String body) throws UnsupportedOperationException { throw new UnsupportedOperationException(); } DefaultMessage(String subject, String body, String queueGroup, boolean request); }
DefaultMessage implements Message { @Override public void reply(String body) throws UnsupportedOperationException { throw new UnsupportedOperationException(); } DefaultMessage(String subject, String body, String queueGroup, boolean request); @Override boolean isRequest(); @Override String getSubject(); String getQueueGroup(); @Override String getBody(); @Override void reply(String body); @Override void reply(String body, long delay, TimeUnit timeUnit); @Override String toString(); }
DefaultMessage implements Message { @Override public void reply(String body) throws UnsupportedOperationException { throw new UnsupportedOperationException(); } DefaultMessage(String subject, String body, String queueGroup, boolean request); @Override boolean isRequest(); @Override String getSubject(); String getQueueGroup(); @Override String getBody(); @Override void reply(String body); @Override void reply(String body, long delay, TimeUnit timeUnit); @Override String toString();  }