@@ -91,8 +91,8 @@ public void testSuffix() throws Exception {
9191 assertFiltering (filter , new File ("fred.exe" ), false );
9292
9393 filter = FileFilterUtils .orFileFilter (
94- FileFilterUtils .suffixFileFilter ( "tes" ),
95- FileFilterUtils .suffixFileFilter ( "est" ) );
94+ FileFilterUtils .suffixFileFilter ( "tes" ),
95+ FileFilterUtils .suffixFileFilter ( "est" ) );
9696 assertFiltering (filter , new File ("fred" ), false );
9797 assertFiltering (filter , new File (".tes" ), true );
9898 assertFiltering (filter , new File ("fred.test" ), true );
@@ -339,30 +339,30 @@ public void testNameFilter() throws Exception {
339339 }
340340
341341 public void testNameFilterNullArgument () throws Exception {
342- String test = null ;
343- try {
344- new NameFileFilter (test );
345- fail ( "constructing a NameFileFilter with a null String argument should fail." );
346- } catch ( IllegalArgumentException iae ) {
347- }
342+ String test = null ;
343+ try {
344+ new NameFileFilter (test );
345+ fail ( "constructing a NameFileFilter with a null String argument should fail." );
346+ } catch ( IllegalArgumentException iae ) {
347+ }
348348 }
349349
350350 public void testNameFilterNullArrayArgument () throws Exception {
351- String [] test = null ;
352- try {
353- new NameFileFilter (test );
354- fail ( "constructing a NameFileFilter with a null String[] argument should fail." );
355- } catch ( IllegalArgumentException iae ) {
356- }
351+ String [] test = null ;
352+ try {
353+ new NameFileFilter (test );
354+ fail ( "constructing a NameFileFilter with a null String[] argument should fail." );
355+ } catch ( IllegalArgumentException iae ) {
356+ }
357357 }
358358
359359 public void testNameFilterNullListArgument () throws Exception {
360- List test = null ;
361- try {
362- new NameFileFilter (test );
363- fail ( "constructing a NameFileFilter with a null List argument should fail." );
364- } catch ( IllegalArgumentException iae ) {
365- }
360+ List test = null ;
361+ try {
362+ new NameFileFilter (test );
363+ fail ( "constructing a NameFileFilter with a null List argument should fail." );
364+ } catch ( IllegalArgumentException iae ) {
365+ }
366366 }
367367
368368 public void testTrue () throws Exception {
@@ -588,26 +588,26 @@ public void testWildcard() throws Exception {
588588 }
589589
590590 public void testDelegateFileFilter () throws Exception {
591- OrFileFilter orFilter = new OrFileFilter ();
592- File testFile = new File ( "test.txt" );
593-
594- IOFileFilter filter = new DelegateFileFilter ((FileFilter ) orFilter );
595- assertFiltering ( filter , testFile , false );
596-
597- filter = new DelegateFileFilter ((FilenameFilter ) orFilter );
598- assertFiltering ( filter , testFile , false );
599-
600- try {
601- new DelegateFileFilter ((FileFilter ) null );
602- fail ();
603- } catch ( IllegalArgumentException iae ) {
604- }
605-
606- try {
607- new DelegateFileFilter ((FilenameFilter ) null );
608- fail ();
609- } catch ( IllegalArgumentException iae ) {
610- }
591+ OrFileFilter orFilter = new OrFileFilter ();
592+ File testFile = new File ( "test.txt" );
593+
594+ IOFileFilter filter = new DelegateFileFilter ((FileFilter ) orFilter );
595+ assertFiltering ( filter , testFile , false );
596+
597+ filter = new DelegateFileFilter ((FilenameFilter ) orFilter );
598+ assertFiltering ( filter , testFile , false );
599+
600+ try {
601+ new DelegateFileFilter ((FileFilter ) null );
602+ fail ();
603+ } catch ( IllegalArgumentException iae ) {
604+ }
605+
606+ try {
607+ new DelegateFileFilter ((FilenameFilter ) null );
608+ fail ();
609+ } catch ( IllegalArgumentException iae ) {
610+ }
611611
612612 }
613613
0 commit comments