The declared exception Exception is not actually thrown by the method

This commit is contained in:
Gary Gregory 2022-08-11 09:32:03 -04:00
parent 40682bf60e
commit 18535aad5d
1 changed files with 1378 additions and 1378 deletions

View File

@ -744,7 +744,7 @@ public class CSVParserTest {
} }
@Test @Test
public void testHeadersMissingOneColumnException() throws Exception { public void testHeadersMissingOneColumnException() {
final Reader in = new StringReader("a,,c,d,e\n1,2,3,4,5\nv,w,x,y,z"); final Reader in = new StringReader("a,,c,d,e\n1,2,3,4,5\nv,w,x,y,z");
assertThrows(IllegalArgumentException.class, () -> CSVFormat.DEFAULT.withHeader().parse(in).iterator()); assertThrows(IllegalArgumentException.class, () -> CSVFormat.DEFAULT.withHeader().parse(in).iterator());
} }