1 7 package uk.ac.roe.antigen.dialogs; 8 9 import java.io.PrintStream ; 10 import java.io.PrintWriter ; 11 12 import javax.swing.JFrame ; 13 14 import junit.framework.TestCase; 15 16 22 public class BuildLoggerFrameTest extends TestCase { 23 24 private BuildLoggerFrame frame; 25 26 29 protected void setUp() throws Exception { 30 super.setUp(); 31 frame = new BuildLoggerFrame(); 32 frame.show(); 33 } 34 35 38 protected void tearDown() throws Exception { 39 super.tearDown(); 40 frame.dispose(); 41 } 42 43 49 public void testLoadsOfData() throws InterruptedException { 50 PrintStream ps = frame.getPrintStream(); 51 PrintWriter writer = new PrintWriter (ps); 52 for (int i = 0;i<10000;++i) { 53 writer.write("foobar"); 54 } 55 writer.close(); 56 } 57 58 } 59 | Popular Tags |