3940414243444546474849
.with(same(noChildren)); FolderContentPoller fileMonitor = new FolderContentPoller((FolderContentHandler) folderContentHandlerMock.proxy()); fileMonitor.start(); synchronized(fileMonitor) { fileMonitor.wait(200); } rootFolderMock.expects(once()) .method("close") .withNoArguments();
56575859606162636465
.with(same(newChildren)); synchronized(fileMonitor) { fileMonitor.notify(); fileMonitor.wait(200); } fileMonitor.stop(); } }