IMAP: Finish test when index 1 passed to areMoreMessagesAvailable
This commit is contained in:
parent
0a7de4b645
commit
dfc3212ca5
1 changed files with 3 additions and 1 deletions
|
@ -787,6 +787,7 @@ public class ImapFolderTest {
|
|||
assertFalse(result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void areMoreMessagesAvailable_withIndexOf1_shouldReturnFalseWithoutPerformingSearch() throws Exception {
|
||||
ImapFolder folder = createFolder("Folder");
|
||||
prepareImapFolderForOpen(OPEN_MODE_RW);
|
||||
|
@ -794,7 +795,8 @@ public class ImapFolderTest {
|
|||
|
||||
boolean result = folder.areMoreMessagesAvailable(1, null);
|
||||
|
||||
verify(imapConnection, never()).executeSimpleCommand(anyString());
|
||||
//SELECT during OPEN
|
||||
verify(imapConnection, times(1)).executeSimpleCommand(anyString());
|
||||
|
||||
assertFalse(result);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue