BDE-73 BDE-78 Add more tests to compute coverage + fetch application context from classpath rather than file system

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@39409 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Samuel Langlois
2012-07-18 08:46:03 +00:00
parent ac7c5d5a4f
commit 2bfc1ca0cc
3 changed files with 35 additions and 26 deletions

View File

@@ -42,7 +42,7 @@ import org.alfresco.util.Deleter;
import org.alfresco.util.NameMatcher;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* End to end test of deployment to a file system receiver (FSR).
@@ -82,8 +82,8 @@ public class DeploymentServiceImplFSTest extends AVMServiceTestBase
* Start the FSR
*/
@SuppressWarnings("unused")
FileSystemXmlApplicationContext receiverContext =
new FileSystemXmlApplicationContext("../deployment/config/application-context.xml");
ClassPathXmlApplicationContext receiverContext =
new ClassPathXmlApplicationContext("application-context.xml"); // Fetch application context from deployment
service = (DeploymentService)fContext.getBean("DeploymentService");
}

View File

@@ -60,7 +60,7 @@ import org.alfresco.wcm.util.WCMUtil;
import org.alfresco.wcm.webproject.WebProjectInfo;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Test of deployment to a Test Server.
@@ -116,8 +116,8 @@ public class DeploymentServiceTest extends AbstractWCMServiceImplTest
* Start the FSR
*/
@SuppressWarnings("unused")
FileSystemXmlApplicationContext receiverContext =
new FileSystemXmlApplicationContext("../deployment/config/application-context.xml");
ClassPathXmlApplicationContext receiverContext =
new ClassPathXmlApplicationContext("application-context.xml"); // Fetch application context from deployment
}