Skip to content

Commit c2ec1d0

Browse files
author
Niall Pemberton
committed
Remove tabs
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@658831 13f79535-47bb-0310-9956-ffa450edef68
1 parent 409139c commit c2ec1d0

2 files changed

Lines changed: 55 additions & 55 deletions

File tree

src/test/org/apache/commons/io/filefilter/FileFilterTestCase.java

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -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

src/test/org/apache/commons/io/input/ClassLoaderObjectInputStreamTest.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,25 @@ public ClassLoaderObjectInputStreamTest(String name) {
3434
super(name);
3535
}
3636

37-
/* Note: This test case tests the simplest functionality of
38-
* ObjectInputStream. IF we really wanted to test ClassLoaderObjectInputStream
39-
* we would probably need to create a transient Class Loader. -TO
40-
*/
37+
/* Note: This test case tests the simplest functionality of
38+
* ObjectInputStream. IF we really wanted to test ClassLoaderObjectInputStream
39+
* we would probably need to create a transient Class Loader. -TO
40+
*/
4141

4242

4343
public void testExpected() throws Exception {
4444

45-
ByteArrayOutputStream baos = new ByteArrayOutputStream();
46-
ObjectOutputStream oos = new ObjectOutputStream(baos);
47-
48-
oos.writeObject( Boolean.FALSE );
49-
50-
InputStream bais = new ByteArrayInputStream(baos.toByteArray());
51-
ClassLoaderObjectInputStream clois =
52-
new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais);
53-
Boolean result = (Boolean) clois.readObject();
54-
55-
assertTrue( !result.booleanValue() );
45+
ByteArrayOutputStream baos = new ByteArrayOutputStream();
46+
ObjectOutputStream oos = new ObjectOutputStream(baos);
47+
48+
oos.writeObject( Boolean.FALSE );
49+
50+
InputStream bais = new ByteArrayInputStream(baos.toByteArray());
51+
ClassLoaderObjectInputStream clois =
52+
new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais);
53+
Boolean result = (Boolean) clois.readObject();
54+
55+
assertTrue( !result.booleanValue() );
5656
}
5757

5858
}

0 commit comments

Comments
 (0)