public class FileFilterTestCase extends FileBasedTestCase
| Constructor and Description |
|---|
FileFilterTestCase(String name) |
assertEqualContent, assertEqualContent, checkFile, checkWrite, checkWrite, createFile, createLineBasedFile, deleteFile, generateTestData, generateTestData, getTestDirectory, newFileassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic FileFilterTestCase(String name)
public void setUp()
setUp in class junit.framework.TestCasepublic void tearDown() throws Exception
tearDown in class junit.framework.TestCaseExceptionpublic void assertFiltering(IOFileFilter filter, File file, boolean expected) throws Exception
Exceptionpublic void testSuffix() throws Exception
Exceptionpublic void testSuffixCaseInsensitive() throws Exception
Exceptionpublic void testDirectory() throws Exception
Exceptionpublic void testPrefix() throws Exception
Exceptionpublic void testPrefixCaseInsensitive() throws Exception
Exceptionpublic void testNameFilter() throws Exception
Exceptionpublic void testNameFilterNullArgument() throws Exception
Exceptionpublic void testNameFilterNullArrayArgument() throws Exception
Exceptionpublic void testNameFilterNullListArgument() throws Exception
Exceptionpublic void testFileFilterUtils_and() throws Exception
Exceptionpublic void testFileFilterUtils_or() throws Exception
Exceptionpublic void testDeprecatedWildcard() throws Exception
Exceptionpublic void testWildcard() throws Exception
Exceptionpublic void testDelegateFileFilter() throws Exception
Exceptionpublic void testMakeCVSAware() throws Exception
Exceptionpublic void testMakeSVNAware() throws Exception
Exceptionpublic void testAgeFilter() throws Exception
Exceptionpublic void testSizeFilter() throws Exception
Exceptionpublic void testHidden() throws Exception
Exceptionpublic void testCanRead() throws Exception
Exceptionpublic void testCanWrite() throws Exception
Exceptionpublic void testMakeDirectoryOnly() throws Exception
Exceptionpublic void testMakeFileOnly() throws Exception
Exceptionpublic void testMagicNumberFileFilterBytes() throws Exception
Exceptionpublic void testMagicNumberFileFilterBytesOffset() throws Exception
Exceptionpublic void testMagicNumberFileFilterString() throws Exception
Exceptionpublic void testMagicNumberFileFilterStringOffset() throws Exception
Exceptionpublic void testMagicNumberFileFilterValidation()
public void testFilterArray() throws Exception
FileFilterUtils.filter(IOFileFilter, File...)
that tests that the method properly filters files from the list.Exceptionpublic void testFilterArray_fromList() throws Exception
FileFilterUtils.filter(IOFileFilter, java.lang.Iterable)
that tests that the method properly filters files from the list.Exceptionpublic void testFilterArrayNullParameters() throws Exception
FileFilterUtils.filter(IOFileFilter, File...)
that tests null parameters and null elements
in the provided list.Exceptionpublic void testFilterList() throws Exception
FileFilterUtils.filterList(IOFileFilter, java.lang.Iterable)
that tests that the method properly filters files from the list.Exceptionpublic void testFilterList_fromArray() throws Exception
FileFilterUtils.filterList(IOFileFilter, File...)
that tests that the method properly filters files from the list.Exceptionpublic void testFilterListNullParameters()
FileFilterUtils.filterList(IOFileFilter, java.lang.Iterable)
that tests null parameters and null elements
in the provided list.public void testFilterSet() throws Exception
FileFilterUtils.filterSet(IOFileFilter, java.lang.Iterable)
that tests that the method properly filters files from the set.Exceptionpublic void testFilterSet_fromArray() throws Exception
FileFilterUtils.filterSet(IOFileFilter, File...)
that tests that the method properly filters files from the set.Exceptionpublic void testFilterSetNullParameters()
FileFilterUtils.filterSet(IOFileFilter, java.lang.Iterable)
that tests null parameters and null elements
in the provided set.public void testEnsureTestCoverage()
public void testNullFilters()
public void testDelegation()
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.