File tree Expand file tree Collapse file tree
src/test/java/com/baeldung/cxf/introduction
src/test/java/com/baeldung/cxf/jaxrs/implementation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 <version >${cxf.version} </version >
4646 </dependency >
4747 </dependencies >
48-
49- <profiles >
50- <profile >
51- <id >live</id >
52- <build >
53- <plugins >
54- <plugin >
55- <groupId >org.codehaus.cargo</groupId >
56- <artifactId >cargo-maven2-plugin</artifactId >
57- <version >1.4.19</version >
58- <configuration >
59- <container >
60- <containerId >tomcat8x</containerId >
61- <type >embedded</type >
62- </container >
63- <configuration >
64- <properties >
65- <cargo .hostname>localhost</cargo .hostname>
66- <cargo .servlet.port>8082</cargo .servlet.port>
67- </properties >
68- </configuration >
69- </configuration >
70- <executions >
71- <execution >
72- <id >start-server</id >
73- <phase >pre-integration-test</phase >
74- <goals >
75- <goal >start</goal >
76- </goals >
77- </execution >
78- <execution >
79- <id >stop-server</id >
80- <phase >post-integration-test</phase >
81- <goals >
82- <goal >stop</goal >
83- </goals >
84- </execution >
85- </executions >
86- </plugin >
87-
88- <plugin >
89- <artifactId >maven-surefire-plugin</artifactId >
90- <version >${surefire.version} </version >
91- <executions >
92- <execution >
93- <phase >integration-test</phase >
94- <goals >
95- <goal >test</goal >
96- </goals >
97- <configuration >
98- <excludes >
99- <exclude >none</exclude >
100- </excludes >
101- </configuration >
102- </execution >
103- </executions >
104- </plugin >
105- </plugins >
106- </build >
107- </profile >
108-
109- </profiles >
48+
11049</project >
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public class StudentLiveTest {
2121
2222 {
2323 service = Service .create (SERVICE_NAME );
24- final String endpointAddress = "http://localhost:8082/cxf-introduction /baeldung" ;
24+ final String endpointAddress = "http://localhost:8080 /baeldung" ;
2525 service .addPort (PORT_NAME , SOAPBinding .SOAP11HTTP_BINDING , endpointAddress );
2626 }
2727
Original file line number Diff line number Diff line change 5252 <version >${httpclient.version} </version >
5353 </dependency >
5454 </dependencies >
55-
56- <profiles >
57- <profile >
58- <id >live</id >
59- <build >
60- <plugins >
61- <plugin >
62- <groupId >org.codehaus.cargo</groupId >
63- <artifactId >cargo-maven2-plugin</artifactId >
64- <version >1.4.19</version >
65- <configuration >
66- <container >
67- <containerId >tomcat8x</containerId >
68- <type >embedded</type >
69- </container >
70- <configuration >
71- <properties >
72- <cargo .hostname>localhost</cargo .hostname>
73- <cargo .servlet.port>8082</cargo .servlet.port>
74- </properties >
75- </configuration >
76- </configuration >
77- <executions >
78- <execution >
79- <id >start-server</id >
80- <phase >pre-integration-test</phase >
81- <goals >
82- <goal >start</goal >
83- </goals >
84- </execution >
85- <execution >
86- <id >stop-server</id >
87- <phase >post-integration-test</phase >
88- <goals >
89- <goal >stop</goal >
90- </goals >
91- </execution >
92- </executions >
93- </plugin >
94-
95- <plugin >
96- <artifactId >maven-surefire-plugin</artifactId >
97- <version >${surefire.version} </version >
98- <executions >
99- <execution >
100- <phase >integration-test</phase >
101- <goals >
102- <goal >test</goal >
103- </goals >
104- <configuration >
105- <excludes >
106- <exclude >none</exclude >
107- </excludes >
108- </configuration >
109- </execution >
110- </executions >
111- </plugin >
112- </plugins >
113- </build >
114- </profile >
115-
116- </profiles >
11755</project >
Original file line number Diff line number Diff line change 2121import org .junit .Test ;
2222
2323public class ServiceLiveTest {
24- private static final String BASE_URL = "http://localhost:8082 /baeldung/courses/" ;
24+ private static final String BASE_URL = "http://localhost:8080 /baeldung/courses/" ;
2525 private static CloseableHttpClient client ;
2626
2727 @ BeforeClass
You can’t perform that action at this time.
0 commit comments