mirror of
https://github.com/valitydev/file-storage.git
synced 2024-11-06 00:35:22 +00:00
BJ-314: update
This commit is contained in:
parent
2b3386020b
commit
e9f335e505
@ -41,10 +41,11 @@ public class PresignedUrlAccessRightsTest extends AbstractIntegrationTest {
|
||||
@Test
|
||||
public void downloadUrlTest() throws TException, IOException {
|
||||
Path testFile = Files.createTempFile("", "test_file");
|
||||
Files.write(testFile, new byte[0]);
|
||||
|
||||
Path testActualFile = Files.createTempFile("", "test_actual_file");
|
||||
|
||||
try {
|
||||
Path testActualFile = Files.createTempFile("", "test_actual_file");
|
||||
Files.write(testFile, new byte[0]);
|
||||
|
||||
NewFileResult fileResult = client.createNewFile("test_file", Collections.emptyMap(), getDayInstant().toString());
|
||||
|
||||
@ -62,6 +63,7 @@ public class PresignedUrlAccessRightsTest extends AbstractIntegrationTest {
|
||||
assertEquals(Files.readAllLines(testFile), Files.readAllLines(testActualFile));
|
||||
} finally {
|
||||
Files.deleteIfExists(testFile);
|
||||
Files.deleteIfExists(testActualFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user