ehcachetest.java

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

JAVA
48
字号
//$Id: $
package org.hibernate.test.cache.ehcache;

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

/**
 * @author Emmanuel Bernard
 */
public class EhCacheTest 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 EhCacheTest(String x) {
		super( x );
	}

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

	public String getCacheConcurrencyStrategy() {
		return "read-write";
	}

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

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

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

	protected boolean useTransactionManager() {
		return false;
	}

}

⌨️ 快捷键说明

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