JCacheEhCache3Tests enforces EhCache 3.0's CachingProvider

Issue: SPR-13342
This commit is contained in:
Juergen Hoeller
2015-08-12 23:09:16 +02:00
parent f5210ce0c8
commit 3a5cc3df80
2 changed files with 24 additions and 2 deletions

View File

@@ -16,12 +16,21 @@
package org.springframework.cache.jcache;
import javax.cache.Caching;
import javax.cache.spi.CachingProvider;
/**
* Just here to be run against EHCache 3, whereas the original JCacheEhCacheTests
* runs against EhCache 2.x with the EhCache-JCache add-on.
*
* @author Juergen Hoeller
* @since 4.2.1
*/
public class JCacheEhCache3Tests extends JCacheEhCacheTests {
@Override
protected CachingProvider getCachingProvider() {
return Caching.getCachingProvider("org.ehcache.jsr107.EhcacheCachingProvider");
}
}