[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[mylar-dev] Running test TaskDataExportTest in Eclipse
|
- From: "Erik Ramfelt" <eramfelt@xxxxxxxxx>
- Date: Sat, 23 Dec 2006 01:43:29 +0100
- Delivered-to: mylar-dev@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=bjO0m2HIXFuNiC8I1p2eI6IhqK21F6KhJzUjhNde4CtNMMqVYdE6evBQO8D1WaIwp+LkKhg1DAcnI/RP4PTpAfnKm85aebS/dInwMrgYjIQ4DIgc8w4KtHFCxZHXJx8zm9/dFQd1GgE2WNnUx4Z1phg5mac3Xds93AIIGIJVKPk=
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