Package ch.rswk.meta.engine.test
Class FileServiceTest
java.lang.Object
ch.rswk.meta.engine.test.AbstractEngineServiceTest
ch.rswk.meta.engine.test.FileServiceTest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Pathstatic final Pathprotected FileServicestatic final FileService.FileServiceConfigstatic final Stringprivate Pathprotected FileServiceTest.TestServiceFields inherited from class ch.rswk.meta.engine.test.AbstractEngineServiceTest
runtime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voidcleanup(FileService.FileServiceConfig config) voidvoidnewFileFixtureSupplier(Path file, String key, @Nullable String name, @Nullable SortedSet<String> tags) newFileServiceTestConfig(@Nullable Path luceneIndexDir, @Nullable Path storageDir) newUploaddTask(CountDownLatch completeLatch, CountDownLatch readyLatch, List<UploadReply> replies) private static FileInfoprepareFileFixture(FileService.FileServiceConfig config, Path file, String key, @Nullable String name, @Nullable SortedSet<String> tags) voidsetup()voidteardown()voidupload()voidvoidvoidvoidstatic UploadReplyuploadFile(@Nullable String channel, @Nullable OffsetDateTime expiration, Path file, FileService service) Methods inherited from class ch.rswk.meta.engine.test.AbstractEngineServiceTest
setupServices, startUpAndShutDown, teardownServices
-
Field Details
-
FILE
-
FILE2
-
TEST_CONFIG
-
TEST_SERVICE_NAME
-
fileService
-
testService
-
testDir
-
-
Constructor Details
-
FileServiceTest
public FileServiceTest()
-
-
Method Details
-
backupRestore
-
fileSearchAndDelete
-
uploadFile
public static UploadReply uploadFile(@Nullable String channel, @Nullable OffsetDateTime expiration, Path file, FileService service) throws Exception - Throws:
Exception
-
localUpload_localDownload
-
newFileFixtureSupplier
-
prepareFileFixture
-
newFileServiceTestConfig
public static FileService.FileServiceConfig newFileServiceTestConfig(@Nullable Path luceneIndexDir, @Nullable Path storageDir) -
setup
-
teardown
-
cleanup
- Throws:
IOException
-
upload
-
upload_duplicate_existingAndPending
-
newUploaddTask
private Callable<Void> newUploaddTask(CountDownLatch completeLatch, CountDownLatch readyLatch, List<UploadReply> replies) -
upload_duplicate_pending
-
upload_expiration
-
upload_fail
-