JCacheEhCache3Tests enforces EhCache 3.0's CachingProvider
Issue: SPR-13342
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user