Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mylar-dev] Running test TaskDataExportTest in Eclipse

Hi

I'm wondering what kind of setup I need in order to run certain test
cases. I'm thinking of org.eclipse.mylar.tasks.tests.TaskDataExportTest.

When I try to run it (using Eclipse->Run as Unit test) I get a NPE:
java.lang.NullPointerException
      at org.eclipse.mylar.tasks.tests.TaskDataExportTest.setUp(TaskDataExportTest.java:55)
      at junit.framework.TestCase.runBare(TestCase.java:125)

It seems that the TasksUiPlugin.INSTANCE member is null. I guess I
missed some init code to get it to work.


Or is it possible to just run one test from Eclipse (Run As->Unit test)?


Regards
//Erik


Back to the top