final Set myTests = new HashSet(); listener.reset(myTests); SwingUtilities.invokeAndWait(m_voidRunnable); assertTrue(listener.m_resetCalled); assertSame(myTests, listener.m_resetSet);
final Set myTests = new HashSet(); final ModelTestIndex myModelTestIndex = new ModelTestIndex(); listener.newTests(myTests, myModelTestIndex); SwingUtilities.invokeAndWait(m_voidRunnable); assertTrue(listener.m_newTestsCalled); assertSame(myTests, listener.m_newTests); assertSame(myModelTestIndex, listener.m_modelTestIndex);
    public void testDispatch() throws Exception    {	final MyModelListener listener = new MyModelListener();	final ModelListener swingDispatchedListener =	    new SwingDispatchedModelListener(listener);	listener.update();	// Wait for a dummy event to be processed by the swing event	// queue.	SwingUtilities.invokeAndWait(m_voidRunnable);	assertTrue(listener.m_updateCalled);	final Set myTests = new HashSet();	listener.reset(myTests);	SwingUtilities.invokeAndWait(m_voidRunnable);	assertTrue(listener.m_resetCalled);	assertSame(myTests, listener.m_resetSet);	final StatisticsView view1 = new StatisticsView();	final StatisticsView view2 = new StatisticsView();	listener.newStatisticsViews(view1, view2);	SwingUtilities.invokeAndWait(m_voidRunnable);	assertTrue(listener.m_updateCalled);	assertSame(view1, listener.m_intervalStatisticsView);	assertSame(view2, listener.m_cumulativeStatisticsView);    }