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
6683c14d
Commit
6683c14d
authored
16 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
LMS-791 minor: use apache io library instead of commons
SVN: 10346
parent
b0699d42
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
openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/dataaccess/db/HibernateSearchDAOTest.java
+11
-2
11 additions, 2 deletions
.../generic/server/dataaccess/db/HibernateSearchDAOTest.java
with
11 additions
and
2 deletions
openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/dataaccess/db/HibernateSearchDAOTest.java
+
11
−
2
View file @
6683c14d
...
...
@@ -22,12 +22,14 @@ import static org.testng.AssertJUnit.assertTrue;
import
static
org
.
testng
.
AssertJUnit
.
fail
;
import
java.io.File
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Set
;
import
org.apache.commons.io.FileUtils
;
import
org.hibernate.classic.Session
;
import
org.hibernate.search.FullTextSession
;
import
org.hibernate.search.Search
;
...
...
@@ -37,6 +39,7 @@ import org.testng.annotations.DataProvider;
import
org.testng.annotations.Test
;
import
ch.rinn.restrictions.Friend
;
import
ch.systemsx.cisd.common.exceptions.WrappedIOException
;
import
ch.systemsx.cisd.common.filesystem.FileUtilities
;
import
ch.systemsx.cisd.common.test.AssertionUtil
;
import
ch.systemsx.cisd.openbis.generic.server.dataaccess.IHibernateSearchDAO
;
...
...
@@ -49,10 +52,10 @@ import ch.systemsx.cisd.openbis.generic.shared.basic.dto.SearchCriteriaConnectio
import
ch.systemsx.cisd.openbis.generic.shared.dto.EntityPropertyPE
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.ExperimentPE
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.ExperimentPropertyPE
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.ExternalDataPE
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.GroupPE
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.HierarchyType
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.IEntityPropertiesHolder
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.ExternalDataPE
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.MaterialPE
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.MaterialPropertyPE
;
import
ch.systemsx.cisd.openbis.generic.shared.dto.ProjectPE
;
...
...
@@ -86,7 +89,13 @@ public final class HibernateSearchDAOTest extends AbstractDAOTest
FileUtilities
.
deleteRecursively
(
targetPath
);
targetPath
.
mkdirs
();
File
srcPath
=
new
File
(
LUCENE_INDEX_TEMPLATE_PATH
);
FileUtilities
.
copyDirectory
(
srcPath
,
targetPath
);
try
{
FileUtils
.
copyDirectory
(
srcPath
,
targetPath
);
}
catch
(
IOException
ex
)
{
throw
new
WrappedIOException
(
ex
);
}
}
@SuppressWarnings
(
"unused"
)
...
...
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