Clover Coverage Report - Kuali Student 1.2-M2-SNAPSHOT (Aggregated)
Coverage timestamp: Fri Apr 22 2011 04:03:20 EST
4   49   2   2
0   29   0.5   2
2     1  
1    
 
  ServiceCommonCopyTest       Line # 33 4 0% 2 0 100% 1.0
 
  (2)
 
1    /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10    * software distributed under the License is distributed on an "AS IS"
11    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12    * or implied. See the License for the specific language governing
13    * permissions and limitations under the License.
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")
 
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   
 
38  1 toggle @Test
39    public void test1() {
40  1 LOG.info(System.getProperty("ks.test.daoImplClasses"));
41  1 assertNotNull(client.saveString("la la la"));
42    }
43   
 
44  1 toggle @Test
45    public void test2() {
46  1 String id = client.saveString("Value Number One");
47  1 assertNotNull(client.findStringId(id));
48    }
49    }