Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| student:junit:v5 [2022/02/23 22:11] – [More About the Asserttions.assertEquals() Method] stewarmc | student:junit:v5 [2024/01/24 16:43] (current) – bernstdh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| ===== JUnit v5 (Jupiter) Basics ===== | ===== JUnit v5 (Jupiter) Basics ===== | ||
| Line 243: | Line 242: | ||
| The .jar file will be named something like '' | The .jar file will be named something like '' | ||
| - | ==== Compiling and Running JUnit Tests from a Command Shell ==== | + | ==== Compiling and Running JUnit Tests from a Command Shell/Terminal Window |
| Line 303: | Line 302: | ||
| To run: | To run: | ||
| - | '' | + | '' |
| where //Name// represents the name of the class being tested. | where //Name// represents the name of the class being tested. | ||
| Line 364: | Line 363: | ||
| To compile: | To compile: | ||
| - | '' | + | '' |
| where //Name// represents tha name of the class being tested (and can contain wildcards like *). | where //Name// represents tha name of the class being tested (and can contain wildcards like *). | ||
| Line 370: | Line 369: | ||
| To run: | To run: | ||
| - | java -cp .;junit.jar org.junit.platform.console.ConsoleLauncher --select-class | + | java -cp .:junit.jar org.junit.platform.console.ConsoleLauncher --select-class |
| where //Name// represents the name of the class being tested. | where //Name// represents the name of the class being tested. | ||
| Line 377: | Line 376: | ||
| < | < | ||
| - | javac -cp .;junit.jar AtomTest.java | + | javac -cp .:junit.jar AtomTest.java |
| - | java -cp .;junit.jar org.junit.platform.console.ConsoleLauncher --select-class | + | java -cp .:junit.jar org.junit.platform.console.ConsoleLauncher --select-class |
| </ | </ | ||
