public abstract class Tests02Dir extends Tests01NoContent
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Stephan Pfab BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **** END LICENSE BLOCK ****
| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
CONTENT |
protected static byte[] |
CONTENT_BIG |
protected static byte[] |
CONTENT_OTHER |
protected static byte[] |
CONTENT50 |
nameannotated, description, FS, testMethodName| Constructor and Description |
|---|
Tests02Dir(FSDescription capa) |
absAB, absABC, absD, defaultRoot, nameA, nameB, nameC, nameD, nameE, pathDefault, relA, relAB, relABC, relB, relBC, relC, relD, testAbsolutePathDoesNotStartsWithARelativePath, testAbsolutePathDoesStartsWithAnAbsolutePath, testAbsolutePathDoesStartsWithRoot, testCompareToDifferentProviderThrows, testCompareToLongetPathIsNegative, testCompareToOfEqualPathsIs0, testCompareToShortPathIsPositive, testDefaultHasANameAndItsItself, testDefaultHasNameCount1, testDefaultIsRelative, testdefaultRootIsIdempotent, testEndsWithSimple, testEndsWithStringSimple, testFileNameHasNameCountOf1, testFileNameIsLastName, testFileNameIsRelative, testFileNameStringIsPathPartString, testGetFileNameIsIdempotent, testGetNameCountSimple, testGetNameIsIdempontent, testGetNameOfDefaultPathIsItself, testGetNameSimple, testGetNameWithNegativeIndex, testGetNameWithTooLargeIndex, testGetParent, testGetParentIsInverseOfResolve, testgetParentOfAbsoluteIsAbsolute, testGetParentOfDefaultIsNull, testGetParentOfLongerRelativeNameIsNotNull, testGetParentOfNameIsNull, testGetParentOfRelativeIsRelative, testGetParentOfRootIsNull, testGetPathIgnoresEmptyStringAsFirstParameter, testGetPathIgnoresEmptyStringInAnyParameter, testGetPathNotStartingWithRootStringIsRelative, testGetPathWithSeveralNamesIsSameAsWithOneStringWithSeparators, testNameCountOfNameIs1, testNameDoesNotIncludeSeparator, testNonExistingAbsolutePathIsNotAFile, testNonExistingRelativePathIsNotAFile, testNoNonEmptyPathStartsWithDefault, testNormalize1Dot, testNormalize2Dots, testNormalizeIsIdempotent, testNormalizeRelativePath, testNormalizeRelativePathEmptyHm, testNormalizeWildAbsPaths, testNormalizeWildRelPaths, testNormlizeParentOfRoot, testNullPath, testpathAllowsMixedArguments, testpathAndToStringAreOpposites, testPathIsImmutableToNormalize, testPathIsImmutableToToAbsolute, testPathIterator, testPathMatcherKnowsGlob, testPathMatcherKnowsRegex, testPathMatcherThrowsOnUnknownSyntax, testPathMatherGlob, testPathMatherRegex, testPathsWithSamePathElementsButDifferentProviderAreDifferent, testPathWith2NamesHasSeparatorInToString, testRelativePathToStringDoesNotStartWithSeparator, testRelativize, testRelativizeAbsolute, testRelativizeAbsToRel, testRelativizeFromDefaultAbsoluteIsInverseOfToAbsoluteNormalize, testRelativizePathWithOtherRootFails, testRelativizeRelToAbs, testResolveIterative, testResolveNull, testResolveOfAbsoluteIsAbsolute, testResolveOfARelativePathIsRelative, testResolveOfNameStrEndsWithThatName, testResolveSiblingIsGetParentResolve, testResolveSiblingOnDefaultReturnsArg, testResolveSiblingOnNameReturnsArg, testResolveSiblingOnRootReturnsArg, testResolveSiblingWithAbsoluteArgIsThatArg, testResolveSiblingWorksWithStringAndPath, testResolveWithAbsoluteArgReturnArg, testResolveWithDefaultIsNop, testResolveWithNameIsSameAsStr, testResolveWithStringWithSeparatorsSameAsWithPath, testResolveWorksLikeGetPathOnStringsWithSeparator, testResultOfGetNameIsRelative, testRootHasNoFileName, testRootHasNoName, testRootIsOneOfTheRoots, testRootNameCountIs0, testRootOfAbsolutePathIsAbsolute, testRootOfRelativeIsNull, testSeparatorIsNoFileName, testStartsWithSimple, testStartsWithStringSimple, testSubPathEndBeforeStart, testSubPathEndTooLarge, testSubPathIsRelative, testSubPathNegativeStart, testSubPathSimple, testSubPathStartTooLarge, testToAbsoluteIsIdempotent, testToAbsoluteProducesAnAbsolutePath, testToFileOnNonDefaultFSThrows, testUnnormalizedBasedOnFilegetCommon, setupprotected static byte[] CONTENT
protected static byte[] CONTENT_OTHER
protected static byte[] CONTENT_BIG
protected static byte[] CONTENT50
public Tests02Dir(FSDescription capa)
public void testContentOfNonEmptyDir()
throws IOException
IOExceptionpublic void testIteratorCanOnlyBeCalledOnceOnDirStream()
throws IOException
IOExceptionpublic void testDirStreamIteratorHasNoRemove()
throws IOException
IOExceptionpublic void testContentOfNonEmptyDirFiltered()
throws IOException
IOExceptionpublic void testNewDirIsInParentsDirStream()
throws IOException
IOExceptionpublic void testNewDirectoryExists()
throws IOException
IOExceptionpublic void testNewRelDirectoryExists()
throws IOException
IOExceptionpublic void testCreateDirectoryTwiceThrows()
throws IOException
IOExceptionpublic void testCreateDirectoryWithoutExistingParentFails()
throws IOException
IOExceptionpublic void testCreateDirectoryWithInFileFails()
throws IOException
IOExceptionpublic void testRootisADir()
throws IOException
IOExceptionpublic void testNonExistingAbsolutePathIsNotADirectory()
throws IOException
IOExceptionpublic void testNonExistingAbsolutePathIsNotADirectoryEvenIfParent()
throws IOException
IOExceptionpublic void testNonExistingRelativePathIsNotADirectory()
throws IOException
IOExceptionpublic void testCreateDirWithSamePathAsExistingFileFails()
throws Exception
Exceptionpublic void testCreateDirSetsModifiedTimeOfParent()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testCreateDirSetsLastAccessTimeOfParent()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testCreateDirSetsCreationTime()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testKidsOfAbsoluteDirAreAbsolute()
throws Exception
Exceptionpublic void testKidsOfRelativeDirAreRelative()
throws Exception
Exceptionpublic void testKidsOfRelDirAreLikeTheResultOfResolve()
throws Exception
Exceptionpublic void testReadDirStreamSetsLastAccessTime()
throws Exception
Exceptionpublic void testReadEmptyDirStreamSetsLastAccessTime()
throws Exception
Exceptionpublic void testReadDirStreamDoesNotSetParentsLastAccessTime()
throws Exception
Exceptionpublic void testCloseDirStreamInTheMiddleOfIteration()
throws Exception
Exceptionpublic void testReadBytesFromDirectoryThrows()
throws IOException
IOExceptionpublic void testNewDirectoryStreamFromNonExistingDirThrows()
throws IOException
IOExceptionpublic static void beforeDir()
public Path absT()
public Path absTA()
public Path absTB()
public Path absTC()
public Path relTA()
public Path absTAB()
public Path absTAC()
public Path dirTA()
public Path dirTAB()
public Path dirTBB()
public Path dirTB()
public Path fileTA()
public Path fileTB()
public Path fileTAB()
public Path fileTAC()
public Path fileTAD()
public void waitForAttribute()
public Path getNonEmptyDir()
public Path getEmptyDir()
public Path getNonExistingPath()
Copyright © 2015. All rights reserved.