← Back to team overview

gephi.team team mailing list archive

[Question #157804]: Unit testing problems

 

New question #157804 on Gephi:
https://answers.launchpad.net/gephi/+question/157804

DHNS Graph module is not public, so it's not possible to use GraphController implementation and following code  will fail in test run with NPE:

GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
graphController.getModel(); // NPE - since no implementation is provided.

Any ideas?

Thanks in advance,
Artem

PS: Also, just to mention there are very few tests provided with different modules.

-- 
You received this question notification because you are a member of
Gephi Team, which is an answer contact for Gephi.