Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
student:jgrasp:help [2021/08/30 10:24] – [Using Checkstyle] stewarmc | student:jgrasp:help [2021/11/28 16:41] (current) – bernstdh |
---|
* Right-click and choose "Save Link As...' | * 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. | * 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>. | - 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. |
| |
| |