Clover Coverage Report - rice-shareddata-test 2.0.0-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
11   63   6   1.83
0   46   0.55   6
6     1  
1    
 
  CampusServiceRemoteTest       Line # 13 11 0% 6 17 0% 0.0
 
No Tests
 
1    package org.kuali.rice.shareddata.impl;
2   
3    import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
4    import org.junit.After;
5    import org.junit.Before;
6    import org.junit.Test;
7    import org.kuali.rice.shareddata.api.campus.CampusService;
8    import org.kuali.rice.shareddata.impl.campus.CampusServiceImplTest;
9   
10    import javax.xml.ws.Endpoint;
11    import javax.xml.ws.soap.SOAPFaultException;
12   
 
13    public class CampusServiceRemoteTest extends CampusServiceImplTest {
14   
15    Endpoint endpoint;
16   
 
17  0 toggle @Before
18    @Override
19    public void setupServiceUnderTest() {
20  0 super.setupServiceUnderTest();
21   
22  0 JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
23  0 factory.setServiceClass(CampusService.class);
24  0 factory.setAddress(ServiceEndpointLocation.ENDPOINT_URL);
25  0 this.setCampusService((CampusService) factory.create());
26   
27    //Note: Endpoint.publish only starts up an internal (jetty) server the first time it is invoked.
28  0 endpoint = Endpoint.publish(ServiceEndpointLocation.ENDPOINT_URL, this.getCampusServiceImpl());
29    }
30   
 
31  0 toggle @After
32    public void unPublishEndpoint() {
33  0 endpoint.stop();
34    }
35   
36    /*
37    * All tests methods overridden are done so to expect SoapFaultException instead of a specific exception
38    */
39   
 
40  0 toggle @Override
41    @Test(expected = SOAPFaultException.class)
42    public void testGetCampusEmptyCode() {
43  0 super.testGetCampusEmptyCode();
44    }
45   
 
46  0 toggle @Override
47    @Test(expected = SOAPFaultException.class)
48    public void testGetCampusNullCode() {
49  0 super.testGetCampusNullCode();
50    }
51   
 
52  0 toggle @Override
53    @Test(expected = SOAPFaultException.class)
54    public void testGetCampusTypeEmptyCode() {
55  0 super.testGetCampusTypeEmptyCode();
56    }
57   
 
58  0 toggle @Override
59    @Test(expected = SOAPFaultException.class)
60    public void testGetCampusTypeNullCode() {
61  0 super.testGetCampusTypeNullCode();
62    }
63    }