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
bbd1e101
Commit
bbd1e101
authored
13 years ago
by
kaloyane
Browse files
Options
Downloads
Patches
Plain Diff
minor: changes related to the sanofi test
SVN: 21999
parent
7596623d
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
datastore_server/sourceTest/java/ch/systemsx/cisd/etlserver/registrator/AbstractJythonDataSetHandlerTest.java
+12
-6
12 additions, 6 deletions
...lserver/registrator/AbstractJythonDataSetHandlerTest.java
with
12 additions
and
6 deletions
datastore_server/sourceTest/java/ch/systemsx/cisd/etlserver/registrator/AbstractJythonDataSetHandlerTest.java
+
12
−
6
View file @
bbd1e101
...
@@ -70,7 +70,7 @@ public abstract class AbstractJythonDataSetHandlerTest extends AbstractFileSyste
...
@@ -70,7 +70,7 @@ public abstract class AbstractJythonDataSetHandlerTest extends AbstractFileSyste
private
static
final
String
DATABASE_INSTANCE_UUID
=
"db-uuid"
;
private
static
final
String
DATABASE_INSTANCE_UUID
=
"db-uuid"
;
protected
JythonTopLevelDataSetHandler
<
DataSetInformation
>
handler
;
protected
JythonTopLevelDataSetHandler
<
?
extends
DataSetInformation
>
handler
;
protected
Mockery
context
;
protected
Mockery
context
;
...
@@ -172,10 +172,10 @@ public abstract class AbstractJythonDataSetHandlerTest extends AbstractFileSyste
...
@@ -172,10 +172,10 @@ public abstract class AbstractJythonDataSetHandlerTest extends AbstractFileSyste
handler
=
handler
=
new
TestingDataSetHandler
(
globalState
,
registrationShouldFail
,
new
TestingDataSetHandler
(
globalState
,
registrationShouldFail
,
shouldReThrowException
);
shouldReThrowException
);
}
}
pr
ivate
TopLevelDataSetRegistratorGlobalState
createGlobalState
(
Properties
threadProperties
)
pr
otected
TopLevelDataSetRegistratorGlobalState
createGlobalState
(
Properties
threadProperties
)
{
{
ThreadParameters
threadParameters
=
ThreadParameters
threadParameters
=
new
ThreadParameters
(
threadProperties
,
"jython-handler-test"
);
new
ThreadParameters
(
threadProperties
,
"jython-handler-test"
);
...
@@ -253,14 +253,20 @@ public abstract class AbstractJythonDataSetHandlerTest extends AbstractFileSyste
...
@@ -253,14 +253,20 @@ public abstract class AbstractJythonDataSetHandlerTest extends AbstractFileSyste
public
void
storeData
(
DataSetInformation
dataSetInformation
,
public
void
storeData
(
DataSetInformation
dataSetInformation
,
ITypeExtractor
typeExtractor
,
IMailClient
mailClient
,
ITypeExtractor
typeExtractor
,
IMailClient
mailClient
,
File
incomingDataSet
Directory
,
File
rootDir
)
File
incomingDataSet
File
,
File
rootDir
)
{
{
incomingDirs
.
add
(
incomingDataSet
Directory
);
incomingDirs
.
add
(
incomingDataSet
File
);
rootDirs
.
add
(
rootDir
);
rootDirs
.
add
(
rootDir
);
dataSetInfoString
=
dataSetInformation
.
toString
();
dataSetInfoString
=
dataSetInformation
.
toString
();
try
try
{
{
FileUtils
.
copyDirectory
(
incomingDataSetDirectory
,
rootDir
);
if
(
incomingDataSetFile
.
isDirectory
())
{
FileUtils
.
copyDirectory
(
incomingDataSetFile
,
rootDir
);
}
else
{
FileUtils
.
copyFileToDirectory
(
incomingDataSetFile
,
rootDir
);
}
}
catch
(
IOException
ex
)
}
catch
(
IOException
ex
)
{
{
throw
new
IOExceptionUnchecked
(
ex
);
throw
new
IOExceptionUnchecked
(
ex
);
...
...
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