Author: ropalka
Date: 2012-02-28 03:00:36 -0500 (Tue, 28 Feb 2012)
New Revision: 15764
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.java
Log:
rewrite test to prevent hudson freeze
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.java 2012-02-28
05:23:39 UTC (rev 15763)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.java 2012-02-28
08:00:36 UTC (rev 15764)
@@ -79,8 +79,13 @@
final String appclientArg = "Hello World!";
final OutputStream appclientOS = new ByteArrayOutputStream();
final Process appclientProcess =
JBossWSTestHelper.deployAppclient("jaxws-samples-webserviceref-appclient.ear#jaxws-samples-webserviceref-appclient.jar",
appclientOS, appclientArg);
- appclientProcess.waitFor();
- final String appclientLog = appclientOS.toString();
+ // wait till appclient stops
+ String appclientLog = appclientOS.toString();
+ while (!appclientLog.contains("stopped in")) {
+ Thread.sleep(100);
+ appclientLog = appclientOS.toString();
+ }
+ // assert appclient logs
assertTrue(!appclientLog.contains("Invalid echo return"));
assertTrue(appclientLog.contains("TEST START"));
assertTrue(appclientLog.contains("TEST END"));
Show replies by date