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 class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Path
static final Path
protected FileService
static final FileService.FileServiceConfig
static final String
private Path
protected FileServiceTest.TestService
Fields inherited from class ch.rswk.meta.engine.test.AbstractEngineServiceTest
runtime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
cleanup
(FileService.FileServiceConfig config) void
void
newFileFixtureSupplier
(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 FileInfo
prepareFileFixture
(FileService.FileServiceConfig config, Path file, String key, @Nullable String name, @Nullable SortedSet<String> tags) void
setup()
void
teardown()
void
upload()
void
void
void
void
static UploadReply
uploadFile
(@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
-