treecachetest.java

来自「好东西,hibernate-3.2.0,他是一开元的树杖hibernate-3.」· Java 代码 · 共 47 行

JAVA
47
字号
package org.hibernate.test.cache.treecache.pessimistic;

import org.hibernate.test.cache.BaseCacheProviderTestCase;
import org.hibernate.cache.TreeCacheProvider;
import org.hibernate.cfg.Environment;
import junit.framework.Test;
import junit.framework.TestSuite;

/**
 * @author Steve Ebersole
 */
public class TreeCacheTest extends BaseCacheProviderTestCase {

	// note that a lot of the fucntionality here is intended to be used
	// in creating specific tests for each CacheProvider that would extend
	// from a base test case (this) for common requirement testing...

	public TreeCacheTest(String x) {
		super( x );
	}

	public static Test suite() {
		return new TestSuite( TreeCacheTest.class );
	}

	public String getCacheConcurrencyStrategy() {
		return "transactional";
	}

	protected Class getCacheProvider() {
		return TreeCacheProvider.class;
	}

	protected String getConfigResourceKey() {
		return Environment.CACHE_PROVIDER_CONFIG;
	}

	protected String getConfigResourceLocation() {
		return "org/hibernate/test/cache/treecache/pessimistic/treecache.xml";
	}

	protected boolean useTransactionManager() {
		return true;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?