Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

abbot.editor.recorder
Class ComponentRecorderTest  view ComponentRecorderTest download ComponentRecorderTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byabbot.editor.recorder.AbstractRecorderTest
              extended byabbot.editor.recorder.AbstractSemanticRecorderTest
                  extended byabbot.editor.recorder.ComponentRecorderTest
All Implemented Interfaces:
java.awt.event.AWTEventListener, java.util.EventListener, junit.framework.Test

public class ComponentRecorderTest
extends AbstractSemanticRecorderTest

Unit test to verify proper capture of basic user semantic events. A ComponentTester is used to generate the appropriate events, which is significantly easier than reproducing the steps manually. These tests should be run after the ComponentTester tests.


Nested Class Summary
 
Nested classes inherited from class abbot.editor.recorder.AbstractRecorderTest
AbstractRecorderTest.StepThunk
 
Field Summary
private  boolean coverActivated
           
private  boolean itemOne
           
private  boolean itemTwo
           
private  boolean subItemOne
           
private  boolean subItemTwo
           
 
Fields inherited from class abbot.editor.recorder.AbstractSemanticRecorderTest
currentRecorder, savedRecorder
 
Fields inherited from class abbot.editor.recorder.AbstractRecorderTest
helper, watcher
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ComponentRecorderTest(java.lang.String name)
          Create a new test case with the given name.
 
Method Summary
protected  SemanticRecorder createRecorder(abbot.Resolver r)
          Each Recorder subclass test should implement this method to return the SemanticRecorder to be tested.
private  void initPopup()
           
static void main(java.lang.String[] args)
           
private  void showTextField()
           
 void testInitialDialogShowHide()
           
 void testInitialFrameShowHide()
           
 void testRecordAltKey()
          No event should be recorded.
 void testRecordAWTMenu()
           
 void testRecordClick()
           
 void testRecordControlKey()
          No event should be recorded.
 void testRecordDragDrop()
           
 void testRecordKeyStroke()
           
 void testRecordMacInputMethod()
           
 void testRecordMenu()
           
 void testRecordMultipleClick()
           
 void testRecordNoPopup()
          If no popup exists, a regular click should be recorded instead, using the appropriate mask.
 void testRecordPopup()
           
 void testRecordShiftedKeyStroke()
           
 void testRecordSpecialKeys()
           
 void testRecordWhenComponentIsHidden()
          If the step we're recording results in the target component being hidden (or in general if the component gets hidden before the step is finished recording), the step should still be recorded properly.
 void testSubsequentDialogShowHide()
           
 void testSubsequentFrameShowHide()
           
 void xtestRecordActivate()
           
 void xtestRecordAltGraphKey()
          No event should be recorded.
 void xtestRecordInputMethod()
           
 
Methods inherited from class abbot.editor.recorder.AbstractSemanticRecorderTest
assertNoStep, assertStep, assertStep, eventDispatched, getStep, hasRecorder, setUp, startRecording, tearDown
 
Methods inherited from class abbot.editor.recorder.AbstractRecorderTest
assertStep, assertStepCount, bugInfo, toString, waitForStep
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

coverActivated

private boolean coverActivated

itemOne

private boolean itemOne

itemTwo

private boolean itemTwo

subItemOne

private boolean subItemOne

subItemTwo

private boolean subItemTwo
Constructor Detail

ComponentRecorderTest

public ComponentRecorderTest(java.lang.String name)
Create a new test case with the given name.

Method Detail

createRecorder

protected SemanticRecorder createRecorder(abbot.Resolver r)
Description copied from class: AbstractSemanticRecorderTest
Each Recorder subclass test should implement this method to return the SemanticRecorder to be tested.

Specified by:
createRecorder in class AbstractSemanticRecorderTest

testInitialFrameShowHide

public void testInitialFrameShowHide()

testSubsequentFrameShowHide

public void testSubsequentFrameShowHide()

testInitialDialogShowHide

public void testInitialDialogShowHide()

testSubsequentDialogShowHide

public void testSubsequentDialogShowHide()

xtestRecordActivate

public void xtestRecordActivate()

initPopup

private void initPopup()

testRecordPopup

public void testRecordPopup()

testRecordNoPopup

public void testRecordNoPopup()
If no popup exists, a regular click should be recorded instead, using the appropriate mask.


testRecordAWTMenu

public void testRecordAWTMenu()

testRecordMenu

public void testRecordMenu()

testRecordClick

public void testRecordClick()

testRecordWhenComponentIsHidden

public void testRecordWhenComponentIsHidden()
If the step we're recording results in the target component being hidden (or in general if the component gets hidden before the step is finished recording), the step should still be recorded properly.


showTextField

private void showTextField()

testRecordKeyStroke

public void testRecordKeyStroke()

testRecordShiftedKeyStroke

public void testRecordShiftedKeyStroke()

testRecordSpecialKeys

public void testRecordSpecialKeys()

testRecordAltKey

public void testRecordAltKey()
No event should be recorded.


xtestRecordAltGraphKey

public void xtestRecordAltGraphKey()
No event should be recorded.


testRecordControlKey

public void testRecordControlKey()
No event should be recorded.


testRecordDragDrop

public void testRecordDragDrop()

testRecordMacInputMethod

public void testRecordMacInputMethod()

xtestRecordInputMethod

public void xtestRecordInputMethod()

testRecordMultipleClick

public void testRecordMultipleClick()

main

public static void main(java.lang.String[] args)