Skip to content

Commit

Permalink
Resources move to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karqz committed Dec 8, 2022
1 parent bef8351 commit 81d7944
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/org/kava/espresso/DriverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
public class DriverTest {
@Test
public void checkSelect() {
String url = "jdbc:csv:src/main/resources/";
String url = "jdbc:csv:src/test/resources/";
String query = "SELECT * FROM simple_database.csv;";
try {
Class.forName("org.kava.espresso.EspressoDriver");
Connection con = DriverManager.getConnection(url);
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(query);
Expand All @@ -22,7 +23,7 @@ public void checkSelect() {
assertEquals(rs.getString(0), "C");
assertEquals(rs.getString(1), "D");

} catch (SQLException e) {
} catch (Exception e) {
throw new RuntimeException(e);
}
}
Expand Down
File renamed without changes.

0 comments on commit 81d7944

Please # to comment.