com.iternum.swlink.test
Class TestAwtEventActions

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.iternum.swlink.test.TestAwtEventActions
All Implemented Interfaces:
junit.framework.Test

public class TestAwtEventActions
extends junit.framework.TestCase

Several tests to determine if Awt/Swing event activators work as expected.

Author:
Karl Banke

Constructor Summary
TestAwtEventActions()
           
 
Method Summary
 void testActionModelSync()
          Tests synchronization of an ActionEvent, a PropertyChangeEvent and a Property change using Swing.
 void testButtonPressedEventMethodAction()
          Tests triggering an action using swing.
 void testButtonPressedExplicitCreation()
          Tests triggering an action using swing and more verbose Linker.
 void testFocusLostSync()
          Tests synchronization of a FocusLostEvent, a PropertyChangeEvent and a Property change using Swing.
 void testKeyReleasedSync()
          Tests synchronization of a KeyEvent, a PropertyChangeEvent and a Property change using Swing.
 void testPathActionModelSync()
          Tests synchronization of an ActionEvent, a PropertyChangeEvent and a Property change using Swing.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestAwtEventActions

public TestAwtEventActions()
Method Detail

testButtonPressedEventMethodAction

public void testButtonPressedEventMethodAction()
Tests triggering an action using swing.


testPathActionModelSync

public void testPathActionModelSync()
Tests synchronization of an ActionEvent, a PropertyChangeEvent and a Property change using Swing. The elements are identified by their property path only.


testActionModelSync

public void testActionModelSync()
Tests synchronization of an ActionEvent, a PropertyChangeEvent and a Property change using Swing.


testFocusLostSync

public void testFocusLostSync()
Tests synchronization of a FocusLostEvent, a PropertyChangeEvent and a Property change using Swing.


testKeyReleasedSync

public void testKeyReleasedSync()
Tests synchronization of a KeyEvent, a PropertyChangeEvent and a Property change using Swing.


testButtonPressedExplicitCreation

public void testButtonPressedExplicitCreation()
Tests triggering an action using swing and more verbose Linker.