Test uses ApplicationContextHelper to load single context

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5728 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley 2007-05-19 05:56:55 +00:00
parent d69da227ca
commit 1b10c9dad0

View File

@ -86,8 +86,8 @@ import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName; import org.alfresco.service.namespace.QName;
import org.alfresco.service.namespace.RegexQNamePattern; import org.alfresco.service.namespace.RegexQNamePattern;
import org.alfresco.service.transaction.TransactionService; import org.alfresco.service.transaction.TransactionService;
import org.alfresco.util.ApplicationContextHelper;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.util.StopWatch; import org.springframework.util.StopWatch;
/** /**
@ -98,7 +98,7 @@ public class RuleServiceCoverageTest extends TestCase
/** /**
* Application context used during the test * Application context used during the test
*/ */
static ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:alfresco/application-context.xml"); static ApplicationContext applicationContext = ApplicationContextHelper.getApplicationContext();
/** /**
* Services used during the tests * Services used during the tests