1 19 20 package org.openide.text; 21 22 import org.netbeans.junit.NbTestCase; 23 24 40 public class TextTest extends NbTestCase { 41 42 43 public TextTest(String s) { 44 super(s); 45 } 46 47 48 public void testDeadlock() throws Exception { 49 System.out.println(System.currentTimeMillis() + " testDeadlock START"); 50 51 CloneableEditorSupport.Env env = new EmptyCESHidden.Env (); 52 CloneableEditorSupport tst = new EmptyCESHidden(env); 53 54 ((EmptyCESHidden.Env)env).setInstance(tst); 55 56 Object doc = tst.openDocument(); 57 58 tst.open(); 59 60 System.out.println(System.currentTimeMillis() + " testDeadlock END"); 61 } 62 63 } 64 | Popular Tags |