1 26 27 package net.sourceforge.groboutils.uicapture.v1.event; 28 29 import java.awt.Robot ; 30 31 import net.sourceforge.groboutils.autodoc.v1.AutoDoc; 32 import junit.framework.Test; 33 import junit.framework.TestCase; 34 import junit.framework.TestSuite; 35 36 37 44 public class CaptureAdapterIUTest extends TestCase 45 { 46 49 private static final Class THIS_CLASS = CaptureAdapterIUTest.class; 50 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 51 52 public CaptureAdapterIUTest( String name ) 53 { 54 super( name ); 55 } 56 57 58 59 62 public void testInstantiation() 63 { 64 ICaptureListener ica = createCaptureAdapter(); 66 } 67 68 public void testBasics() 69 { 70 CaptureAdapter ca = createCaptureAdapter(); 71 ca.mouseWheelMoved( null ); 72 ca.mouseMoved( null ); 73 ca.mousePressed( null ); 74 ca.mouseReleased( null ); 75 ca.keyPressed( null ); 76 ca.keyReleased( null ); 77 } 78 79 80 81 protected CaptureAdapter createCaptureAdapter() 82 { 83 return new CaptureAdapter(); 84 } 85 86 87 90 91 public static Test suite() 92 { 93 TestSuite suite = new TestSuite( THIS_CLASS ); 94 95 return suite; 96 } 97 98 public static void main( String [] args ) 99 { 100 String [] name = { THIS_CLASS.getName() }; 101 102 105 junit.textui.TestRunner.main( name ); 106 } 107 108 112 protected void setUp() throws Exception 113 { 114 super.setUp(); 115 116 } 118 119 120 124 protected void tearDown() throws Exception 125 { 126 128 129 super.tearDown(); 130 } 131 } 132 133 | Popular Tags |