Statement lambda can be replaced with expression lambda
This commit is contained in:
parent
2327a11eca
commit
37b5df83c5
@ -24,9 +24,7 @@ class ExceptionUnitTest {
|
|||||||
@Test
|
@Test
|
||||||
void assertThrowsException() {
|
void assertThrowsException() {
|
||||||
String str = null;
|
String str = null;
|
||||||
assertThrows(IllegalArgumentException.class, () -> {
|
assertThrows(IllegalArgumentException.class, () -> Integer.valueOf(str));
|
||||||
Integer.valueOf(str);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user