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 14:08] – bernstdh | student:junit:v5 [2020/02/23 10:50] – Fixed the description 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 163: | Line 162: | ||
This approach uses a //Lambda expression//, | This approach uses a //Lambda expression//, | ||
- | (Note that '' | ||
Line 387: | Line 385: | ||
- | ==== Integrating JUnit into a IDE ==== | + | ==== Integrating JUnit into an IDE ==== |