REPO-2774: add the final tests to test suites

This commit is contained in:
Andrei Rebegea
2017-08-07 14:14:24 +03:00
parent c0cd284ddb
commit c283c81acc
7 changed files with 128 additions and 82 deletions

View File

@@ -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");