This section of the developer guide includes instructions on how to set up JUnit testing within Eclipse:
<http://hackydev.ics.hawaii.edu/hackyDevSite/external/docbook/ch12s06.html> Your error looks like it results from not including the right jvmargs. See if the above helps. Cheers, Philip ----- Original Message ----- From: Aaron Kagawa <[EMAIL PROTECTED]> Date: Sunday, May 28, 2006 11:14 am Subject: [HACKYSTAT-DEV-L] Running JUnit in Eclipse on DailyProject implementations To: [email protected] > Hey Guys, > > Does anyone run JUnit in Eclipse on DailyProject (or any other > Hackystat code) implementations? > > I get this error when trying to run JUnit in Eclipse. Note that it > does work okay from Ant. > > 05/27 23:08:23 \WEB-INF\sdt not found! Cannot define sensor data > types!05/27 23:08:23 java.lang.NullPointerException > at EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap.hash(Unknown > Source)at > EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap.get(Unknown Source) > at > org.hackystat.core.kernel.cache.ThreeKeyCache.get(ThreeKeyCache.java:170)at > org.hackystat.core.kernel.sensordata.SensorDataCache.getSensorData(SensorDataCache.java:45) > at > org.hackystat.sdt.unittest.dailyproject.DailyProjectUnitTest.getUserData(DailyProjectUnitTest.java:127) > at > org.hackystat.sdt.unittest.dailyproject.DailyProjectUnitTest.getFilePatternDataMap(DailyProjectUnitTest.java:108) > at > org.hackystat.sdt.unittest.dailyproject.DailyProjectUnitTest.getUnitTestInfo(DailyProjectUnitTest.java:173) > at > org.hackystat.sdt.unittest.dailyproject.DailyProjectUnitTest.hasSensorData(DailyProjectUnitTest.java:72) > at > org.hackystat.sdt.unittest.dailyproject.TestDailyProjectUnitTest.testOnlyUnitTestData(TestDailyProjectUnitTest.java:231) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at junit.framework.TestCase.runTest(TestCase.java:154) > at junit.framework.TestCase.runBare(TestCase.java:127) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) > at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > > > Also note that I have the following VN arguments set in Eclipse's > Run window: > > -Dhackystat.properties.dir=C:\java\svn > -Dhackystat_data_dir=C:\java\cvs\hackystatdata > -Dhackystat.war.dir=c:\java\svn\hackyCore_Build\build\war > > > thanks, Aaron >
