Skip to content
Advertisement

Tag: in-memory-database

Load CSV file located in the classpath for H2 Database

For tests purposes, I want to create and fill some tables using SQL scripts as well as CSV files. So I created a SQL script like this one: The foo.csv file exists, and is located in src/test/resources. When this script is run on Eclipse (where src/test/resources is defined as a source directory and thus is included in the classpath), I

Advertisement