Package javax.swing.Timer_MultithreadedTest

Examples of javax.swing.Timer_MultithreadedTest.ConcreteActionListener


        assertTrue("action performed", listener.performed != null);
        assertTrue("action performed", action.performed != null);
    }

    public void testDoClickint2() throws InterruptedException {
        ConcreteActionListener listener = new ConcreteActionListener();
        button = new JButton();
        button.addActionListener(listener);
        synchronized (listener) {
            button.doClick(1);
            button.doClick(1);
            button.doClick(1);
            button.doClick(1);
            button.doClick(1);
            listener.waitNumActions(1500, 5);
        }
        assertEquals(5, listener.getCounter());
    }
View Full Code Here

TOP

Related Classes of javax.swing.Timer_MultithreadedTest.ConcreteActionListener

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.