Package org.nanocontainer.deployer

Examples of org.nanocontainer.deployer.FolderContentPoller


                      .withNoArguments()
                      .will(returnValue(noChildren));
        folderContentHandlerMock.expects(once())
                                .method("setCurrentChildren")
                                .with(same(noChildren));
        FolderContentPoller fileMonitor = new FolderContentPoller((FolderContentHandler) folderContentHandlerMock.proxy());

        fileMonitor.start();
        synchronized(fileMonitor) {
          fileMonitor.wait(200);
        }

        rootFolderMock.expects(once())
                      .method("close")
                      .withNoArguments();
        rootFolderMock.expects(once())
                      .method("getChildren")
                      .withNoArguments()
                      .will(returnValue(newChildren));
        folderContentHandlerMock.expects(once())
                                .method("setCurrentChildren")
                                .with(same(newChildren));


        synchronized(fileMonitor) {
            fileMonitor.notify();
            fileMonitor.wait(200);
        }
        fileMonitor.stop();
    }
View Full Code Here

TOP

Related Classes of org.nanocontainer.deployer.FolderContentPoller

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.