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
student:junit:v5 [2021/10/14 10:42] bernstdhstudent:junit:v5 [2024/01/24 16:43] (current) bernstdh
Line 1: Line 1:
- 
  
 ===== JUnit v5 (Jupiter) Basics ===== ===== JUnit v5 (Jupiter) Basics =====
Line 133: Line 132:
  
  
-==== More About the Asserttions.assertEquals() Method ====+==== More About the Assertions.assertEquals() Method ====
  
  
Line 243: Line 242:
 The .jar file will be named something like ''%%junit-platform-console-standalone.jar%%'' (which is referred to below as ''%%junit.jar%%'' for simplicity). The .jar file will be named something like ''%%junit-platform-console-standalone.jar%%'' (which is referred to below as ''%%junit.jar%%'' for simplicity).
  
-==== 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:
  
-''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 363:
 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 369:
 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 376:
  
 <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>