Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
student:junit:v5 [2020/02/23 10:44] – Fixed example of assertThrows() bernstdhstudent:junit:v5 [2020/02/23 10:50] – Fixed the description of assertThrows() bernstdh
Line 162: Line 162:
  
 This approach uses a //Lambda expression//, a representation of a class with a single-method.  This approach uses a //Lambda expression//, a representation of a class with a single-method. 
-(Note that ''%%IllegalArgumentException%%'' is an unchecked   exception. Hence, this code will compile even if the test method does   not specify that it re-throws the exception. If you are testing for   a checked exception then the test method must specify that it re-throws   the exception.)