Commit 9bdc82ff authored by nfcalabria's avatar nfcalabria
Browse files

Minor additions

parent 3d890fb3
Pipeline #2210 passed with stages
in 1 minute and 43 seconds
......@@ -112,13 +112,13 @@ public class CopyServiceTest {
fileInfo.setOsPath(getTestFilePath(fileName, directory));
fileInfo.setVirtualPath(vosPath);
fileInfo.setPublic(false);
fileInfo.setOwnerId("user_copy");
fileInfo.setOwnerId(userId);
return fileInfo;
}
private String getTestFilePath(String fileName, File directory) {
return directory.toPath().resolve("subdir").resolve(fileName).toFile().getAbsolutePath();
return directory.toPath().resolve(fileName).toFile().getAbsolutePath();
}
private File createFile(File parent, String filename) throws Exception {
......@@ -134,6 +134,7 @@ public class CopyServiceTest {
private TokenPrincipal fakePrincipal(String name) {
TokenPrincipal principal = mock(TokenPrincipal.class);
when(principal.getName()).thenReturn(name);
when(principal.getToken()).thenReturn("any_token_not_null");
return principal;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment