java.lang.Object
junit.framework.Assert
junit.framework.TestCase
abbot.editor.recorder.AbstractRecorderTest
abbot.editor.recorder.AbstractSemanticRecorderTest
abbot.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.
| Fields inherited from class junit.framework.TestCase |
|
| 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 |
coverActivated
private boolean coverActivated
itemOne
private boolean itemOne
itemTwo
private boolean itemTwo
subItemOne
private boolean subItemOne
subItemTwo
private boolean subItemTwo
ComponentRecorderTest
public ComponentRecorderTest(java.lang.String name)
- Create a new test case with the given name.
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)