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
d5a65e2c
Commit
d5a65e2c
authored
12 years ago
by
jakubs
Browse files
Options
Downloads
Patches
Plain Diff
SP-169 BIS-90 merge two test methods into one (fix problem with tests interference)
SVN: 25937
parent
181a2f74
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
datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/datastoreserver/systemtests/LinkDataSetImportSystemTest.java
+9
-16
9 additions, 16 deletions
...astoreserver/systemtests/LinkDataSetImportSystemTest.java
with
9 additions
and
16 deletions
datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/datastoreserver/systemtests/LinkDataSetImportSystemTest.java
+
9
−
16
View file @
d5a65e2c
...
@@ -53,20 +53,6 @@ public class LinkDataSetImportSystemTest extends SystemTestCase
...
@@ -53,20 +53,6 @@ public class LinkDataSetImportSystemTest extends SystemTestCase
private
HashSet
<
String
>
preexistingDataSetCodes
;
private
HashSet
<
String
>
preexistingDataSetCodes
;
/**
* The testcase that just imports the data. Other tests can depend on it, and assert stuff.
*/
@Test
public
void
testImportLinkDataSet
()
throws
Exception
{
preparePreexistingDataSetCodes
();
File
exampleDataSet
=
new
File
(
workingDirectory
,
"my-data"
);
createExampleDataSet
(
exampleDataSet
);
moveFileToIncoming
(
exampleDataSet
);
waitUntilDataSetImported
();
}
private
void
preparePreexistingDataSetCodes
()
private
void
preparePreexistingDataSetCodes
()
{
{
preexistingDataSetCodes
=
new
HashSet
<
String
>();
preexistingDataSetCodes
=
new
HashSet
<
String
>();
...
@@ -103,9 +89,16 @@ public class LinkDataSetImportSystemTest extends SystemTestCase
...
@@ -103,9 +89,16 @@ public class LinkDataSetImportSystemTest extends SystemTestCase
return
dataSets
;
return
dataSets
;
}
}
@Test
(
dependsOnMethods
=
"testImportLinkDataSet"
)
@Test
public
void
checkLinkDataSetIsImported
()
public
void
checkLinkDataSetIsImported
()
throws
Exception
{
{
preparePreexistingDataSetCodes
();
File
exampleDataSet
=
new
File
(
workingDirectory
,
"my-data"
);
createExampleDataSet
(
exampleDataSet
);
moveFileToIncoming
(
exampleDataSet
);
waitUntilDataSetImported
();
IEncapsulatedOpenBISService
openBISService
=
ServiceProvider
.
getOpenBISService
();
IEncapsulatedOpenBISService
openBISService
=
ServiceProvider
.
getOpenBISService
();
List
<
String
>
codes
=
newDataSetCodes
();
List
<
String
>
codes
=
newDataSetCodes
();
...
...
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