Thursday, 24 September 2015

ehcache and junit

Yesterday I upgraded ehcache lib to 2.8.4 in supported by me application. I have run tests and I saw in logs a few lines of notice.

Notice says, there is another CacheManager in JVM. I had to think a while. I changed configuration files and I gave them a name but it didn't fix it. I debugged this and I saw that every test is run there is loading new instance of configuration and there is created new CacheManager with known name.

I searched a little in google and I found out that I can downgrade libs to version 2.4.x or turn off cache during the test. I chose first solution.

No comments:

Post a Comment