Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
student:junit:v5 [2021/10/14 10:42] bernstdhstudent: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:
  
-''java -cp .;junit.jar org.junit.platform.console.ConsoleLauncher --select-class  //ClassName//Test''+''java -cp .:junit.jar org.junit.platform.console.ConsoleLauncher --select-class  //ClassName//Test''
  
 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:
  
-''javac -cp .;junit.jar //ClassName//Test.java''+''javac -cp .:junit.jar //ClassName//Test.java''
  
 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   //ClassName//Test+java -cp .:junit.jar org.junit.platform.console.ConsoleLauncher --select-class   //ClassName//Test
  
 where //Name// represents the name of the class being tested. where //Name// represents the name of the class being tested.
Line 377: Line 377:
  
 <code> <code>
-javac -cp .;junit.jar AtomTest.java +javac -cp .:junit.jar AtomTest.java 
-java -cp .;junit.jar org.junit.platform.console.ConsoleLauncher --select-class   AtomTest+java -cp .:junit.jar org.junit.platform.console.ConsoleLauncher --select-class   AtomTest
 </code> </code>