ProjectManager.getDefault().findProject() always returns null in test methods

"Pennywise" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
I have the following issue: ProjectManager.getDefault().findProject() always returns null in JUnit tests. At the same time, if I'm trying to get the project with the help of this method during runtime, it works perfectly. 

What should I do to get Project in test method?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.