Author: dkulp
Date: Mon Sep 21 15:40:30 2009
New Revision: 817294
URL: http://svn.apache.org/viewvc?rev=817294&view=rev
Log:
On some versions of windows (old XP's for instance),
the testPublishOnBusyPort fails as the OS just kind of silently
allows the publish to succeed. We'll just log a
warning to not cause build failures.
Modified:
cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http/ClientServerSessionTest.java
Modified:
cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http/ClientServerSessionTest.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http/ClientServerSessionTest.java?rev=817294&r1=817293&r2=817294&view=diff
==============================================================================
---
cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http/ClientServerSessionTest.java
(original)
+++
cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http/ClientServerSessionTest.java
Mon Sep 21 15:40:30 2009
@@ -139,18 +139,30 @@
@Test
public void testPublishOnBusyPort() {
+ boolean isWindows =
System.getProperty("os.name").startsWith("Windows");
+
GreeterSessionImpl implementor = new GreeterSessionImpl();
String address = "http://localhost:9020/SoapContext/GreeterPort";
try {
Endpoint.publish(address, implementor);
- fail("Should have failed to publish as the port is busy");
+ if (!isWindows) {
+ fail("Should have failed to publish as the port is busy");
+ } else {
+ System.err.println("Should have failed to publish as the port
is busy, but certains "
+ + "of Windows allow this.");
+ }
} catch (WebServiceException ex) {
//ignore
}
try {
//CXF-1589
Endpoint.publish(address, implementor);
- fail("Should have failed to publish as the port is busy");
+ if (!isWindows) {
+ fail("Should have failed to publish as the port is busy");
+ } else {
+ System.err.println("Should have failed to publish as the port
is busy, but certains "
+ + "of Windows allow this.");
+ }
} catch (WebServiceException ex) {
//ignore
}