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 |
|
|
|
|
| 0% |
Uncovered Elements: 17 (17) |
Complexity: 6 |
Complexity Density: 0.55 |
|
13 |
|
public class CampusServiceRemoteTest extends CampusServiceImplTest { |
14 |
|
|
15 |
|
Endpoint endpoint; |
16 |
|
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
17 |
0
|
@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 |
|
|
28 |
0
|
endpoint = Endpoint.publish(ServiceEndpointLocation.ENDPOINT_URL, this.getCampusServiceImpl()); |
29 |
|
} |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
31 |
0
|
@After... |
32 |
|
public void unPublishEndpoint() { |
33 |
0
|
endpoint.stop(); |
34 |
|
} |
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
4
-
|
|
40 |
0
|
@Override... |
41 |
|
@Test(expected = SOAPFaultException.class) |
42 |
|
public void testGetCampusEmptyCode() { |
43 |
0
|
super.testGetCampusEmptyCode(); |
44 |
|
} |
45 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
4
-
|
|
46 |
0
|
@Override... |
47 |
|
@Test(expected = SOAPFaultException.class) |
48 |
|
public void testGetCampusNullCode() { |
49 |
0
|
super.testGetCampusNullCode(); |
50 |
|
} |
51 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
4
-
|
|
52 |
0
|
@Override... |
53 |
|
@Test(expected = SOAPFaultException.class) |
54 |
|
public void testGetCampusTypeEmptyCode() { |
55 |
0
|
super.testGetCampusTypeEmptyCode(); |
56 |
|
} |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
4
-
|
|
58 |
0
|
@Override... |
59 |
|
@Test(expected = SOAPFaultException.class) |
60 |
|
public void testGetCampusTypeNullCode() { |
61 |
0
|
super.testGetCampusTypeNullCode(); |
62 |
|
} |
63 |
|
} |