java - Unit Testing Ignore owner from H2 database -


i test multiple methods without having restrictions access database. there legacy code has query coded , wondering if h2 can ignore prefixes owner while testing.

for example: in code...

.. string q = "select user admin_dba.empolyees id < ? , id > 25"; try {     con = datasourceutils.getconnection(datasource);              pst = con.preparestatement(q);             pst.setlong(1,  id);             rs = pst.executequery(); ... 

as testing able ignore admin_dba in h2?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -