Proper use of JUnit APIs
This commit is contained in:
parent
5d2557714c
commit
8c4ecf734e
|
@ -255,12 +255,7 @@ public class CSVRecordTest {
|
|||
assertFalse(rec.isSet("A"));
|
||||
assertEquals(0, rec.toMap().size());
|
||||
// This will throw
|
||||
try {
|
||||
rec.get("A");
|
||||
org.junit.jupiter.api.Assertions.fail("Access by name is not expected after deserialisation");
|
||||
} catch (final IllegalStateException expected) {
|
||||
// OK
|
||||
}
|
||||
assertThrows(IllegalStateException.class, () -> rec.get("A"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue