public abstract class Tests03File extends Tests02Dir
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 OpenOption[] |
standardOpen |
CONTENT, CONTENT_BIG, CONTENT_OTHER, CONTENT50nameannotated, description, FS, testMethodName| Constructor and Description |
|---|
Tests03File(FSDescription capa) |
absT, absTA, absTAB, absTAC, absTB, absTC, beforeDir, dirTA, dirTAB, dirTB, dirTBB, fileTA, fileTAB, fileTAC, fileTAD, fileTB, getEmptyDir, getNonEmptyDir, getNonExistingPath, relativize, relTA, testCloseDirStreamInTheMiddleOfIteration, testContentOfNonEmptyDir, testContentOfNonEmptyDirFiltered, testCreateDirectoryTwiceThrows, testCreateDirectoryWithInFileFails, testCreateDirectoryWithoutExistingParentFails, testCreateDirSetsCreationTime, testCreateDirSetsLastAccessTimeOfParent, testCreateDirSetsModifiedTimeOfParent, testCreateDirWithSamePathAsExistingFileFails, testDefaultExists, testDefaultIsDir, testDirStreamIteratorHasNoRemove, testIteratorCanOnlyBeCalledOnceOnDirStream, testKidsOfAbsoluteDirAreAbsolute, testKidsOfRelativeDirAreRelative, testKidsOfRelDirAreLikeTheResultOfResolve, testNewDirectoryExists, testNewDirectoryStreamFromNonExistingDirThrows, testNewDirIsInParentsDirStream, testNewRelDirectoryExists, testNonExistingAbsolutePathIsNotADirectory, testNonExistingAbsolutePathIsNotADirectoryEvenIfParent, testNonExistingRelativePathIsNotADirectory, testReadBytesFromDirectoryThrows, testReadDirStreamDoesNotSetParentsLastAccessTime, testReadDirStreamSetsLastAccessTime, testReadEmptyDirStreamSetsLastAccessTime, testRootisADir, waitForAttributeabsAB, 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 OpenOption[] standardOpen
public Tests03File(FSDescription capa)
public void testReadCreateNonExistingFileThrows()
throws IOException
IOExceptionpublic void testWriteFileWithoutExistingParentThrows()
throws IOException
IOExceptionpublic void testWriteWithoutOptionsCreatesTheFile()
throws IOException
IOExceptionpublic void testChannelSetNegativePositionThrows()
throws IOException
IOExceptionpublic void testChannelGetSize()
throws IOException
IOExceptionpublic void testWriteWithoutOptionsOverwritesExisting()
throws IOException
IOExceptionpublic void testRWBytes()
throws IOException
IOExceptionpublic void testNewFileIsInDirStream()
throws IOException
IOExceptionpublic void testRWBytes20k()
throws IOException
IOExceptionpublic void testReadSmallChunks()
throws IOException
IOExceptionpublic void testWriteSmallChunks()
public void testClosedChannelIsClosed()
throws IOException
IOExceptionpublic void testReadFromClosedChannelThrows()
throws IOException
IOExceptionpublic void testWriteToClosedChannelThrows()
throws IOException
IOExceptionpublic void testWriteFileAndSize()
throws IOException
IOExceptionpublic void testFileAttributesAreImmutable()
throws IOException
IOExceptionpublic void testWriteNonExistent()
throws IOException
IOExceptionpublic void testWriteNothingOverExistingFileDoesNotChangeIt()
throws IOException
IOExceptionpublic void testWriteAndCreateNonExistentCreatesIt()
throws IOException
IOExceptionpublic void testWriteAndCreateExistent()
throws IOException
IOExceptionpublic void testAppend()
throws IOException
IOExceptionpublic void testAppendAndReadThrows()
throws IOException
IOExceptionpublic void testAppendAndTruncateExistingThrows()
throws IOException
IOExceptionpublic void testAppendDoesNotCreateNewFile()
throws IOException
IOExceptionpublic void testWriteAndCreateNewNonExistent()
throws IOException
IOExceptionpublic void testWriteOnlyNew()
throws IOException
IOExceptionpublic void testWriteOnlyNewIfCreateIsThereToo()
throws IOException
IOExceptionpublic void testOverwriteTruncateExisting()
throws IOException
IOExceptionpublic void testOverwriteTruncateExistingDoesNotChangeCreationTime()
throws IOException
IOExceptionpublic void testOverwriteSetLastAccessTime()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testOverwriteDoesNotSetLastAccessTimeOfParent()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testCreateFileSetsModifiedTimeOfParent()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testCreateFileSetsLastAccessTime()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testCreateFileSetsLastAccessTimeOfParent()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testCreateFileSetModifiedTime()
throws Exception
Exceptionpublic void testModifiedDateIsCloseToCurrentTime()
throws Exception
Exceptionpublic void testReadFileSetsLastAccessTime()
throws Exception
Exceptionpublic void testReadFileDoesNotSetParentsLastAccessTime()
throws Exception
Exceptionpublic void testReadFromExhausted()
throws IOException
IOExceptionpublic void testChannelSetPositionSetsPosition()
throws IOException
IOExceptionpublic void testRandomWrite()
throws IOException
IOExceptionpublic void testWriteBeyondFileSize()
throws IOException
IOExceptionpublic void testRandomRead()
throws IOException
IOExceptionpublic void testRandomReadPosition()
throws IOException
IOExceptionpublic void testReadAndWrite()
throws IOException
IOExceptionpublic void testReadFromWriteOnlyChannelThrows()
throws IOException
IOExceptionpublic void testWriteToReadOnlyChannelThrows()
throws IOException
IOExceptionpublic void testTruncateOnReadChannelThrows()
throws Exception
Exceptionpublic void testTruncateOnClosedChannelThrows()
throws Exception
Exceptionpublic void testTruncateToNegativeSizeThrows()
throws Exception
Exceptionpublic void testWriteChannelOfDir()
throws IOException
IOExceptionpublic void testReadChannelOfDirThrows()
throws IOException
IOExceptionpublic void testReadChannelOfDirDoesNotThrow()
throws IOException
IOExceptionpublic void testEveryChannelWriteUpdatesLastModifiedTime()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testEveryChannelReadUpdatesLastAccessTime()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testCreateFileInFileThrows()
throws IOException
IOExceptionpublic void testTruncateOnAppendChannelThrows()
throws Exception
Exceptionpublic Path getFile()
Copyright © 2015. All rights reserved.