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/11/13 10:55:38 UTC

[jira] Updated: (HARMONY-2161) [classlib][swing][test] unit test fails: j.s.text.GapContent_GapVectorTest

     [ http://issues.apache.org/jira/browse/HARMONY-2161?page=all ]

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

    Attachment: H2161-GapContent_GapVectorTest.patch

The patch fixes the failure by increasing the insertion position (from 11 to 12).
A new test case added (testInsertStringEnd) where insertion at position 11 is tested.

All the tests pass successfully. No modification in code was necessary.
Please don't forget to remove javax/swing/text/GapContent_GapVectorTest.java from test exclude list.

Also I've dropped author comment and @Override annotation to setUp() method.

> [classlib][swing][test] unit test fails: j.s.text.GapContent_GapVectorTest
> --------------------------------------------------------------------------
>
>                 Key: HARMONY-2161
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2161
>             Project: Harmony
>          Issue Type: Bug
>          Components: build - test - ci
>            Reporter: Alexey A. Ivanov
>         Attachments: H2161-GapContent_GapVectorTest.patch
>
>
> The stack trace of the failure:
> javax.swing.text.GapContent_GapVectorTest
> testInsertStringInvalid(javax.swing.text.GapContent_GapVectorTest)
> junit.framework.AssertionFailedError: BadLocationException must be thrown
> 	at javax.swing.text.GapContent_GapVectorTest.testInsertStringInvalid(GapContent_GapVectorTest.java:86)
> This test case fails the same way when run on JRockit 1.5, however it passes when run against JRockit 1.4.2. Since we are to be compatible with Java 5.0, this is a bug.

-- 
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