build: upgrade AssertJ
This commit is contained in:
@@ -42,7 +42,7 @@ class FluentStreamTest {
|
||||
assertThatNoException().isThrownBy(ps2::expectLineEnd);
|
||||
|
||||
var ps3 = new FluentStream(" ");
|
||||
ParseException catchException = catchThrowableOfType(ps3::expectLineEnd, ParseException.class);
|
||||
ParseException catchException = catchThrowableOfType(ParseException.class, ps3::expectLineEnd);
|
||||
assertThat(catchException.getCode()).isEqualTo(E0003);
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ class FluentStreamTest {
|
||||
void testExpectChar() {
|
||||
var ps = new FluentStream("z");
|
||||
assertThatNoException().isThrownBy(() -> ps.expectChar('z'));
|
||||
ParseException catchException = catchThrowableOfType(() -> ps.expectChar('a'), ParseException.class);
|
||||
ParseException catchException = catchThrowableOfType(ParseException.class, () -> ps.expectChar('a'));
|
||||
assertThat(catchException.getCode()).isEqualTo(E0003);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user