CLOUDSTACK-8656: exception is the rule for some tests

This commit is contained in:
Daan Hoogland 2015-08-14 13:07:48 +02:00
parent c0534756d0
commit f203acc074

View File

@ -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);
}
}