View Single Post
  #1   Spotlight this post!  
Unread 12-12-2013, 22:55
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 67
jfitz0807 is an unknown quantity at this point
Trying to use junit so I can test code without needing the cRIO

I haven't seen much about junit in here. The discussion on screenstepslive talks about using the Smart Dashboard with a Command Based robot. I would like to be able to test some of the code without needing to run it on the cRIO.

I am still using Netbeans 7.2 from last year's control system with our code from last year as well. I verified that I have the junit plugin installed. I was able to create the test classes, but they won't compile.

The problem is that Netbeans can't seem to find the junit package. For example, on the line:

import junit.framework.TestCase;

Netbeans complains the the package junit.framework does not exist. How could Netbeans have created all the test classes if it can't find the packages?

My junit code is located at

C:\Users\John\AppData\Roaming\NetBeans\7.2\docs\ju nit-3.8.2-api

I extracted the files from the zip delivered with the junit plugin.

Any thoughts? Is Netbeans looking somewhere else? Is there a setting I can use to tell Netbeans where to look?

Thanks.
Reply With Quote