Package no.maddin.niofs.sftp
Class FileSystemsTest
java.lang.Object
no.maddin.niofs.sftp.FileSystemsTest
Tests that don't require a server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stream<org.junit.jupiter.params.provider.Arguments> (package private) voidfailingSystemFromURI(URI uri, org.hamcrest.Matcher<Throwable> expectedResult) Invalid calls forFileSystems.newFileSystem(URI, Map)for the smb scheme.(package private) voidfileSystemFromURI(URI uri, org.hamcrest.Matcher<FileSystem> expectedResult) Valid calls forFileSystems.newFileSystem(URI, Map)for the smb scheme.(package private) voidgetFsWithDifferentUserInfo(URI uriNew, URI uriGet) (package private) static Stream<org.junit.jupiter.params.provider.Arguments> These are invalid URIs forFileSystems.newFileSystem(URI, Map)for the smb scheme.(package private) static Stream<org.junit.jupiter.params.provider.Arguments> uriData()These are valid URIs forFileSystems.newFileSystem(URI, Map)for the smb scheme.(package private) static Stream<org.junit.jupiter.params.provider.Arguments> validGet()(package private) voidvalidGetFileSystem(URI uriNew, URI uriGet) (package private) voidvalidGetUriOnClosedFileSystem(URI uriNew, URI uriGet)
-
Constructor Details
-
FileSystemsTest
FileSystemsTest()
-
-
Method Details
-
uriData
These are valid URIs forFileSystems.newFileSystem(URI, Map)for the smb scheme.- Throws:
URISyntaxException
-
invalidFsUriData
static Stream<org.junit.jupiter.params.provider.Arguments> invalidFsUriData() throws URISyntaxExceptionThese are invalid URIs forFileSystems.newFileSystem(URI, Map)for the smb scheme.- Throws:
URISyntaxException
-
validGet
-
differentUserInfoData
-
fileSystemFromURI
@ParameterizedTest @MethodSource("uriData") void fileSystemFromURI(URI uri, org.hamcrest.Matcher<FileSystem> expectedResult) throws IOException Valid calls forFileSystems.newFileSystem(URI, Map)for the smb scheme.- Throws:
IOException
-
failingSystemFromURI
@ParameterizedTest @MethodSource("invalidFsUriData") void failingSystemFromURI(URI uri, org.hamcrest.Matcher<Throwable> expectedResult) Invalid calls forFileSystems.newFileSystem(URI, Map)for the smb scheme. -
validGetFileSystem
@ParameterizedTest @MethodSource("validGet") void validGetFileSystem(URI uriNew, URI uriGet) throws IOException - Throws:
IOException
-
validGetUriOnClosedFileSystem
-
getFsWithDifferentUserInfo
-