Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
student:junit:v5 [2021/10/14 10:42] – bernstdh | student:junit:v5 [2023/11/17 08:45] – [Compiling and Running JUnit Tests from a Command Shell] bowersjc | ||
---|---|---|---|
Line 133: | Line 133: | ||
- | ==== More About the Asserttions.assertEquals() Method ==== | + | ==== More About the Assertions.assertEquals() Method ==== |
Line 303: | Line 303: | ||
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 364: | ||
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 370: | ||
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 377: | ||
< | < | ||
- | 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 |
</ | </ | ||