1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common_test_tester; |
17 |
|
|
18 |
|
import static org.junit.Assert.assertNotNull; |
19 |
|
|
20 |
|
import org.apache.log4j.Logger; |
21 |
|
import org.junit.Test; |
22 |
|
import org.kuali.student.common.test.spring.AbstractServiceTest; |
23 |
|
import org.kuali.student.common.test.spring.Client; |
24 |
|
import org.kuali.student.common.test.spring.Dao; |
25 |
|
import org.kuali.student.common.test.spring.Daos; |
26 |
|
import org.kuali.student.common.test.spring.PersistenceFileLocation; |
27 |
|
import org.kuali.student.common_test_tester.support.MyService; |
28 |
|
|
29 |
|
@Daos( { |
30 |
|
@Dao(value = "org.kuali.student.common_test_tester.support.MyDaoImpl", testDataFile = "classpath:META-INF/load-my-beans.xml"), |
31 |
|
@Dao("org.kuali.student.common_test_tester.support.OtherDaoImpl") }) |
32 |
|
@PersistenceFileLocation("classpath:META-INF/test-persistence.xml") |
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
33 |
|
public class ServiceCommonCopyTest extends AbstractServiceTest { |
34 |
|
final Logger LOG = Logger.getLogger(ServiceCommonCopyTest.class); |
35 |
|
@Client(value="org.kuali.student.common_test_tester.support.MyServiceImpl",port="9292",additionalContextFile="classpath:test-my-additional-context.xml") |
36 |
|
public MyService client; |
37 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
38 |
1
|
@Test... |
39 |
|
public void test1() { |
40 |
1
|
LOG.info(System.getProperty("ks.test.daoImplClasses")); |
41 |
1
|
assertNotNull(client.saveString("la la la")); |
42 |
|
} |
43 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
1
PASS
|
|
44 |
1
|
@Test... |
45 |
|
public void test2() { |
46 |
1
|
String id = client.saveString("Value Number One"); |
47 |
1
|
assertNotNull(client.findStringId(id)); |
48 |
|
} |
49 |
|
} |