• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

tearing down in memory database hsqldb

 
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i am using hsqldb memory database to test interaction with database (happy path tests, that some data can be entered and deleted), i do not conceive this as a unit tests merely as a integration test.
for achieving that i need a tear down, so test are isolated. problem is that, tearing down does not work properly with hsqldb in memory database.

hsqldb sets up temporary file like mem.lck, mem.log. i try to delete them in my tearDown() method but it seems that sometimes filesystem is not quick enough to delete resources or file is locked, so for instance mem.lck is still there for the next test case which makes tests break.

has anybody experienced same problem and knows a solution for working with tearing down hsqldb memory database?

thanks for information.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic