harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-1892) [test][swing] j.s.filechooser.FileSystemViewTest prompts to insert disk into drive A:
Date Wed, 25 Oct 2006 09:11:18 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1892?page=all ]

Stepan Mishura resolved HARMONY-1892.

    Resolution: Fixed

I disagreed with removing these two line. I like them :-)
The problem is that test tries to delete drive A:. Let's look into the test:

    private File file;

    protected void setUp() throws Exception {
        file = new File(new File(System.getProperty("user.home")), new Integer((int)(Math.random()
* 1000)).toString());
        file.deleteOnExit(); // <====== THE TEST TRIES TO DELETE IT HERE

    protected void tearDown() throws Exception {
        file.delete();// <====== AND HERE

    public void testGetSystemDisplayName() throws Exception {
        file = File.listRoots()[0]; //<========= IT IS DRIVE A: (of cause if you have one)
        assertNotSame(file.getName(), view.getSystemDisplayName(file));

The bug was fixed in SWING module at r467585. Please check that the fix fully resolves your

> [test][swing] j.s.filechooser.FileSystemViewTest prompts to insert disk into drive A:
> -------------------------------------------------------------------------------------
>                 Key: HARMONY-1892
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1892
>             Project: Harmony
>          Issue Type: Bug
>          Components: build - test - ci
>         Environment: Windows
>            Reporter: Alexey A. Ivanov
>         Assigned To: Stepan Mishura
>         Attachments: H1892-FileSystemViewTest.patch
> When running tests, javax.swing.filechooser.FileSystemViewTest.testGetSystemDisplayName()
prompts to insert disk into drive A:. This popup dialog stops this test and it fails.
> When running this test from Eclipse, there's no dialog popped up.
> I suggest removing the last two lines from testGetSystemDisplayName() to avoid this popup
dialog. The problem lines are (85-86):
>         file = File.listRoots()[0];
>         assertNotSame(file.getName(), view.getSystemDisplayName(file));

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


View raw message