1 package org.kuali.common.deploy;
2
3 import java.util.Properties;
4
5 import org.junit.Test;
6 import org.kuali.common.util.service.DefaultSpringService;
7 import org.kuali.common.util.service.SpringService;
8 import org.slf4j.Logger;
9 import org.slf4j.LoggerFactory;
10
11 public class DefaultDeployServiceTest {
12
13 private static final Logger logger = LoggerFactory.getLogger(DefaultDeployServiceTest.class);
14 SpringService ss = new DefaultSpringService();
15
16
17
18
19
20 @Test
21 public void test() {
22 try {
23 logger.trace("");
24 Properties mavenProperties = new Properties();
25 mavenProperties.setProperty("kuali.encoding", "UTF-8");
26 mavenProperties.setProperty("kuali.groupId", "org.kuali");
27 mavenProperties.setProperty("project.groupId", "org.kuali.student.web");
28 mavenProperties.setProperty("project.artifactId", "ks-with-rice-bundled");
29 mavenProperties.setProperty("project.version", "2.0.0-SNAPSHOT");
30 mavenProperties.setProperty("project.classifier", "");
31 mavenProperties.setProperty("deploy.env", "16");
32 mavenProperties.setProperty("db.vendor", "oracle");
33 mavenProperties.setProperty("kuali.enc.password", System.getProperty("kuali.enc.password"));
34 mavenProperties.setProperty("kuali.enc.mode", "DECRYPT");
35 ss.load("classpath:org/kuali/common/deploy/spring/deploy-context.xml", "kdo.mavenProperties", mavenProperties);
36 } catch (Exception e) {
37 e.printStackTrace();
38 }
39 }
40 }