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/09 09:32:37 UTC
[jira] Created: (HARMONY-2118) [classlib][swing][test] unit test
fails: j.s.text.DefaultEditorKitTest
[classlib][swing][test] unit test fails: j.s.text.DefaultEditorKitTest
----------------------------------------------------------------------
Key: HARMONY-2118
URL: http://issues.apache.org/jira/browse/HARMONY-2118
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Alexey A. Ivanov
Unit test javax.swing.text.DefaultEditorKitTest fails:
testWriteOutputStreamDocumentintint(javax.swing.text.DefaultEditorKitTest)
java.lang.StringIndexOutOfBoundsException
at java.lang.String.<init>(String.java:456)
at javax.swing.text.DefaultEditorKitTest.readStringFromFile(DefaultEditorKitTest.java:380)
at javax.swing.text.DefaultEditorKitTest.testWriteOutputStreamDocumentintint(DefaultEditorKitTest.java:180)
testWriteWriterFlush(javax.swing.text.DefaultEditorKitTest)
junit.framework.AssertionFailedError
at javax.swing.text.DefaultEditorKitTest.testWriteWriterFlush(DefaultEditorKitTest.java:247)
testWriteOutputStreamFlush(javax.swing.text.DefaultEditorKitTest)
junit.framework.AssertionFailedError
at javax.swing.text.DefaultEditorKitTest.testWriteOutputStreamFlush(DefaultEditorKitTest.java:270)
testNewLineOutputStream(javax.swing.text.DefaultEditorKitTest)
junit.framework.ComparisonFailure: expected:<This is a very
short plain-text document.
It's to be read only by the
test.> but was:<>
at javax.swing.text.DefaultEditorKitTest.testNewLineOutputStream(DefaultEditorKitTest.java:359)
(I dropped irrelevant stack trace lines.)
--
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-2118) [classlib][swing][test] unit test
fails: j.s.text.DefaultEditorKitTest
Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2118?page=all ]
Alexey A. Ivanov updated HARMONY-2118:
--------------------------------------
Attachment: H2118-DefaultEditorKit.patch
Added call to flush stream/writer in both write() methods of j.s.t.DefaultEditorKit.
> [classlib][swing][test] unit test fails: j.s.text.DefaultEditorKitTest
> ----------------------------------------------------------------------
>
> Key: HARMONY-2118
> URL: http://issues.apache.org/jira/browse/HARMONY-2118
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexey A. Ivanov
> Attachments: H2118-DefaultEditorKit.patch
>
>
> Unit test javax.swing.text.DefaultEditorKitTest fails:
> testWriteOutputStreamDocumentintint(javax.swing.text.DefaultEditorKitTest)
> java.lang.StringIndexOutOfBoundsException
> at java.lang.String.<init>(String.java:456)
> at javax.swing.text.DefaultEditorKitTest.readStringFromFile(DefaultEditorKitTest.java:380)
> at javax.swing.text.DefaultEditorKitTest.testWriteOutputStreamDocumentintint(DefaultEditorKitTest.java:180)
> testWriteWriterFlush(javax.swing.text.DefaultEditorKitTest)
> junit.framework.AssertionFailedError
> at javax.swing.text.DefaultEditorKitTest.testWriteWriterFlush(DefaultEditorKitTest.java:247)
> testWriteOutputStreamFlush(javax.swing.text.DefaultEditorKitTest)
> junit.framework.AssertionFailedError
> at javax.swing.text.DefaultEditorKitTest.testWriteOutputStreamFlush(DefaultEditorKitTest.java:270)
> testNewLineOutputStream(javax.swing.text.DefaultEditorKitTest)
> junit.framework.ComparisonFailure: expected:<This is a very
> short plain-text document.
> It's to be read only by the
> test.> but was:<>
> at javax.swing.text.DefaultEditorKitTest.testNewLineOutputStream(DefaultEditorKitTest.java:359)
> (I dropped irrelevant stack trace lines.)
--
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