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.

Bug 240418

Summary: OpenIDE-Module-Hide-Classpath-Packages in JUnit tests
Product: platform Reporter: Petr Hejl <phejl>
Component: NB JUnitAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 237546    

Description Petr Hejl 2014-01-13 15:06:57 UTC
OpenIDE-Module-Hide-Classpath-Packages in module manifest seems to be ignored in JUnit tests. See bug #237546.
Comment 1 Jaroslav Tulach 2014-01-13 15:10:55 UTC
Do you use NbModuleSuite? If not, it is obvious that package hiding cannot work (because there are no classloaders).

Try to wrap your tests with NbModuleSuite. If you still have problems, re-open.