1 26 27 package net.sourceforge.groboutils.util.io.v1; 28 29 import java.io.File ; 30 31 import junit.framework.Test; 32 import junit.framework.TestCase; 33 import junit.framework.TestSuite; 34 35 36 43 public class AllFileFilterJDK12UTest extends TestCase 44 { 45 private static final Class THIS_CLASS = AllFileFilterJDK12UTest.class; 48 49 public AllFileFilterJDK12UTest( String name ) 50 { 51 super( name ); 52 } 53 54 55 58 public void testInstantiate() 59 { 60 new AllFileFilter(); 61 } 62 63 64 public void testNullAccept() 65 { 66 AllFileFilter aff = new AllFileFilter(); 67 68 assertTrue( 69 "must always return null.", 70 aff.accept( null ) ); 71 assertTrue( 72 "must always return null.", 73 aff.accept( null, null ) ); 74 } 75 76 77 80 public static Test suite() 81 { 82 TestSuite suite = new TestSuite( THIS_CLASS ); 83 84 return suite; 85 } 86 87 public static void main( String [] args ) 88 { 89 String [] name = { THIS_CLASS.getName() }; 90 91 94 junit.textui.TestRunner.main( name ); 95 } 96 97 protected void setUp() throws Exception 98 { 99 super.setUp(); 100 101 } 103 104 105 protected void tearDown() throws Exception 106 { 107 109 110 super.tearDown(); 111 } 112 113 } 114 | Popular Tags |