History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17361
Type: Bug Bug
Status: Open Open
Assignee: Dmitry Avdeev
Reporter: Hugo Palma
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

The PicoContainer should be initialized when setting up WebModuleFixtureBuilder

Created: 11 Mar 08 19:47   Updated: 11 Mar 08 20:13
Component/s: Plugin Support. API

Build: 7,590
Severity: Medium


 Description  « Hide
I use WebModuleFixtureBuilder all the time to test my plugin.

In some of my tested code i have stuff like:

WebUtil.getWebFacet(myFile, myProject)

which simply throws this exception when i run it from my unit tests:

java.lang.NullPointerException
at com.intellij.javaee.web.WebUtil.getWebFacet(WebUtil.java:72)

i'm guessing that it's because the JavaeeFacetUtil service hasn't been registered.
As this is a static call i can't mock this call out so a workaround for this would be great.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.