INT-1923 fixed broken test

This commit is contained in:
Oleg Zhurakousky
2011-07-14 08:34:24 -04:00
parent 286d5afdac
commit 73c1f3b4ee

View File

@@ -362,6 +362,11 @@ public class ImapMailReceiverTests {
when(folder.getPermanentFlags()).thenReturn(new Flags(Flags.Flag.USER));
folderField.set(receiver, folder);
doAnswer(new Answer<Object>() {
public Object answer(InvocationOnMock invocation) throws Throwable {
return true;
}
}).when(folder).isOpen();
doAnswer(new Answer<Object>() {
public Object answer(InvocationOnMock invocation) throws Throwable {