Repository: james-project Updated Branches: refs/heads/master 4e92aefcc -> efed669b3
remove eclipse warnings introduced recently Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/233a71dc Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/233a71dc Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/233a71dc Branch: refs/heads/master Commit: 233a71dc2323e1ca3c91601aa50fe644e2af04b9 Parents: 4e92aef Author: Antoine Duprat <[email protected]> Authored: Thu Mar 24 14:53:09 2016 +0100 Committer: Antoine Duprat <[email protected]> Committed: Thu Mar 24 14:53:09 2016 +0100 ---------------------------------------------------------------------- .../store/mail/model/AbstractMessageMapperTest.java | 2 +- .../mail/model/impl/SimpleMailboxMessageTest.java | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/233a71dc/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/AbstractMessageMapperTest.java ---------------------------------------------------------------------- diff --git a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/AbstractMessageMapperTest.java b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/AbstractMessageMapperTest.java index 30e261d..923c284 100644 --- a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/AbstractMessageMapperTest.java +++ b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/AbstractMessageMapperTest.java @@ -444,7 +444,7 @@ public abstract class AbstractMessageMapperTest<Id extends MailboxId> { message7.setModSeq(messageMapper.getHighestModSeq(benwaInboxMailbox)); assertThat(messageMapper.getLastUid(benwaInboxMailbox)).isGreaterThan(message6.getUid()); - MailboxMessage result = messageMapper.findInMailbox(benwaInboxMailbox, + MailboxMessage<Id> result = messageMapper.findInMailbox(benwaInboxMailbox, MessageRange.one(messageMapper.getLastUid(benwaInboxMailbox)), MessageMapper.FetchType.Full, LIMIT) http://git-wip-us.apache.org/repos/asf/james-project/blob/233a71dc/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessageTest.java ---------------------------------------------------------------------- diff --git a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessageTest.java b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessageTest.java index 17761a3..135dac4 100644 --- a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessageTest.java +++ b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessageTest.java @@ -60,15 +60,23 @@ public class SimpleMailboxMessageTest { @Test public void testInputStreamSize() throws IOException { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); - byteArrayOutputStream.write(MESSAGE.getFullContent()); - assertThat(byteArrayOutputStream.size()).isEqualTo(MESSAGE_CONTENT.getBytes().length); + try { + byteArrayOutputStream.write(MESSAGE.getFullContent()); + assertThat(byteArrayOutputStream.size()).isEqualTo(MESSAGE_CONTENT.getBytes().length); + } finally { + byteArrayOutputStream.close(); + } } @Test public void testInputStreamSizeSpecialCharacters() throws IOException { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); - byteArrayOutputStream.write(MESSAGE_SPECIAL_CHAR.getFullContent()); - assertThat(byteArrayOutputStream.size()).isEqualTo(MESSAGE_CONTENT_SPECIAL_CHAR.getBytes().length); + try { + byteArrayOutputStream.write(MESSAGE_SPECIAL_CHAR.getFullContent()); + assertThat(byteArrayOutputStream.size()).isEqualTo(MESSAGE_CONTENT_SPECIAL_CHAR.getBytes().length); + } finally { + byteArrayOutputStream.close(); + } } @Test --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
