mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	CLOUDSTACK-8656: exception is the rule for some tests
This commit is contained in:
		
							parent
							
								
									c0534756d0
								
							
						
					
					
						commit
						f203acc074
					
				@ -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);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user