1 | public class EhCacheTest extends BaseCacheProviderTestCase {
↵ | | 1 | public class PessimisticTreeCacheTest extends BaseCacheProviderTestCase {↵
|
2 | public EhCacheTest(String x) {
↵ | | 2 | public PessimisticTreeCacheTest(String x) {↵
|
3 | super( x );
↵ | | 3 | super( x );↵
|
4 | }↵ | | 4 | }↵
|
5 |
↵ | | |
|
|
6 | public static Test suite() {
↵ | | 5 | public static Test suite() {↵
|
7 | return new FunctionalTestClassTestSuite( EhCacheTest.class );
↵ | | 6 | return new FunctionalTestClassTestSuite( PessimisticTreeCacheTest.class );↵
|
8 | }↵ | | 7 | }↵
|
9 |
↵ | | |
|
|
10 | public String getCacheConcurrencyStrategy() {
↵ | | 8 | public String getCacheConcurrencyStrategy() {↵
|
11 | return "read-write";
↵ | | 9 | return "transactional";↵
|
12 | }↵ | | 10 | }↵
|
13 |
↵ | | |
|
|
14 | protected Class getCacheProvider() {
↵ | | 11 | protected Class getCacheProvider() {↵
|
15 | return EhCacheProvider.class;
↵ | | 12 | return TreeCacheProvider.class;↵
|
16 | }↵ | | 13 | }↵
|
17 |
↵ | | |
|
|
18 | protected String getConfigResourceKey() {
↵ | | 14 | protected String getConfigResourceKey() {↵
|
19 | return Environment.CACHE_PROVIDER_CONFIG;
↵ | | 15 | return Environment.CACHE_PROVIDER_CONFIG;↵
|
20 | }↵ | | 16 | }↵
|
21 |
↵ | | |
|
|
22 | protected String getConfigResourceLocation() {
↵ | | 17 | protected String getConfigResourceLocation() {↵
|
23 | return "ehcache.xml";
↵ | | 18 | return "treecache-pessimistic.xml";↵
|
24 | }↵ | | 19 | }↵
|
25 |
↵ | | |
|
|
26 | protected boolean useTransactionManager() {
↵ | | 20 | protected boolean useTransactionManager() {↵
|
27 | return false | | 21 | return true
|