frc-java-emulator
Simple Emulation package for FIRST Robotics Java code running on a cRio
Add the frc-java-emulator jar to your build path
Make sure that you also have frc-java-emulator's dependencies, Reflections and Javassist.
Change all your WPILib imports to robotemulator ones (either add "import robotemulator.*;" or do a find and replace for "edu.wpi.first.wpilibj" with "robotemulator")
Run the code! The main class is "robotemulator.RobotEmulator". It will search for all classes extending IterativeRobot and ask which one you want to run.