Skip to content

Commit

Permalink
Fix test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Nov 29, 2023
1 parent f0d582f commit cc6e026
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static void deleteTempDirectory() throws IOException {

@Test
public void testInitialization() throws IOException {
assertThrows(NullPointerException.class, () -> new FileLineQuerySource(null));
assertThrows(IllegalArgumentException.class, () -> new FileLineQuerySource(null));
assertDoesNotThrow(() -> new FileLineQuerySource(Files.createTempFile(directory, "Query", ".txt")));
final var notEmptyFile = Files.createTempFile(directory, "Query", ".txt");
Files.writeString(notEmptyFile, "not empty");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static void deleteTempDirectory() throws IOException {

@Test
public void testInitialization() throws IOException {
assertThrows(NullPointerException.class, () -> new FileSeparatorQuerySource(null));
assertThrows(IllegalArgumentException.class, () -> new FileSeparatorQuerySource(null));
assertDoesNotThrow(() -> new FileSeparatorQuerySource(Files.createTempFile(directory, "Query", ".txt"), "###"));
final var notEmptyFile = Files.createTempFile(directory, "Query", ".txt");
Files.writeString(notEmptyFile, "not empty");
Expand Down

0 comments on commit cc6e026

Please sign in to comment.