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
Next revisionBoth sides next revision
student:junit:v5 [2018/08/14 14:08] 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);});
Line 387: Line 386:
  
  
-==== Integrating JUnit into IDE ====+==== Integrating JUnit into an IDE ====