Code example for FileNotFoundException

0
        assertEquals(type3, result);
 
        result = strategy.getExceptionPolicy(policies, null, new SocketException(""));
        assertEquals(type3, result);
 
        result = strategy.getExceptionPolicy(policies, null, new FileNotFoundException());
        assertEquals(type3, result);
    } 
 
    public void testClosetMatch2() { 
        setupPolicies(); 
        OnExceptionDefinition result = strategy.getExceptionPolicy(policies, null, new ClassCastException(""));
        assertEquals(type2, result);
 
        result = strategy.getExceptionPolicy(policies, null, new NumberFormatException(""));
        assertEquals(type2, result);
 
        result = strategy.getExceptionPolicy(policies, null, new NullPointerException());
        assertEquals(type2, result);
    } 
Connect your IDE to all the code out there  Get Codota for Java