example
Class ArrowButtonTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by junit.extensions.abbot.ComponentTestFixture
              extended by example.ArrowButtonTest
All Implemented Interfaces:
Test

public class ArrowButtonTest
extends ComponentTestFixture

Source code for Tutorial 1. Simple unit tests for example.ArrowButton. Also demonstrates the use of ComponentTestFixture.


Nested Class Summary
 
Nested classes/interfaces inherited from class junit.extensions.abbot.ComponentTestFixture
ComponentTestFixture.ComponentMatcher, ComponentTestFixture.EventDispatchException
 
Field Summary
 
Fields inherited from class junit.extensions.abbot.ComponentTestFixture
DISPOSE_CLASSES, EVENT_GENERATION_DELAY, POPUP_DELAY, WINDOW_DELAY
 
Constructor Summary
ArrowButtonTest(String name)
           
 
Method Summary
static void main(String[] args)
           
protected  void setUp()
           
 void testClick()
           
 void testRepeatedFire()
           
 
Methods inherited from class junit.extensions.abbot.ComponentTestFixture
createHierarchy, disposeAll, disposeWindow, fixtureSetUp, fixtureTearDown, getFinder, getHierarchy, getRobot, getWindowTracker, hideWindow, installPopup, invokeAndWait, invokeLater, isShowing, runBare, setModifiers, showFrame, showFrame, showModalDialog, showModalDialog, showPopup, showPopup, showWindow, showWindow, showWindow, sleep, waitForWindow
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, 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

ArrowButtonTest

public ArrowButtonTest(String name)
Method Detail

setUp

protected void setUp()
Overrides:
setUp in class TestCase

testClick

public void testClick()

testRepeatedFire

public void testRepeatedFire()

main

public static void main(String[] args)


Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge