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.
As of issue #138846, XML MIME resolvers should be loaded even from unit tests. Therefore there is no need to call the deprecated FileUtil.setMIMEType from the unit test template. Also, for XML-based file types the unit test currently does not work. I would recommend simply deleting the unit test from the loader template. It does not test anything interesting anyway. If someone wants to write a meaningful unit test, they can now just do so, with no special setup required.
I'd vote for keeping the test there - it is already written, it IMO bothers nobody and gives a newbie module developer an example how easy it is to write module tests :). Of course a test in apisupport ensuring that the generated test for new file type succeeds would be proper, but only a basic api is used there that is not likely to change. Of course I'll delete FileUtil.setMIMEType and allow for XML resolvers as soon as issue #138846 is ready.
Would prefer to delete generated tests that do not test anything useful. They just add noise. But no strong opinion.
"I'll delete FileUtil.setMIMEType and allow for XML resolvers as soon as issue #138846 is ready" - did this happen?
Not yet, thanks for reminder.
fixed locally, changeset #4d68f3075a4e
Integrated into 'main-golden', will be available in build *200809050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/4d68f3075a4e User: Richard Michalsky <rmichalsky@netbeans.org> Log: #139253: Simplify loader unit test template