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.
After changes in bug 221034 it is broken the testability hack that running processes/unsaved files window is not shown (http://wiki.netbeans.org/DevFaqNetBeansFullHack). Please, fix it.
Steps to reproduce?
To reproduce: - open jellytools.ide project - open "Functional Test Packages|org.netbeans.jellytools|EditorOperatorTest.java" - replace return createModuleTest(EditorOperatorTest.class, tests); by return createModuleTest(EditorOperatorTest.class, "testInsert"); - run file - at the end of test execution you should see the Save window and it bloks until junit timeout expires
Well, the wiki does not say anything about unsaved objects. The dialog used to be shown even before, as far as I can tell. Just the test was not blocked by the dialog and exited anyway. Now the test waits for proper shutdown.
Thank you for clarification. I can't tell whether dialog was shown before or not. But as you wrote the test was not blocked and now it is. That is why we noticed the dialog is opened. I think it should not be blocked when netbeans.full.hack=true.
Some humans run with -Dnetbeans.full.hack=true and they would be in risk of data loss. That is why I am trying to fix this in nbjunit: ergonomics#b987d3846a6e
Great!!! Thank you for prompt solution. I am eager to verify it in daily build once the fix is propagated to main-silver.
Integrated into 'main-golden', will be available in build *201211280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b987d3846a6e User: Jaroslav Tulach <jtulach@netbeans.org> Log: #222446: Setting netbeans.close property before the test tries to shutdown the IDE
Created attachment 128565 [details] screenshot in 201211280002 build I see fake (org.netbeans.junit.NbModuleSuite$S$Shutdown.shuttingDown[cnd.editor.CCEditing]) tests
someone has such problem
It has connection with bug 221034. I also think it is really confusing. I recommend to file a new bug for this fake shuttingDown test case. Anyway I am closing this bug because "unsaved files" problem is resolved.
Integrated into 'main-golden', will be available in build *201211300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/984a0ab97f58 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #222446: Setting netbeans.close property before the test tries to shutdown the IDE (transplanted from b987d3846a6e7a10916b3d96d9ec9c2b68436a39)