Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xml_plugin4rosetta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
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
xml_plugin4rosetta
Commits
d6cc8a6a
Commit
d6cc8a6a
authored
2 years ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- reordered tests
parent
189f5cb8
No related branches found
No related tags found
No related merge requests found
Pipeline
#3593
failed
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/TestSLUBXmlFormatValidationPlugin.java
+10
-11
10 additions, 11 deletions
.../repository/plugin/TestSLUBXmlFormatValidationPlugin.java
with
10 additions
and
11 deletions
java/org/slub/rosetta/dps/repository/plugin/TestSLUBXmlFormatValidationPlugin.java
+
10
−
11
View file @
d6cc8a6a
...
@@ -11,8 +11,7 @@ import java.util.HashMap;
...
@@ -11,8 +11,7 @@ import java.util.HashMap;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Stream
;
import
java.util.stream.Stream
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
Assert
.*;
import
static
org
.
junit
.
Assert
.
assertTrue
;
/**
/**
* Tests for {@link SLUBXmlFormatValidationPlugin}.
* Tests for {@link SLUBXmlFormatValidationPlugin}.
...
@@ -29,7 +28,7 @@ public class TestSLUBXmlFormatValidationPlugin {
...
@@ -29,7 +28,7 @@ public class TestSLUBXmlFormatValidationPlugin {
public
void
setUp
()
{
public
void
setUp
()
{
Stream
<
Path
>
findFiles
;
Stream
<
Path
>
findFiles
;
try
{
try
{
findFiles
=
Files
.
find
(
Path
.
of
(
"resources/test/"
),
5
,
((
path
,
basicFileAttributes
)
->
Files
.
isRegularFile
(
path
)));
findFiles
=
Files
.
find
(
Path
.
of
(
"resources/test/
mods
"
),
5
,
((
path
,
basicFileAttributes
)
->
Files
.
isRegularFile
(
path
)));
testPaths
=
findFiles
.
toArray
(
Path
[]::
new
);
testPaths
=
findFiles
.
toArray
(
Path
[]::
new
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
// do nothing, because nothing found
// do nothing, because nothing found
...
@@ -46,14 +45,14 @@ public class TestSLUBXmlFormatValidationPlugin {
...
@@ -46,14 +45,14 @@ public class TestSLUBXmlFormatValidationPlugin {
System
.
out
.
println
(
"file "
+
path
+
" ignored"
);
System
.
out
.
println
(
"file "
+
path
+
" ignored"
);
continue
;
continue
;
}
}
if
(
path
.
toString
().
contains
(
"test-4.2.xml"
))
{
System
.
out
.
println
(
"=================================================================================="
);
continue
;
assertTrue
(
"validateFormat (pass), check if "
+
path
+
" exist"
,
Files
.
exists
(
path
))
;
}
assertTrue
(
"validateFormat("
+
path
+
"), returns valid?"
,
mock
.
validateFormat
(
path
.
toString
()));
assertTrue
(
"validateFormat
(pass), check if "
+
path
+
" exist"
,
Files
.
exists
(
path
));
assertTrue
(
"validateFormat
("
+
path
+
"), is wellformed?"
,
mock
.
isWellFormed
(
));
assert
True
(
"validateFormat("
+
path
+
"), re
turns valid?"
,
mock
.
validateFormat
(
path
.
toString
()
));
assert
Null
(
"validateFormat("
+
path
+
"), re
ports no errors?"
,
mock
.
getErrors
(
));
assert
True
(
"validateFormat(
"
+
path
+
"
)
,
is valid?"
,
mock
.
v
alidat
eFormat
(
path
.
toString
()
));
assert
NotNull
(
"getValidationDetails(),
"
+
path
+
",
not null"
,
mock
.
getV
alidat
ionDetails
(
));
assertTrue
(
"validateFormat("
+
path
+
"), is
wellformed?"
,
mock
.
isWellForme
d
());
assertTrue
(
"validateFormat("
+
path
+
"), is
valid?"
,
mock
.
isVali
d
());
assertNotNull
(
"getValidationDetails(), "
+
path
+
", not null"
,
mock
.
getValidationDetails
());
}
}
}
}
}
}
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