Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
student:jgrasp:help [2018/09/06 17:58] – bernstdh | student:jgrasp:help [2021/11/28 16:41] (current) – bernstdh |
---|
| |
| |
| === Setting the checkstyle binary ("JAR file") === |
| - Download an appropriate checkstyle jar file, either provided by your instructor or from [[https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.45.1/checkstyle-8.45.1-all.jar|this link to 8.45]]. |
| * Right-click and choose "Save Link As...' |
| * put this somewhere on the computer that you won't accidentally delete it before you're done with it. |
| - In jGRASP, click on <key>Tools</key>, pull down to <key>Checkstyle</key> and across to <key>Settings</key>. For the field labeled "Checkstyle Home or Jar" , click <key>Browse</key>, navigate to the ''%%.xml%%'' file. Then, click on <key>OK</key>. |
=== Running Checkstyle === | === Running Checkstyle === |
| |
| |
If you have properly configured jGRASP, the "Create JUnit test file" button, {{jgrasp-CreateJUnitTestFile.png}}, will appear whenever you open a ''%%.java%%'' file. | If you have properly configured jGRASP, the "Create JUnit test file" button, {{jgrasp-CreateJUnitTestFile.png}}, will appear whenever you open a ''%%.java%%'' file. |
| |
| |
| == Classpath == |
| |
Though it's not absolutely necessary (depending on how you create your test classes), you should also add ''%%junit.jar%%'' to the CLASSPATH for your workspace. To do so, click on <key>Settings</key>-<key>PATH/CLASSPATH</key> -<key>Workspace</key> and select the CLASSPATHS tab. Then, click on <key>New</key> and add ''%%junit.jar%%''. | Though it's not absolutely necessary (depending on how you create your test classes), you should also add ''%%junit.jar%%'' to the CLASSPATH for your workspace. To do so, click on <key>Settings</key>-<key>PATH/CLASSPATH</key> -<key>Workspace</key> and select the CLASSPATHS tab. Then, click on <key>New</key> and add ''%%junit.jar%%''. |
| |
| |
Unless you understand what it is doint, you should probably delete all of the code that jGrasp inserts into this class and start from scratch. | Unless you understand what it is doing, you should probably delete all of the code that jGrasp inserts into this class and start from scratch. |
| |
| |