org.freehep.jas.util.waitcursor
Class WaitCursorEventQueueTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.freehep.jas.util.waitcursor.WaitCursorEventQueueTest
All Implemented Interfaces:
junit.framework.Test

public class WaitCursorEventQueueTest
extends junit.framework.TestCase


Constructor Summary
WaitCursorEventQueueTest(String name)
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testCursor()
           
 void testCursorAndDialog()
           
 void testCursorAndDialogAndCursor()
           
 void testCursorAndTwoDialogsAndCursor()
           
 void testDelayedGetNextEvent()
          This test checks the condition where the EventDispatchThread does not call EventQueue.getNextEvent() within TIMEOUT, (presumably) because of thread contention, even when there is not a dialog going down.
 void testDialog()
           
 void testNoCursor()
           
 void testTwoDialogs()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WaitCursorEventQueueTest

public WaitCursorEventQueueTest(String name)
Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
              throws InvocationTargetException,
                     InterruptedException
Overrides:
tearDown in class junit.framework.TestCase
Throws:
InvocationTargetException
InterruptedException

testCursor

public void testCursor()
                throws InvocationTargetException,
                       InterruptedException
Throws:
InvocationTargetException
InterruptedException

testCursorAndDialog

public void testCursorAndDialog()
                         throws InvocationTargetException,
                                InterruptedException
Throws:
InvocationTargetException
InterruptedException

testCursorAndDialogAndCursor

public void testCursorAndDialogAndCursor()
                                  throws InvocationTargetException,
                                         InterruptedException
Throws:
InvocationTargetException
InterruptedException

testCursorAndTwoDialogsAndCursor

public void testCursorAndTwoDialogsAndCursor()
                                      throws InvocationTargetException,
                                             InterruptedException
Throws:
InvocationTargetException
InterruptedException

testDelayedGetNextEvent

public void testDelayedGetNextEvent()
                             throws InvocationTargetException,
                                    InterruptedException
This test checks the condition where the EventDispatchThread does not call EventQueue.getNextEvent() within TIMEOUT, (presumably) because of thread contention, even when there is not a dialog going down. Note that this case only actually matters if there is a dialog currently up.

Throws:
InvocationTargetException
InterruptedException

testDialog

public void testDialog()
                throws InvocationTargetException,
                       InterruptedException
Throws:
InvocationTargetException
InterruptedException

testNoCursor

public void testNoCursor()
                  throws InvocationTargetException,
                         InterruptedException
Throws:
InvocationTargetException
InterruptedException

testTwoDialogs

public void testTwoDialogs()
                    throws InvocationTargetException,
                           InterruptedException
Throws:
InvocationTargetException
InterruptedException


Copyright © 2013. All Rights Reserved.