1 | protected void setUp() throws Exception {↵ | | 1 | protected void setUp() throws Exception {↵
|
2 | super.setUp();↵ | | 2 | super.setUp();↵
|
3 | ↵ | | 3 | ↵
|
4 | if (getCollectionAccessStrategy() == null) {↵ | | 4 | if (getEntityAccessStrategy() == null) {↵
|
5 | Configuration cfg = createConfiguration();↵ | | 5 | Configuration cfg = createConfiguration();↵
|
6 | JBossCacheRegionFactory rf = CacheTestUtil.startRegionFactory(cfg, getCacheTestSupport());↵ | | 6 | JBossCacheRegionFactory rf = CacheTestUtil.startRegionFactory(cfg, getCacheTestSupport());↵
|
7 | Cache localCache = rf.getCacheInstanceManager().getEntityCacheInstance();↵ | | 7 | Cache localCache = rf.getCacheInstanceManager().getEntityCacheInstance();↵
|
8 | optimistic = localCache.getConfiguration().getNodeLockingScheme() == org.jboss.cache.config.Configuration.NodeLockingScheme.OPTIMISTIC;↵ | | 8 | optimistic = localCache.getConfiguration().getNodeLockingScheme() == org.jboss.cache.config.Configuration.NodeLockingScheme.OPTIMISTIC;↵
|
9 | ↵ | | 9 | ↵
|
10 | // Sleep a bit to avoid concurrent FLUSH problem↵ | | 10 | // Sleep a bit to avoid concurrent FLUSH problem↵
|
11 | avoidConcurrentFlush();↵ | | 11 | avoidConcurrentFlush();↵
|
12 | ↵ | | 12 | ↵
|
13 | CollectionRegion localCollectionRegion = rf.buildCollectionRegion(REGION_NAME, cfg.getProperties(), null);↵ | | 13 | EntityRegion localEntityRegion = rf.buildEntityRegion(REGION_NAME, cfg.getProperties(), null);↵
|
14 | setCollectionAccessStrategy(localCollectionRegion.buildAccessStrategy(getAccessType()));↵ | | 14 | setEntityRegionAccessStrategy(localEntityRegion.buildAccessStrategy(getAccessType()));↵
|
15 | | | 15 |
|