File tree Expand file tree Collapse file tree
src/test/java/issues/gh324 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030import org .apache .ibatis .session .SqlSessionFactoryBuilder ;
3131import org .apache .ibatis .transaction .jdbc .JdbcTransactionFactory ;
3232
33- public final class NameService {
33+ public class NameService {
3434 private static final String JDBC_URL = "jdbc:hsqldb:mem:aname" ;
3535 private static final String JDBC_DRIVER = "org.hsqldb.jdbcDriver" ;
3636
@@ -39,7 +39,7 @@ public final class NameService {
3939 public NameService () {
4040 try {
4141 Class .forName (JDBC_DRIVER );
42- try (InputStream is = getClass () .getResourceAsStream ("/issues/gh324/CreateDB.sql" )) {
42+ try (InputStream is = NameService . class .getResourceAsStream ("/issues/gh324/CreateDB.sql" )) {
4343 assert is != null ;
4444 try (Connection connection = DriverManager .getConnection (JDBC_URL , "sa" , "" );
4545 InputStreamReader isr = new InputStreamReader (is )) {
You can’t perform that action at this time.
0 commit comments