mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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");
|
||||
}
|
||||
|
@@ -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
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user