Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
StoragePlugin4Rosetta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Digital Preservation
StoragePlugin4Rosetta
Commits
86b9abc7
Commit
86b9abc7
authored
2 years ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- fixed tc
parent
c3381398
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#3837
passed
2 years ago
Stage: build
Stage: test
Stage: packaging
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/org/slub/rosetta/dps/repository/plugin/storage/nfs/TestSLUBStoragePlugin.java
+5
-3
5 additions, 3 deletions
.../repository/plugin/storage/nfs/TestSLUBStoragePlugin.java
with
5 additions
and
3 deletions
java/org/slub/rosetta/dps/repository/plugin/storage/nfs/TestSLUBStoragePlugin.java
+
5
−
3
View file @
86b9abc7
...
...
@@ -37,10 +37,12 @@ import static org.junit.Assert.assertTrue;
public
class
TestSLUBStoragePlugin
{
private
static
SLUBStoragePlugin
mock
;
private
static
Path
testroot
;
private
static
Path
foopath
;
@Before
public
void
setUp
()
throws
IOException
{
testroot
=
Files
.
createTempDirectory
(
"testslubstorage"
);
Files
.
createFile
(
of
(
testroot
.
toAbsolutePath
()
+
"/foo"
));
foopath
=
of
(
testroot
.
toAbsolutePath
()
+
"/foo"
);
Files
.
createFile
(
foopath
);
mock
=
new
SLUBStoragePlugin
();
HashMap
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>
();
map
.
put
(
"DIR_ROOT"
,
testroot
.
toAbsolutePath
().
toString
());
...
...
@@ -64,8 +66,8 @@ public class TestSLUBStoragePlugin {
public
void
checkFixity
()
{
List
<
Fixity
>
fixities
=
new
ArrayList
<>();
try
{
var
result
=
mock
.
checkFixity
(
fixities
,
"/tmp/foo"
);
assertTrue
(
"checkFixity"
,
result
);
var
result
=
mock
.
checkFixity
(
fixities
,
foopath
.
toString
()
);
assertTrue
(
"checkFixity
(.., "
+
foopath
.
toString
()+
")
"
,
result
);
}
catch
(
Exception
e
)
{
assertEquals
(
"checkFixity"
,
"foo"
,
e
.
getMessage
());
...
...
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