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) void
failingSystemFromURI
(URI uri, org.hamcrest.Matcher<Throwable> expectedResult) Invalid calls forFileSystems.newFileSystem(URI, Map)
for the smb scheme.(package private) void
fileSystemFromURI
(URI uri, org.hamcrest.Matcher<FileSystem> expectedResult) Valid calls forFileSystems.newFileSystem(URI, Map)
for the smb scheme.(package private) void
getFsWithDifferentUserInfo
(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) void
validGetFileSystem
(URI uriNew, URI uriGet) (package private) void
validGetUriOnClosedFileSystem
(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
-