1 26 27 package net.sourceforge.groboutils.uicapture.v1; 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 VirtualWindowControllerIUTest extends TestCase 45 { 46 49 private static final Class THIS_CLASS = VirtualWindowControllerIUTest.class; 50 private static final AutoDoc DOC = new AutoDoc( THIS_CLASS ); 51 52 public VirtualWindowControllerIUTest( String name ) 53 { 54 super( name ); 55 } 56 57 58 59 62 public void testInstantiation() 63 { 64 VirtualWindowController vwc = new VirtualWindowController(); 65 } 66 67 68 73 public void testSimpleRun() 74 throws java.awt.AWTException , InterruptedException 75 { 76 VirtualWindowController vwc = new VirtualWindowController(); 77 78 vwc.begin(); 79 Thread.sleep( 1000 ); 80 vwc.end(); 81 } 82 83 84 85 86 89 90 public static Test suite() 91 { 92 TestSuite suite = new TestSuite( THIS_CLASS ); 93 94 return suite; 95 } 96 97 public static void main( String [] args ) 98 { 99 String [] name = { THIS_CLASS.getName() }; 100 101 104 junit.textui.TestRunner.main( name ); 105 } 106 107 111 protected void setUp() throws Exception 112 { 113 super.setUp(); 114 115 } 117 118 119 123 protected void tearDown() throws Exception 124 { 125 127 128 super.tearDown(); 129 } 130 } 131 132 | Popular Tags |