Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Commits
88801b20
Unverified
Commit
88801b20
authored
6 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
TST: test file system directories access mode
parent
41106cb1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/caosdb/server/FileSystem.java
+0
-1
0 additions, 1 deletion
src/main/java/caosdb/server/FileSystem.java
src/test/java/caosdb/server/utils/FileUtilsTest.java
+10
-1
10 additions, 1 deletion
src/test/java/caosdb/server/utils/FileUtilsTest.java
with
10 additions
and
2 deletions
src/main/java/caosdb/server/FileSystem.java
+
0
−
1
View file @
88801b20
...
@@ -70,7 +70,6 @@ public class FileSystem {
...
@@ -70,7 +70,6 @@ public class FileSystem {
}
}
}
}
@Deprecated
public
static
String
getBasepath
()
{
public
static
String
getBasepath
()
{
if
(
filesystem
==
null
)
{
if
(
filesystem
==
null
)
{
init
();
init
();
...
...
This diff is collapsed.
Click to expand it.
src/test/java/caosdb/server/utils/FileUtilsTest.java
+
10
−
1
View file @
88801b20
...
@@ -68,8 +68,17 @@ public class FileUtilsTest {
...
@@ -68,8 +68,17 @@ public class FileUtilsTest {
@BeforeClass
@BeforeClass
public
static
void
setup
()
throws
Message
,
IOException
{
public
static
void
setup
()
throws
Message
,
IOException
{
Assert
.
assertTrue
(
new
File
(
FileSystem
.
getBasepath
()).
canWrite
());
Assert
.
assertTrue
(
new
File
(
FileSystem
.
getBasepath
()).
canRead
());
Assert
.
assertTrue
(
new
File
(
FileSystem
.
getBasepath
()).
canExecute
());
Assert
.
assertTrue
(
new
File
(
FileSystem
.
getTmp
()).
canWrite
());
Assert
.
assertTrue
(
new
File
(
FileSystem
.
getTmp
()).
canRead
());
Assert
.
assertTrue
(
new
File
(
FileSystem
.
getTmp
()).
canExecute
());
Assert
.
assertTrue
(
new
File
(
FileSystem
.
getDropOffBox
()).
canWrite
());
Assert
.
assertTrue
(
new
File
(
FileSystem
.
getDropOffBox
()).
canRead
());
Assert
.
assertTrue
(
new
File
(
FileSystem
.
getDropOffBox
()).
canExecute
());
deleteTmp
();
deleteTmp
();
System
.
err
.
println
(
"setup"
);
FileUtils
.
createFolders
(
testRoot
);
FileUtils
.
createFolders
(
testRoot
);
FileUtils
.
createFolders
(
someDir
);
FileUtils
.
createFolders
(
someDir
);
someFile
.
createNewFile
();
someFile
.
createNewFile
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment