cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject git commit: [CXF-5687] Remove printed stack trace and replace with proper assert
Date Mon, 14 Apr 2014 19:54:37 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 048a77ad8 -> 76fc9eb40


[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/76fc9eb4
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/76fc9eb4
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/76fc9eb4

Branch: refs/heads/master
Commit: 76fc9eb408f0547fde2703fac57997f265d95a10
Parents: 048a77a
Author: Daniel Kulp <dkulp@apache.org>
Authored: Mon Apr 14 15:52:47 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Mon Apr 14 15:54:23 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/76fc9eb4/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