Fix warnings
This commit is contained in:
parent
f9853dce08
commit
6caada1b48
1 changed files with 2 additions and 4 deletions
|
@ -533,8 +533,7 @@ public class ImapFolderTest {
|
||||||
public void getHighestUid_imapConnectionThrowsNegativesResponse_shouldReturnMinus1() throws Exception {
|
public void getHighestUid_imapConnectionThrowsNegativesResponse_shouldReturnMinus1() throws Exception {
|
||||||
ImapFolder folder = createFolder("Folder");
|
ImapFolder folder = createFolder("Folder");
|
||||||
prepareImapFolderForOpen(OPEN_MODE_RW);
|
prepareImapFolderForOpen(OPEN_MODE_RW);
|
||||||
when(imapConnection.executeSimpleCommand("UID SEARCH *:*"))
|
doThrow(NegativeImapResponseException.class).when(imapConnection).executeSimpleCommand("UID SEARCH *:*");
|
||||||
.thenThrow(NegativeImapResponseException.class);
|
|
||||||
folder.open(OPEN_MODE_RW);
|
folder.open(OPEN_MODE_RW);
|
||||||
|
|
||||||
long highestUid = folder.getHighestUid();
|
long highestUid = folder.getHighestUid();
|
||||||
|
@ -546,8 +545,7 @@ public class ImapFolderTest {
|
||||||
public void getHighestUid_imapConnectionThrowsIOException_shouldThrowMessagingException() throws Exception {
|
public void getHighestUid_imapConnectionThrowsIOException_shouldThrowMessagingException() throws Exception {
|
||||||
ImapFolder folder = createFolder("Folder");
|
ImapFolder folder = createFolder("Folder");
|
||||||
prepareImapFolderForOpen(OPEN_MODE_RW);
|
prepareImapFolderForOpen(OPEN_MODE_RW);
|
||||||
when(imapConnection.executeSimpleCommand("UID SEARCH *:*"))
|
doThrow(IOException.class).when(imapConnection).executeSimpleCommand("UID SEARCH *:*");
|
||||||
.thenThrow(IOException.class);
|
|
||||||
folder.open(OPEN_MODE_RW);
|
folder.open(OPEN_MODE_RW);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue