[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Junit - Testing a View

Hi,

I have a tree view, I have some actions which are added to the ToolbarManager as follows,

IToolBarManager mgr = getViewSite().getActionBars().getToolBarManager();
mgr.add(exitAction);
When I am testing this method using JUnit, getViewSite() is coming as a null and getting NullPointerException,


 How can I get the getViewSite() not null;

Pls help me...

Thanks,
Swetha