cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [4/8] git commit: [CXF-5687] Remove printed stack trace and replace with proper assert
Date Tue, 15 Apr 2014 20:33:49 GMT
[CXF-5687] Remove printed stack trace and replace with proper assert


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/49de4705
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/49de4705
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/49de4705

Branch: refs/heads/2.7.x-fixes
Commit: 49de47052808ac9db1a935f790bd1b0041b8b7b8
Parents: 3c19a8a
Author: Daniel Kulp <dkulp@apache.org>
Authored: Mon Apr 14 15:52:47 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Tue Apr 15 16:00:13 2014 -0400

----------------------------------------------------------------------
 .../cxf/systest/schema_validation/ValidationClientServerTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/49de4705/systests/uncategorized/src/test/java/org/apache/cxf/systest/schema_validation/ValidationClientServerTest.java
----------------------------------------------------------------------
diff --git a/systests/uncategorized/src/test/java/org/apache/cxf/systest/schema_validation/ValidationClientServerTest.java
b/systests/uncategorized/src/test/java/org/apache/cxf/systest/schema_validation/ValidationClientServerTest.java
index 4ebf76c..b04eda2 100644
--- a/systests/uncategorized/src/test/java/org/apache/cxf/systest/schema_validation/ValidationClientServerTest.java
+++ b/systests/uncategorized/src/test/java/org/apache/cxf/systest/schema_validation/ValidationClientServerTest.java
@@ -149,7 +149,8 @@ public class ValidationClientServerTest extends AbstractBusClientServerTestBase
         } catch (DoSomethingFault e) {
             fail("Should not have happened");
         } catch (WebServiceException e) {
-            e.printStackTrace();
+            String expected = "Value '1' is not facet-valid";
+            assertTrue(e.getMessage().indexOf(expected) != -1);
         }
     }
 


Mime
View raw message