public abstract class Tests18FileChannels extends Tests17Windows
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 ****
Tests08ThreadSafe.KidsCounterTests06Attributes.SomeFileAttributes, Tests06Attributes.UnsiAttris, Tests06Attributes.UnsiViewWATCH_DELAYGET_FILENAME_LENGTH, GET_PATH_LENGTH, MAX_FILENAME_LENGTH, MAX_PATH_LENGTH, ONE_CHAR_COUNTOTHER_PROVIDER_PLAYGROUNDCLOSEABLE_PLAYGROUNDstandardOpenCONTENT, CONTENT_BIG, CONTENT_OTHER, CONTENT50nameannotated, description, FS, testMethodName| Constructor and Description |
|---|
Tests18FileChannels(FSDescription capa) |
testCaseIgnorantPathHaveSameHashCode, testCaseIgnorantPathsAreEqual, testCaseRemembering, testWindowsBase, testWindowsCaseDrive, testWindowsDifferentRootComponentResolvesToArgument, testWindowsdUNCNoShareName, testWindowsdUNCPlenty, testWindowsFilenameOfPathWithRootComponentHasNoRootComponent, testWindowsGetFileNameHasNoRootComponent, testWindowsImpliedRootComponentResolvesNot, testWindowsIsHidden, testWindowsJustRootComponentIsRelative, testWindowsNoRootComponentGetRootHasNoRootComponent, testWindowsNoRootComponentResolves, testWindowsRelativeWithRootComponent, testWindowsSameRootComponentResolves, testWindowsToAbsoluteWithoutRootComponent, testWindowsUNC1, testWindowsUNCAbsolute, testWindowsUNCAbsolute2, testWindowsUNCNoHostName, testWindowsUNCRoot, testWindowsUNCSlashtestDifferentOwnerCantWrite, testDotFilesAreHidden, testFilenameTooLongBecauseUnicode, testFilesHaveOwners, testFindOwner, testGetPrincipalsLookupServiceDoesNotThrow, testOwnerByTwoMethods, testPosixGetAttributeView, testUnixSeparatorIsSlashfileInLimitedPlayground, sizeLimitedRoot, testCanCreateFileWithinLimits, testFileStoreIterable, testFileStoreLimitPreventsCopy, testFileStoreLimitPreventsFileCreation, testFileStoreLimitPreventsFileModification, testFileStoresHaveAName, testFileStoresHaveAType, testFileStoreShowsThatBasicFileAttributeViewIsSupported, testFileStoreTotalSpaceIsNonNegative, testFileStoreUnallocatedSpaceIsSmallerUsableSpace, testFileStoreUsableSpaceIsSmallerThanTotal, testGetFileStoreOfNonExistent, testPathFileStoreGrowingFileLowersUnallocatedSpace, testPathFileStoreGrowingFileLowersUsableSpacegetWatchService, testCanceledWatchKeyDoesNotWatch, testCloseAWatchServiceCancelsKeys, testCloseAWatchServiceReleasesBlockedTreads, testDeleteWatchedDirCancelsKeys, testMovedWatchedDirCancelsKeys, testNotResetWatchKeyDoesNotQue, testPollAnEmptyWatchServiceReturnsNull, testRegisterOnClosedWatchService, testRegisterWatchServiceOfClosedFS, testResetWatchKeyDoesQue, testWatchACreate, testWatchACreateBy2WatchServies, testWatchACreateDir, testWatchACreateFromCopy, testWatchACreateFromMove, testWatchADelete, testWatchADeleteFromAMove, testWatchADeletePollWithTimeOut, testWatchADeleteTake, testWatchAModify, testWatchATruncate, testWatchForOtherEventCatchesNothing, testWatchInOtherDirCatchesNothing, testWatchKeyPollEventsEmptiesQue, testWatchPollWithTimeoutTimesOut, testWatchReadIsNotModify, testWatchServiceTakeBlocks, testWatchSeveralEventsInOneDir, testWatchTwoModifiesOneKey, waitForWatchService, watchedAbsA, watchedAbsB, watchedDir, watchedFileA, watchServicePollabsTLongFilename, absTLongPath, absTTooLongFilename, absTTooLongPath, longFileName, longFileName, maxFileName, maxPath, maxPath, mixCase, mixCase, testCaseInsensitivePathsPointToSameFile, testCaseInsensitiveWriting, testCasePreserving, testCaseRememberingOverwriteDoesNotOverwriteRememberedName, testCheckAccessNonExistingFile, testCheckAccessRelativePath, testCheckAccessSupportesExecute, testCheckAccessSupportesRead, testCheckAccessSupportesWrite, testCheckAccessUnnormalizedPath, testCopyToUnnormalizedPath, testCopyUnnormalizedPath, testCreateDirectoryUnnormalizedPath, testCreateDirectoryWithRelativePath, testCreateDirOfMaxPathWorks, testCreateDirWithMaxFilenameWorks, testCreateDirWithTooLongPathThrows, testDeleteIfExistsUnnormalizedPath, testDeleteUnnormalizedPath, testGetFileStoreUnnormalizedPath, testIsHiddenUnnormalizedPath, testIsSameFileOfDifferentPathNonExistingFileIsNot, testIsSameFileOfSameContentDifferentPathIsNot, testIsSameFileOnEqualPath, testIsSameFileWithRelativePath, testIsSameFileWithUnnormalizedPath, testMaxFilenameCopyTooLongThrows, testMaxFilenameCopyWorks, testMaxFilenameDirTooLongThrows, testMaxFilenameHardLinkTooLongThrows, testMaxFilenameHardLinkWorks, testMaxFilenameMoveTooLongThrows, testMaxFilenameMoveWorks, testMaxFilenameWriteTooLongThrows, testMaxPathCopyTooLongThrows, testMaxPathCopyWorks, testMaxPathDirTooLongThrows, testMaxPathHardLinkTooLongThrows, testMaxPathHardLinkWorks, testMaxPathMoveTooLongThrows, testMaxPathMoveWorks, testMoveToUnnormalizedPath, testMoveUnnormalizedPath, testNonCasePreserving, testReadAttributesFromUnnormalizedPath, testTooLongFilenameHasNoEffectOnPathConstruction, testTooLongPathHasNoEffectOnPathConstruction, testToRealPathOfNonExistingFileThrows, testToRealPathOfUnnormalizedIsSamePath, testToRealPathOfUnnormalizedResturnsAnNormalizedPath, testToRealPathReturnsAnAbsolutePath, testWriteToMaxFilenameWorks, testWriteToMaxPathWorks, testWriteUnnormalized, tooLongFileName, unnormalizegetOtherProviderPlayground, otherProviderAbsA, otherProviderFileA, testCheckAccessOtherProvider, testCopyOtherProviderFrom, testCopyOtherProviderTo, testCreateDirectoryOtherProvider, testCreateSymLinkOtherProvider, testDeleteIfExistsOtherProvider, testDeleteOtherProvider, testGetBasicFileAttributeViewProvider, testGetFileStoreOtherProvider, testGetPathOtherURI, testHardLinkOfDifferentProvider, testIsHiddenOtherProvider, testIsSameFileOtherProvider, testIsSameFileOtherProvider2, testMoveOtherProviderFrom, testMoveOtherProviderTo, testNewAsynchronousFileChannelOtherProvider, testNewByteChannelOtherProvider, testNewDirectoryStreamOtherProvider, testNewFileChannelOtherProvider, testNewOutputStreamOtherProvider, testReadAttributesOtherProvider, testReadAttributesStringOtherProvider, testReadSymLinkOtherProvider, testResolveWithPathFromOtherProvidergetClosedDirB, getClosedDirStream, getClosedFileA, getClosedFS, getClosedFSProvider, getClosedFSWatchService, getClosedReadChannel, getClosedURI, testAppendFilesInClosedFSThrows, testCantGetClosedFSViaURI, testClosedFSCantRead, testClosedFSCantReadDir, testClosedFSCantUseReadChannelPosition, testClosedFSCantUseReadChannelRead, testClosedFSCantUseReadChannelSize, testClosedFSCheckAccess, testClosedFSCreateDirectoryOtherProvider, testClosedFSCreateHardLink, testClosedFSDelete, testClosedFSGetBasicFileAttributeViewProvider, testClosedFSGetFileStore, testClosedFSisClosed, testClosedFSIsHidden, testClosedFSnewByteChannel, testClosedFSNewFileChannel, testClosedFSNewInputStream, testClosedFSNewOutputStream, testClosedFSReadAttributes, testClosedFSReadAttributesString, testCopyFromClosedFS, testCopyToClosedFS, testMoveToClosedFS, testReadFromDirStreamOfClosedFSThrowstestAllGetAttributeMethodsDeliverSame, testBasicIsASupportedFileAttributeView, testFileKeyIsId, testFileKeyIsKeptInMove, testGetAllBasicAttributes, testGetAllFooAttributes, testGetAttributeFromNonExistingFile, testGetCreationTimeIsRecent, testGetLastModifiedAllMethodsDeliverSame, testGetLastModifiedTimeDoesNotThrow, testGetLastModifiedViaStringOfRelativePath, testGetUnsupportedAttributeThrows, testGetUnsupportedAttributeThrows2, testReadAttributesAskingForUnknownAttributesThrows, testReadAttributesByStringFromNonExistingFile, testReadAttributesFromNonExistingFile, testReadAttributesOneUnknownAttributeThrows, testReadAttributesUnknownAttributeThrows, testReadAttributesViewAndReadFromNonExistingFile, testReadAttributesViewFromNonExistingFile, testReadAttributesViewFutureExistingFile, testReadUnsupportedAttributeThrows, testRootIsNotASymbolicLink, testSetCreationTimeDoesNotChangeLastAccessTime, testSetCreationTimeViaString, testSetCreationTimeViaView, testSetFileKeyThrows, testSetIsDirectoryThrows, testSetIsLinkThrows, testSetIsOtherThrows, testSetIsRegularFileThrows, testSetLastAccessTimeViaString, testSetLastAccessTimeViaView, testSetLastModifiedTimeViaFiles, testSetLastModifiedTimeViaString, testSetLastModifiedTimeViaView, testSetSizeThrows, testSetUnsupportedAttributeThrows, testSizeOfDirDoesNotThrow, testUnsupportedAttributesThrows, testUnsupportedAttributeViewReturnsNull, testUserDefinedAttributesgetEnv, testFileSystemOfAPathIsTheConstructingOne, testGetExistingFileSystem, testNewFileSystemOfExistingThrows, testPathToUriAndBackIsSame, testPathWithWitespaceToUri, testPathWithWitespaceToUriAndBack, testProviderGetFileSystemWithWrongSchemeFails, testSchemeIsNotEmpty, testSeparatorIsNotEmpty, testToUriOfRelativePathIsTheUriOfTheAbsolute, testWrongUriAtProviderNewFails, toURI, toURIWithoutPath, toURIWithRootsrc, srcDir, srcFile, testCopyAlreadyThereOverwrite, testCopyAlreadyThereWithoutOptionThrows, testCopyAttributesCheckModifiedTime, testCopyDirCreatesADirWithTheTargetName, testCopyDirReplaceExistingOverwritesFile, testCopyDoesNotModifyOriginal, testCopyDuplicatesTheContent, testCopyFileReplaceExistingDoesNotOverwriteExistingNonEmptyDir, testCopyFileReplaceExistingOverwritesExistingDir, testCopyIntoItself, testCopyNonEmptyDirDoesNotCopyKids, testCopyResultHasCreationTime, testCopyViaProvider, testDeleteDeletes, testDeleteDirChangesParentsModificationTime, testDeleteDirRemovesItFromParentsKids, testDeleteEmptiedDir, testDeleteEmptyDir, testDeleteFileChangesParentsModificationTime, testDeleteFileDoesNotChangeParentCreationTime, testDeleteFileRemovesItFromParentsKids, testDeleteIfExistsRecreate, testDeleteNonEmptyDirectoryThrows, testDeleteNonExistingFileThrows, testDeleteRecreate, testDeleteRootThrows, testDeleteWhileReading, testDeleteWhileWriting, testFailedMoveLeavesOriginal, testModifyOriginalAfterCopyDoesNotChangeTarget, testMoveAlreadyThereDirectory, testMoveAlreadyThereDirectoryOverwrite, testMoveAlreadyThereNonEmptyDirectoryOverwrite, testMoveAlreadyThereOverwrite, testMoveAlreadyThereThrows, testMoveChangesModifiedTimeOfParent, testMoveChangesModifiedTimeOfTargetsParent, testMoveCreatesNewFileDeletesOriginal, testMoveEmptyDir, testMoveIntoItself, testMoveKeepsLastModifiedTime, testMoveNonEmptyDir, testMoveRoot, testMoveToFileWithNonExistingParentThrows, testMoveViaProvider, testMoveWhileWriting, testRenamingAFileAddsNameToParentsDirStream, testRenamingAFileRemovesNameFromParentsDirStream, tgtgetFile, testAppend, testAppendAndReadThrows, testAppendAndTruncateExistingThrows, testAppendDoesNotCreateNewFile, testChannelGetSize, testChannelSetNegativePositionThrows, testChannelSetPositionSetsPosition, testClosedChannelIsClosed, testCreateFileInFileThrows, testCreateFileSetModifiedTime, testCreateFileSetsLastAccessTime, testCreateFileSetsLastAccessTimeOfParent, testCreateFileSetsModifiedTimeOfParent, testEveryChannelReadUpdatesLastAccessTime, testEveryChannelWriteUpdatesLastModifiedTime, testFileAttributesAreImmutable, testModifiedDateIsCloseToCurrentTime, testNewFileIsInDirStream, testOverwriteDoesNotSetLastAccessTimeOfParent, testOverwriteSetLastAccessTime, testOverwriteTruncateExisting, testOverwriteTruncateExistingDoesNotChangeCreationTime, testRandomRead, testRandomReadPosition, testRandomWrite, testReadAndWrite, testReadChannelOfDirDoesNotThrow, testReadChannelOfDirThrows, testReadCreateNonExistingFileThrows, testReadFileDoesNotSetParentsLastAccessTime, testReadFileSetsLastAccessTime, testReadFromClosedChannelThrows, testReadFromExhausted, testReadFromWriteOnlyChannelThrows, testReadSmallChunks, testRWBytes, testRWBytes20k, testTruncate, testTruncateOnAppendChannelThrows, testTruncateOnClosedChannelThrows, testTruncateOnReadChannelThrows, testTruncateToNegativeSizeThrows, testWriteAndCreateExistent, testWriteAndCreateNewNonExistent, testWriteAndCreateNonExistentCreatesIt, testWriteBeyondFileSize, testWriteChannelOfDir, testWriteFileAndSize, testWriteFileWithoutExistingParentThrows, testWriteNonExistent, testWriteNothingOverExistingFileDoesNotChangeIt, testWriteOnlyNew, testWriteOnlyNewIfCreateIsThereToo, testWriteSmallChunks, testWriteToClosedChannelThrows, testWriteToReadOnlyChannelThrows, testWriteWithoutOptionsCreatesTheFile, testWriteWithoutOptionsOverwritesExistingabsT, 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, setuppublic Tests18FileChannels(FSDescription capa)
public void testOpenFilChannel()
throws IOException
IOExceptionpublic void testTransferFromOfClosedFileChannelThrows()
throws IOException
IOExceptionpublic void testTransferToClosedFileChannelThrows()
throws IOException
IOExceptionpublic void testTransferFromWrites()
throws IOException
IOExceptionpublic void testTransferFromLeavesPositionUnchanged()
throws IOException
IOExceptionpublic void testTransferFromWritesFromPosition()
throws IOException
IOExceptionpublic void testTransferFromOnReadonlyChannelThrows()
throws IOException
IOExceptionpublic void testTransferFromWithNegativePositionThrows()
throws IOException
IOExceptionpublic void testTransferFromWithNegativeLengthThrows()
throws IOException
IOExceptionpublic void testTransferFromPositionBeyondFileSizeDoesNothing()
throws IOException
IOExceptionpublic void testTransferFromWithSourceChannelPositionNotZero()
throws IOException
IOExceptionpublic void testTransferFromFromNonReadableChannelThrows()
throws IOException
IOExceptionpublic void testTransferFromSourceWithLessThanRequestedBytesGetsWhatsThere()
throws IOException
IOExceptionpublic void testTransferToWritesToChannel()
throws IOException
IOExceptionpublic void testTransferToDoesNotModifyPosition()
throws IOException
IOExceptionpublic void testTransferToFromWriteOnlyThrows()
throws IOException
IOExceptionpublic void testTransferToFromNegativePosition()
throws IOException
IOExceptionpublic void testTransferToNegativeContentLengthThrows()
throws IOException
IOExceptionpublic void testTransferToNonWritableChannelThrows()
throws IOException
IOExceptionpublic void testTransferToTransfersOnlyWhatsThere()
throws IOException
IOExceptionpublic void testTransferToFromPosition()
throws IOException
IOExceptionpublic void testFileChannelRead()
throws IOException
IOExceptionpublic void testFileChannelScatteredRead()
throws IOException
IOExceptionpublic void testForce()
throws IOException
IOExceptionCopyright © 2015. All rights reserved.