Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
f4470b23
Commit
f4470b23
authored
14 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1887 Fixed test to ignore svn stuff.
SVN: 18859
parent
387f7c84
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rtd_cina/sourceTest/java/ch/systemsx/cisd/cina/client/util/cli/CommandGetReplicaTest.java
+17
-0
17 additions, 0 deletions
...emsx/cisd/cina/client/util/cli/CommandGetReplicaTest.java
with
17 additions
and
0 deletions
rtd_cina/sourceTest/java/ch/systemsx/cisd/cina/client/util/cli/CommandGetReplicaTest.java
+
17
−
0
View file @
f4470b23
...
...
@@ -20,6 +20,7 @@ import java.io.File;
import
java.io.FileInputStream
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.GregorianCalendar
;
import
org.jmock.Expectations
;
...
...
@@ -203,6 +204,7 @@ public class CommandGetReplicaTest extends AbstractFileSystemTestCase
});
}
@SuppressWarnings
(
"unchecked"
)
private
ArrayList
<
FileInfoDssDTO
>
getFileInfosForPath
(
File
file
)
throws
IOException
{
ArrayList
<
FileInfoDssDTO
>
fileInfos
=
new
ArrayList
<
FileInfoDssDTO
>();
...
...
@@ -219,6 +221,14 @@ public class CommandGetReplicaTest extends AbstractFileSystemTestCase
FileInfoDssBuilder
builder
=
new
FileInfoDssBuilder
(
path
,
path
);
builder
.
appendFileInfosForFile
(
file
,
fileInfos
,
true
);
// Strip SVN stuff
for
(
FileInfoDssDTO
fileInfo
:
(
ArrayList
<
FileInfoDssDTO
>)
fileInfos
.
clone
())
{
if
(
fileInfo
.
getPathInDataSet
().
matches
(
".*/.svn/.*"
))
fileInfos
.
remove
(
fileInfo
);
}
return
fileInfos
;
}
...
...
@@ -239,6 +249,13 @@ public class CommandGetReplicaTest extends AbstractFileSystemTestCase
"REPLICA-ID"
});
assertEquals
(
ResultCode
.
OK
,
exitCode
);
String
[]
bundleContents
=
outputFolder
.
list
();
Arrays
.
sort
(
bundleContents
);
assertEquals
(
2
,
bundleContents
.
length
);
assertEquals
(
"Annotations"
,
bundleContents
[
0
]);
assertEquals
(
"RawData"
,
bundleContents
[
1
]);
context
.
assertIsSatisfied
();
}
...
...
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