Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
student:junit:v5 [2020/01/15 15: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, |