You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey A. Ivanov (JIRA)" <ji...@apache.org> on 2006/10/19 15:03:36 UTC

[jira] Created: (HARMONY-1919) [classlib][swing][test] unit test fails: j.s.ProgressMonitorTest

[classlib][swing][test] unit test fails: j.s.ProgressMonitorTest
----------------------------------------------------------------

                 Key: HARMONY-1919
                 URL: http://issues.apache.org/jira/browse/HARMONY-1919
             Project: Harmony
          Issue Type: Bug
          Components: build - test - ci
            Reporter: Alexey A. Ivanov


javax.swing.ProgressMonitorTest
testIsCancelled(javax.swing.ProgressMonitorTest)
junit.framework.AssertionFailedError
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at junit.framework.Assert.assertTrue(Assert.java:27)
	at javax.swing.ProgressMonitorTest.testIsCancelled(ProgressMonitorTest.java:116)
	at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
	at java.lang.reflect.Method.invoke(Method.java:258)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
	at javax.swing.BasicSwingTestCase.runBareImpl(BasicSwingTestCase.java:122)
	at javax.swing.BasicSwingTestCase$2.run(BasicSwingTestCase.java:136)
	at java.lang.Thread.run(Thread.java:872)


Also this test can fail with
testGetSetMaximum(javax.swing.ProgressMonitorTest)junit.framework.AssertionFailedError: Test interrupted due timeout
     at javax.swing.BasicSwingTestCase.runBare(BasicSwingTestCase.java:147)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1919) [classlib][swing][test] unit test fails: j.s.ProgressMonitorTest

Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1919?page=all ]

Alexey A. Ivanov updated HARMONY-1919:
--------------------------------------

    Attachment: H1919-j.s.ProgressMonitorTest.patch

All the code with access to swing components has been moved to be executed on the Event Dispatch Thread.
This improves stability of the test.

> [classlib][swing][test] unit test fails: j.s.ProgressMonitorTest
> ----------------------------------------------------------------
>
>                 Key: HARMONY-1919
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1919
>             Project: Harmony
>          Issue Type: Bug
>          Components: build - test - ci
>            Reporter: Alexey A. Ivanov
>         Attachments: H1919-j.s.ProgressMonitorTest.patch
>
>
> javax.swing.ProgressMonitorTest
> testIsCancelled(javax.swing.ProgressMonitorTest)
> junit.framework.AssertionFailedError
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.assertTrue(Assert.java:20)
> 	at junit.framework.Assert.assertTrue(Assert.java:27)
> 	at javax.swing.ProgressMonitorTest.testIsCancelled(ProgressMonitorTest.java:116)
> 	at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:258)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
> 	at javax.swing.BasicSwingTestCase.runBareImpl(BasicSwingTestCase.java:122)
> 	at javax.swing.BasicSwingTestCase$2.run(BasicSwingTestCase.java:136)
> 	at java.lang.Thread.run(Thread.java:872)
> Also this test can fail with
> testGetSetMaximum(javax.swing.ProgressMonitorTest)junit.framework.AssertionFailedError: Test interrupted due timeout
>      at javax.swing.BasicSwingTestCase.runBare(BasicSwingTestCase.java:147)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira