WeakListenerTests sometimes does not finish, so adding a timeout support into NbTestCase and using it in the test script_execution_base
authorjtulach@netbeans.org
Thu, 22 Dec 2005 08:47:17 +0000
changeset 1058c3cc5767dec
parent 104 e836abc02d94
child 106 8af314d94973
WeakListenerTests sometimes does not finish, so adding a timeout support into NbTestCase and using it in the test
openide.util/test/unit/src/org/openide/util/WeakListenersTest.java
     1.1 --- a/openide.util/test/unit/src/org/openide/util/WeakListenersTest.java	Wed Dec 21 23:12:52 2005 +0000
     1.2 +++ b/openide.util/test/unit/src/org/openide/util/WeakListenersTest.java	Thu Dec 22 08:47:17 2005 +0000
     1.3 @@ -27,9 +27,9 @@
     1.4      public WeakListenersTest(java.lang.String testName) {
     1.5          super(testName);
     1.6      }
     1.7 -    
     1.8 -    public static void main(java.lang.String[] args) {
     1.9 -        junit.textui.TestRunner.run(new NbTestSuite(WeakListenersTest.class));
    1.10 +
    1.11 +    protected int timeOut() {
    1.12 +        return 5000;
    1.13      }
    1.14      
    1.15      protected void setUp () throws Exception {