CLOUDSTACK-8656: exception is the rule for some tests

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

Branch: refs/heads/master
Commit: f203acc07473296ca6feddae38bfdd6f202774e1
Parents: c053475
Author: Daan Hoogland <[email protected]>
Authored: Fri Aug 14 13:07:48 2015 +0200
Committer: Daan Hoogland <[email protected]>
Committed: Fri Aug 14 13:07:48 2015 +0200

----------------------------------------------------------------------
 utils/test/com/cloud/utils/exception/ExceptionUtilTest.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f203acc0/utils/test/com/cloud/utils/exception/ExceptionUtilTest.java
----------------------------------------------------------------------
diff --git a/utils/test/com/cloud/utils/exception/ExceptionUtilTest.java 
b/utils/test/com/cloud/utils/exception/ExceptionUtilTest.java
index e2cb01f..9e1948e 100644
--- a/utils/test/com/cloud/utils/exception/ExceptionUtilTest.java
+++ b/utils/test/com/cloud/utils/exception/ExceptionUtilTest.java
@@ -19,6 +19,7 @@
 
 package com.cloud.utils.exception;
 
+import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
 import java.io.FileNotFoundException;
@@ -35,6 +36,7 @@ public class ExceptionUtilTest {
             ExceptionUtil.rethrow(fnfe, IOException.class);
             fail();
         } catch (IOException e) {
+            assertTrue("we won !?!", true);
         }
 
         ExceptionUtil.rethrow(fnfe, ClassNotFoundException.class);
@@ -43,6 +45,7 @@ public class ExceptionUtilTest {
             ExceptionUtil.rethrow(fnfe, FileNotFoundException.class);
             fail();
         } catch (FileNotFoundException e) {
+            assertTrue("we won !?!", true);
         }
     }
 

Reply via email to