本文整理匯總了Java中de.pfabulist.lindwurm.niotest.tests.Tests05URI類的典型用法代碼示例。如果您正苦於以下問題:Java Tests05URI類的具體用法?Java Tests05URI怎麽用?Java Tests05URI使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Tests05URI類屬於de.pfabulist.lindwurm.niotest.tests包,在下文中一共展示了Tests05URI類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: beforeClass
import de.pfabulist.lindwurm.niotest.tests.Tests05URI; //導入依賴的package包/類
@BeforeClass
public static void beforeClass() throws IOException {
capa = build().windows().next().
playground().set( windows().
//principals( PrincipalsBuilder.linuxUsersAndGroups( "me")).
build().
getPath("/play")).
pathConstraints().noMaxPathLength().next(). // faster
watchable().no(). // faster
secondFS().no().
closable().no(). //playground( memoryFS().unixPathContriants().closable( true ).watchService(true).build("memoryfsTestClosable2").getPath("/play")).
fileChannel().noScatterGather().noAsynchronous().next().
fileStores().no(). // sizeLimitedPlayground( memoryFS().unixPathContriants().
// name( "memoryfsLimitedTest" ).
// maxSize( 38000 ).
// build().getPath("/play") ).next().
fsCreation().
uri( Tests05URI::toURIWithoutPath ).
next().
bug( "testReadAttributesViewFutureExistingFile").
bug( "testMoveSymLinkDoesNotChangeLastModifiedTime" ).
bug( "testReadChannelOfDirDoesNotThrow" ).
bug( "testReadFromDirStreamOfClosedFSThrows" ).
bug( "testPathFileStoreGrowingFileLowersUsableSpace" ). // todo
bug( "testDifferentOwnerCanNotWrite"). // todo no checks yet
bug( "testWriteToMaxPathWorks"). //slow
bug( "testGetPathOfSeparatorIsRelative" ).
fastOnly().
done();
}
示例2: before
import de.pfabulist.lindwurm.niotest.tests.Tests05URI; //導入依賴的package包/類
@BeforeClass
public static void before() {
descr = build().
playgrounds().
std( Jimfs.newFileSystem( Configuration.windows().toBuilder().setAttributeViews( "basic", "owner", "dos" ).build() ).getPath( "c:\\play" ) ).
closable( Jimfs.newFileSystem( Configuration.windows().toBuilder().setAttributeViews( "basic", "owner" ).build() ).getPath( "c:\\play" ) ).
sizeLimitedPlayground( Jimfs.newFileSystem( Configuration.windows().toBuilder().setMaxSize( 38000L ).build() ).getPath( "c:\\play" ) ).
next().
windows().next().
time().noLastAccessTime().next().
pathConstraints().noMaxFilenameLength().next().
watchable().delay( 5500 ).
fsCreation().
uri( Tests05URI::toURIWithoutPath ).
env( Collections.singletonMap( "config", Configuration.unix().toBuilder().setAttributeViews( "basic", "owner", "dos" ).build() ) ).
next().
// nitpickScheme( "UnsupportedAttributeThrows", "IllegalArg instead Unsupported" ).
// bug( "testCloseDirStreamInTheMiddleOfIteration" ).
// bug( "testClosedFSGetFileStore").
// bug( "testCopySymLinkToItself").
// bug( "testCopyBrokenSymLinkToItself").
// bug( "testMoveARelSymLink").
// bug( "testMoveARelSymLink2").
// bug( "testSymLinkToUnnormalizedRelPath" ).
// bug( "testGetFileStoreOfNonExistent" ).
// bug( "testGetFileStoreOfBrokenSymLink" ).
// bug( "testIsSameFileOfDifferentPathNonExistingFileIsNot" ).
// bug( "testWatchAModify" ).
// bug( "testWatchSeveralEventsInOneDir" ).
// bug( "testWatchTwoModifiesOneKey" ).
// bug( "testWatchATruncate").
// nitpick( "testReadChannelOfDir", "who cares" ).
// nitpick( "testRegisterWatchServiceOfClosedFS", "different exception" ).
// nitpick("testAppendAndReadThrows", "IllegalArg instead Unsupported").
done();
// new FSDescription().
// closable().yes().
// hardLinks().toDirs(false).yes().
// unix(true).
// watchService().delay(5500).yes().
// symLinks().toOtherProviders(false).yes().
}
示例3: before
import de.pfabulist.lindwurm.niotest.tests.Tests05URI; //導入依賴的package包/類
@BeforeClass
public static void before() {
descr = build().
playgrounds().
std( Jimfs.newFileSystem( Configuration.unix().toBuilder().setAttributeViews( "basic", "owner", "posix", "unix" ).build() ).getPath( "/play" ) ).
sameProviderDifferentFileSystem( Jimfs.newFileSystem( Configuration.unix().toBuilder().setAttributeViews( "basic", "owner", "posix", "unix" ).build() ).getPath( "/play" ) ).
closable( Jimfs.newFileSystem( Configuration.unix().toBuilder().setAttributeViews( "basic", "owner", "posix", "unix" ).build() ).getPath( "/play" ) ).
sizeLimitedPlayground( Jimfs.newFileSystem( Configuration.unix().toBuilder().setMaxSize( 38000L ).build() ).getPath( "/play" ) ).
noSameFileSystemDifferentStore().
next().
unix().noPermissionChecks().next().
time().noLastAccessTime().next().
pathConstraints().noMaxFilenameLength().noMaxPathLength().next().
watchable().delay( 5500 ).
fsCreation().
uri( Tests05URI::toURIWithoutPath ).
env( Collections.singletonMap( "config", Configuration.unix().toBuilder().setAttributeViews( "basic", "owner", "posix", "unix" ).build() ) ).
next().
nitpickScheme( "UnsupportedAttributeThrows", "IllegalArg instead Unsupported" ).
bug( "testCloseDirStreamInTheMiddleOfIteration" ).
bug( "testClosedFSGetFileStore" ).
bug( "testCopySymLinkToItself" ).
bug( "testCopyBrokenSymLinkToItself" ).
bug( "testMoveARelSymLink" ).
bug( "testMoveARelSymLink2" ).
bug( "testSymLinkToUnnormalizedRelPath" ).
bug( "testGetFileStoreOfNonExistent" ).
bug( "testGetFileStoreOfBrokenSymLink" ).
bug( "testIsSameFileOfDifferentPathNonExistingFileIsNot" ).
bug( "testWatchAModify" ).
bug( "testWatchSeveralEventsInOneDir" ).
bug( "testWatchTwoModifiesOneKey" ).
bug( "testWatchATruncate" ).
bug( "testTransferFromPositionBeyondFileSizeDoesNothing" ).
bug( "testAppendAndTruncateExistingThrows" ).
bug( "testTruncateOnAppendChannelThrows" ).
bug("testGetPathOtherURI").
bug("testCantGetClosedFSViaURI").
bug("testNewFileSystemOfExistingThrows").
bug("testGetExistingFileSystem").
nitpick( "testReadChannelOfDirDoesNotThrow", "who cares" ).
nitpick( "testRegisterWatchServiceOfClosedFS", "different exception" ).
nitpick( "testAppendAndReadThrows", "IllegalArg instead Unsupported" ).
nitpick( "testDefaultPathIsSmallerThanAbsolute", "might be enough to be consistent" ).
done();
}
示例4: before
import de.pfabulist.lindwurm.niotest.tests.Tests05URI; //導入依賴的package包/類
@BeforeClass
public static void before() {
descr = build().
playgrounds().
std( Jimfs.newFileSystem( Configuration.unix().toBuilder().setAttributeViews( "basic", "owner", "posix", "unix" ).build() ).getPath( "/play" ) ).
sameProviderDifferentFileSystem( Jimfs.newFileSystem( Configuration.unix().toBuilder().setAttributeViews( "basic", "owner", "posix", "unix" ).build() ).getPath( "/play" ) ).
closable( Jimfs.newFileSystem( Configuration.unix().toBuilder().setAttributeViews( "basic", "owner", "posix", "unix" ).build() ).getPath( "/play" ) ).
sizeLimitedPlayground( Jimfs.newFileSystem( Configuration.unix().toBuilder().setMaxSize( 38000L ).build() ).getPath( "/play" ) ).
noSameFileSystemDifferentStore().
next().
unix().noPermissionChecks().next().
time().noLastAccessTime().next().
pathConstraints().noMaxFilenameLength().noMaxPathLength().next().
watchable().delay( 5500 ).
//fileStores().next().
fsCreation().
uri( Tests05URI::toURIWithoutPath ).
env( Collections.singletonMap( "config", Configuration.unix().toBuilder().setAttributeViews( "basic", "owner", "posix", "unix" ).build() ) ).
next().
nitpickScheme( "UnsupportedAttributeThrows", "IllegalArg instead Unsupported" ).
bug( "testCloseDirStreamInTheMiddleOfIteration" ).
bug( "testClosedFSGetFileStore" ).
bug( "testCopySymLinkToItself" ).
bug( "testCopyBrokenSymLinkToItself" ).
bug( "testMoveARelSymLink" ).
bug( "testMoveARelSymLink2" ).
bug( "testSymLinkToUnnormalizedRelPath" ).
bug( "testGetFileStoreOfNonExistent" ).
bug( "testGetFileStoreOfBrokenSymLink" ).
bug( "testIsSameFileOfDifferentPathNonExistingFileIsNot" ).
bug( "testWatchAModify" ).
bug( "testWatchSeveralEventsInOneDir" ).
bug( "testWatchTwoModifiesOneKey" ).
bug( "testWatchATruncate" ).
bug( "testTransferFromPositionBeyondFileSizeDoesNothing" ).
bug( "testAppendAndTruncateExistingThrows" ).
bug( "testTruncateOnAppendChannelThrows" ).
bug("testGetPathOtherURI").
bug("testCantGetClosedFSViaURI").
bug("testNewFileSystemOfExistingThrows").
bug("testGetExistingFileSystem").
nitpick( "testReadChannelOfDirDoesNotThrow", "who cares" ).
nitpick( "testRegisterWatchServiceOfClosedFS", "different exception" ).
nitpick( "testAppendAndReadThrows", "IllegalArg instead Unsupported" ).
nitpick( "testDefaultPathIsSmallerThanAbsolute", "might be enough to be consistent" ).
// fastOnly().
done();
// new FSDescription().
// closable().yes().
// hardLinks().toDirs(false).yes().
// unix(true).
// watchService().delay(5500).yes().
// symLinks().toOtherProviders(false).yes().
}