Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
student:junit:v5 [2018/08/14 10:55] – bernstdh | student: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, | assertThrows(IllegalArgumentException.class, | ||
Line 180: | Line 179: | ||
// Shouldn’t get here | // Shouldn’t get here | ||
- | fail("Constrcutor | + | fail("Constructor |
} | } | ||
catch (IllegalArgumentException iae) | catch (IllegalArgumentException iae) | ||
Line 387: | Line 386: | ||
- | ==== Integrating JUnit into a IDE ==== | + | ==== Integrating JUnit into an IDE ==== |