Hi,

How are you executing the test? You would get NullPointerException if you
try to run it as a "JUnit Test" instead of "JUnit Plug-in Test".

If you want to run the test individually:

1. Right-click on the TmfTraceTest.java in the Package Explorer
2. Select "Run As > JUnit Plug-in Test"

If you want to run the TMF "Trace" suite, select AllTests.java.

Hope this helps,
/fc


2010/11/30 Francis Giraldeau <[email protected]>

> Hi,
>
> I just imported the tmf projects into eclipse and I'm having trouble to run
> tmf unit tests. For example, when trying to run TmfTraceTest with junit
> within eclipse, I got java.lang.NullPointerException, throwned by the
> FileLocator because the bundle returned by TmfCoreTestPlugin is null. Is
> there a missing step to install bundle?
>
> Cheer,
>
> Francis
>
>
>
> _______________________________________________
> linuxtools-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/linuxtools-dev
>



-- 
Francois
_______________________________________________
linuxtools-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/linuxtools-dev

Reply via email to