mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
REPO-2774: add the final tests to test suites
This commit is contained in:
@@ -56,10 +56,7 @@ import org.springframework.context.ApplicationContext;
|
||||
@Category(OwnJVMTestsCategory.class)
|
||||
public class CacheTest extends TestCase
|
||||
{
|
||||
private static ApplicationContext ctx = ApplicationContextHelper.getApplicationContext(
|
||||
new String[] {
|
||||
"classpath:cache-test/cache-test-context.xml",
|
||||
ApplicationContextHelper.CONFIG_LOCATIONS[0]});
|
||||
private ApplicationContext ctx;
|
||||
|
||||
private ServiceRegistry serviceRegistry;
|
||||
private SimpleCache<String, Object> objectCache;
|
||||
@@ -72,7 +69,9 @@ public class CacheTest extends TestCase
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void setUp() throws Exception
|
||||
{
|
||||
{
|
||||
ctx = ApplicationContextHelper.getApplicationContext(
|
||||
new String[] { "classpath:cache-test/cache-test-context.xml", ApplicationContextHelper.CONFIG_LOCATIONS[0] });
|
||||
if (AlfrescoTransactionSupport.getTransactionReadState() != TxnReadState.TXN_NONE)
|
||||
{
|
||||
fail("A transaction is still running");
|
||||
|
Reference in New Issue
Block a user