Code example for FileFilter

Methods: accept

0
    } 
     
    @Test 
    public void testFilter() throws Exception { 
    	File f1 = new File("myTest-beans.xml");
    	assertTrue(fileFilter.accept(f1));
    	 
    	File f2 = new File("myTest-beans.xml~");
    	assertFalse(fileFilter.accept(f2));
    	 
    	File f3 = new File("mgcp-conf.xml");
    	assertTrue(fileFilter.accept(f3));
    	 
    } 
     
    @After 
    public void tearDown() { 
    } 
 
}