JUnit 4 Test

Topics related to the LSPS SDK and custom development of applications.

JUnit 4 Test

Postby ddabber » Mon Mar 12, 2012 10:23 pm

When I try to run junit 4 tests in the lsps designer I get a null pointer exception when trying to start the tests. It works fine from the command prompt. I get the error from the 2.5 and 2.5.1 installs. I try to add the library to the build path but it does not exist. I also tried a clean workspace and new lsps application with the same result.

Please see attachment screenshot.

Thanks,

Dave
Attachments
junit4error.png
junit4error.png (39.63 KiB) Viewed 453 times
ddabber
 
Posts: 29
Joined: Tue Mar 06, 2012 11:41 pm

Re: JUnit 4 Test

Postby Maros Bajtos » Tue Mar 13, 2012 2:09 pm

Dave,

this is a known issue of PDS 2.5.1. PDS doesn't bundle the eclipse plugin required to execute your tests. You have two options:

a) Use standard eclipse environment to run and debug your tests ( since it is standard java app, you don't need PDS features )

b) Fix PDS installation by adding missing plugin, by following these steps (with PDS not running):
1. remove all files except for "config.ini" from $INSTALL_DIR/configuration/
2. copy attached jar file into $INSTALL_DIR/plugins/
Attachments
org.eclipse.jdt.junit4.runtime_1.1.100.v20100526-0800.jar
missing plugin
(17.22 KiB) Downloaded 92 times
Maros Bajtos
 
Posts: 113
Joined: Mon Feb 27, 2012 2:52 pm

Re: JUnit 4 Test

Postby ddabber » Tue Mar 13, 2012 3:09 pm

Thanks, Maros.
ddabber
 
Posts: 29
Joined: Tue Mar 06, 2012 11:41 pm


Return to SDK

Who is online

Users browsing this forum: No registered users and 0 guests

cron