This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | NotifyModifiedTest fails on windows | ||
---|---|---|---|
Product: | platform | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Text | Assignee: | Jaroslav Tulach <jtulach> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | pnejedly |
Priority: | P3 | Keywords: | TEST |
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Failure 1
Failure 2 Failure 3 Failure 4 |
Description
Jaroslav Tulach
2005-04-14 09:56:15 UTC
Created attachment 21638 [details]
Failure 1
Created attachment 21639 [details]
Failure 2
Created attachment 21640 [details]
Failure 3
Created attachment 21641 [details]
Failure 4
junit.framework.AssertionFailedError: But one more unmodified expected:<2> but was:<1> [org.openide.util.RequestProcessor] - Begining work Default RequestProcessor [org.openide.util.RequestProcessor] - Executing RequestProcessor.Task [Default RequestProcessor, 1] for task org.openide.text.CloneableEditorSupport$2@f01a1e [org.openide.util.RequestProcessor] - Execution finished inDefault RequestProcessor [org.openide.util.RequestProcessor] - Work finished Inactive RequestProcessor thread [Was:Default RequestProcessor/org.openide.text.CloneableEditorSupport$2] [org.openide.text.CloneableEditorSupport] - java.lang.Exception: Setting to modified: true at org.openide.text.CloneableEditorSupport.setAlreadyModified(CloneableEditorSupport.java:2066) at org.openide.text.CloneableEditorSupport.callNotifyModified(CloneableEditorSupport.java:1432) at org.openide.text.CloneableEditorSupport$Listener.vetoableChange(CloneableEditorSupport.java:2220) at org.openide.text.NbLikeEditorKit$Doc.notifyModified(NbLikeEditorKit.java:170) at org.openide.text.NbLikeEditorKit$Doc.insOrRemoveOrRunnable(NbLikeEditorKit.java:142) at org.openide.text.NbLikeEditorKit$Doc.remove(NbLikeEditorKit.java:102) at org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104 (NotifyModifiedTest.java:548) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) at org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) [] - java.lang.Exception: notifyModified: 1 at org.openide.text.NotifyModifiedTest$CES.notifyModified(NotifyModifiedTest.java:705) at org.openide.text.CloneableEditorSupport.callNotifyModified(CloneableEditorSupport.java:1434) at org.openide.text.CloneableEditorSupport$Listener.vetoableChange(CloneableEditorSupport.java:2220) at org.openide.text.NbLikeEditorKit$Doc.notifyModified(NbLikeEditorKit.java:170) at org.openide.text.NbLikeEditorKit$Doc.insOrRemoveOrRunnable(NbLikeEditorKit.java:142) at org.openide.text.NbLikeEditorKit$Doc.remove(NbLikeEditorKit.java:102) at org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104 (NotifyModifiedTest.java:548) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) at org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) [org.openide.util.RequestProcessor] - Begining work Test [org.openide.util.RequestProcessor] - Executing RequestProcessor.Task [Test, 1] for task org.openide.text.NotifyModifiedOnNbEditorLikeKitTest$1X@142a80d [org.openide.util.RequestProcessor] - Execution finished inTest [org.openide.util.RequestProcessor] - Work finished Inactive RequestProcessor thread [Was:Test/org.openide.text.NotifyModifiedOnNbEditorLikeKitTest$1X] [org.openide.text.CloneableEditorSupport] - java.lang.Exception: Setting to modified: false at org.openide.text.CloneableEditorSupport.setAlreadyModified(CloneableEditorSupport.java:2066) at org.openide.text.CloneableEditorSupport.callNotifyUnmodified(CloneableEditorSupport.java:1448) at org.openide.text.CloneableEditorSupport$1SaveAsReader.after(CloneableEditorSupport.java:800) at org.openide.text.CloneableEditorSupport.saveDocument(CloneableEditorSupport.java:811) at org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104 (NotifyModifiedTest.java:553) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) at org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) [] - java.lang.Exception: notifyUnmodified: 1 at org.openide.text.NotifyModifiedTest$CES.notifyUnmodified(NotifyModifiedTest.java:693) at org.openide.text.CloneableEditorSupport.callNotifyUnmodified(CloneableEditorSupport.java:1449) at org.openide.text.CloneableEditorSupport$1SaveAsReader.after(CloneableEditorSupport.java:800) at org.openide.text.CloneableEditorSupport.saveDocument(CloneableEditorSupport.java:811) at org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104 (NotifyModifiedTest.java:553) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) at org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) [org.openide.util.RequestProcessor] - Begining work Test [org.openide.util.RequestProcessor] - Executing RequestProcessor.Task [Test, 1] for task org.openide.text.NotifyModifiedOnNbEditorLikeKitTest$1X@126f75b [org.openide.util.RequestProcessor] - Execution finished inTest [org.openide.util.RequestProcessor] - Work finished Inactive RequestProcessor thread [Was:Test/org.openide.text.NotifyModifiedOnNbEditorLikeKitTest$1X] [org.openide.text.CloneableEditorSupport] - discardAllEdits [org.openide.text.CloneableEditorSupport] - undoableEditHappened [org.openide.text.CloneableEditorSupport] - check already modified [org.openide.text.CloneableEditorSupport] - addUndoableEditListener [org.openide.text.CloneableEditorSupport] - java.lang.Exception: Setting to modified: true at org.openide.text.CloneableEditorSupport.setAlreadyModified(CloneableEditorSupport.java:2066) at org.openide.text.CloneableEditorSupport.callNotifyModified(CloneableEditorSupport.java:1432) at org.openide.text.CloneableEditorSupport$Listener.vetoableChange(CloneableEditorSupport.java:2220) at org.openide.text.NbLikeEditorKit$Doc.notifyModified(NbLikeEditorKit.java:170) at org.openide.text.NbLikeEditorKit$Doc.insOrRemoveOrRunnable(NbLikeEditorKit.java:135) at org.openide.text.NbLikeEditorKit$Doc.runAtomicAsUser(NbLikeEditorKit.java:53) at org.openide.text.NbLikeEditorKit$Doc.runAtomic(NbLikeEditorKit.java:46) at org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.<init>(CloneableEditorSupport.java:2651) at org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.<init>(CloneableEditorSupport.java:2643) at org.openide.text.CloneableEditorSupport$CESUndoRedoManager.undo(CloneableEditorSupport.java:2562) at org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104 (NotifyModifiedTest.java:561) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) at org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) [] - java.lang.Exception: notifyModified: 2 at org.openide.text.NotifyModifiedTest$CES.notifyModified(NotifyModifiedTest.java:705) at org.openide.text.CloneableEditorSupport.callNotifyModified(CloneableEditorSupport.java:1434) at org.openide.text.CloneableEditorSupport$Listener.vetoableChange(CloneableEditorSupport.java:2220) at org.openide.text.NbLikeEditorKit$Doc.notifyModified(NbLikeEditorKit.java:170) at org.openide.text.NbLikeEditorKit$Doc.insOrRemoveOrRunnable(NbLikeEditorKit.java:135) at org.openide.text.NbLikeEditorKit$Doc.runAtomicAsUser(NbLikeEditorKit.java:53) at org.openide.text.NbLikeEditorKit$Doc.runAtomic(NbLikeEditorKit.java:46) at org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.<init>(CloneableEditorSupport.java:2651) at org.openide.text.CloneableEditorSupport$CESUndoRedoManager$RenderUndo.<init>(CloneableEditorSupport.java:2643) at org.openide.text.CloneableEditorSupport$CESUndoRedoManager.undo(CloneableEditorSupport.java:2562) at org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104 (NotifyModifiedTest.java:561) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) at org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) [org.openide.util.RequestProcessor] - Begining work Test [org.openide.util.RequestProcessor] - Executing RequestProcessor.Task [Test, 1] for task org.openide.text.NotifyModifiedOnNbEditorLikeKitTest$1X@139b78e [org.openide.util.RequestProcessor] - Execution finished inTest [org.openide.util.RequestProcessor] - Work finished Inactive RequestProcessor thread [Was:Test/org.openide.text.NotifyModifiedOnNbEditorLikeKitTest$1X] [org.openide.text.CloneableEditorSupport] - reloadDocument in Thread[AWT-EventQueue-0,6,main] [org.openide.text.CloneableEditorSupport] - clearDocument [org.openide.text.CloneableEditorSupport] - new prepare task: task org.openide.text.CloneableEditorSupport$Listener@d6a05e [org.openide.text.CloneableEditorSupport] - prepareTask finished [org.openide.text.CloneableEditorSupport] - post-reload task posting to AWT at org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:77) at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:176) at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:127) at org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41) Caused by: junit.framework.AssertionFailedError: But one more unmodified expected:<2> but was:<1> at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:282) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:201) at org.openide.text.NotifyModifiedTest.testReloadWhenModifiedIssue57104 (NotifyModifiedTest.java:589) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at org.openide.text.NotifyModifiedTest.runTest(NotifyModifiedTest.java:75) ... 11 more Checking in text/src/org/openide/text/CloneableEditorSupport.java; /cvs/openide/text/src/org/openide/text/CloneableEditorSupport.java,v <-- CloneableEditorSupport.java new revision: 1.4; previous revision: 1.3 done Checking in text/test/unit/src/org/openide/text/NotifyModifiedTest.java; /cvs/openide/text/test/unit/src/org/openide/text/NotifyModifiedTest.java,v <-- NotifyModifiedTest.java new revision: 1.2; previous revision: 1.1 Verified. Not so quickly, still fails, check beetle/unittests/ Date: 2005/09/21 04:53:28 Author: jtulach Log: #57876: sleeping a while after each save, because internally we using currentTimeMillis and without the sleep it is sometimes the same on windows before and after save. Members: NotifyModifiedTest.java:1.2->1.3 Marking this issue as VERIFIED since the issue reporter == issue owner. |