Package org.jbehave.threaded.swing

Examples of org.jbehave.threaded.swing.WindowGrabber


    public void shouldGetAnyWindowFromMiniMap() throws TimeoutException {
        checkForHeadless();
        Mock miniMapMock = mock(QueuedMiniMap.class);
       
        WindowGrabber grabber = new WindowGrabber((QueuedMiniMap)miniMapMock);
       
        miniMapMock.expects("get").with(eq("frame.name"), eq(WindowGrabber.DEFAULT_WINDOW_TIMEOUT));
        grabber.getWindow("frame.name");
       
        verifyMocks();
        grabber.dispose();
    }
View Full Code Here


    }
   
    public void shouldAddNewWindowsToAndRemoveNewWindowsFromMiniMap() {
        checkForHeadless();
        Mock miniMapMock = mock(QueuedMiniMap.class);
        WindowGrabber grabber = new WindowGrabber((QueuedMiniMap)miniMapMock);
       
        JFrame frame = new JFrame();
        frame.setName("frame.name");
        miniMapMock.expects("put").with("frame.name", frame);
        frame.setVisible(true);
               
        miniMapMock.expects("remove").with("frame.name");
        frame.dispose();
        waitForIdle();
        verifyMocks();
        grabber.dispose();
    }
View Full Code Here

TOP

Related Classes of org.jbehave.threaded.swing.WindowGrabber

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.