ProjectManager in JUnit tests

"Pennywise" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
I'm trying to open my custom project programmatically in JUnit test. But when I'm doing this:
[code]
ProjectManager manager = ProjectManager.getDefault();
[/code]
an error occurs:
[i]
java.lang.ExceptionInInitializerError: null
	at org.netbeans.api.project.ProjectManager.<init>(ProjectManager.java:76)
	at org.netbeans.api.project.ProjectManager.<clinit>(ProjectManager.java:70)
[/i]
I have no idea why it happens. Could you give me some hints on how to do this?

Thank you in advance.
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.