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/01/15 15:55] bernstdhstudent:junit:v5 [2020/02/23 10:44] – Fixed example of assertThrows() bernstdh
Line 155: Line 155:
    */    */
   @Test   @Test
-  public void constructor_IllegalArguments()  +  public void constructor_IllegalArguments()
-          throws IllegalArgumentException+
   {   {
     assertThrows(IllegalArgumentException.class, () -> {new Atom("O", -8, -16);});     assertThrows(IllegalArgumentException.class, () -> {new Atom("O", -8, -16);});