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
b4eac899
Commit
b4eac899
authored
14 years ago
by
kaloyane
Browse files
Options
Downloads
Patches
Plain Diff
minor: ignore .svn folders when listing (in)valid test images
SVN: 20556
parent
be7df6d8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
image_readers/sourceTest/java/ch/systemsx/cisd/imagereaders/ImageReaderFactoryTest.java
+10
-2
10 additions, 2 deletions
...ch/systemsx/cisd/imagereaders/ImageReaderFactoryTest.java
with
10 additions
and
2 deletions
image_readers/sourceTest/java/ch/systemsx/cisd/imagereaders/ImageReaderFactoryTest.java
+
10
−
2
View file @
b4eac899
...
...
@@ -20,6 +20,7 @@ import static ch.systemsx.cisd.imagereaders.ImageReaderConstants.BIOFORMATS_LIBR
import
java.awt.image.BufferedImage
;
import
java.io.File
;
import
java.io.FileFilter
;
import
org.testng.annotations.DataProvider
;
import
org.testng.annotations.Test
;
...
...
@@ -33,6 +34,13 @@ import ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked;
*/
public
class
ImageReaderFactoryTest
extends
AbstractImageReaderFactoryTest
{
private
static
final
FileFilter
IGNORE_SVN
=
new
FileFilter
()
{
public
boolean
accept
(
File
pathname
)
{
return
(
false
==
pathname
.
getName
().
equalsIgnoreCase
(
".svn"
));
}
};
@DataProvider
(
name
=
"libraries"
)
public
Object
[][]
librariesToTest
()
...
...
@@ -78,12 +86,12 @@ public class ImageReaderFactoryTest extends AbstractImageReaderFactoryTest
private
File
[]
listValidImages
(
String
library
)
{
return
getValidImagesDir
(
library
).
listFiles
();
return
getValidImagesDir
(
library
).
listFiles
(
IGNORE_SVN
);
}
private
File
[]
listInvalidImages
(
String
library
)
{
return
getInvalidImagesDir
(
library
).
listFiles
();
return
getInvalidImagesDir
(
library
).
listFiles
(
IGNORE_SVN
);
}
private
void
assertImageReadable
(
String
libraryName
,
File
file
)
...
...
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