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
c5416bd8
Commit
c5416bd8
authored
14 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1746 Improved tests.
SVN: 17840
parent
4be3eaf8
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
openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/api/v1/GeneralInformationServiceTest.java
+26
-1
26 additions, 1 deletion
...nbis/systemtest/api/v1/GeneralInformationServiceTest.java
with
26 additions
and
1 deletion
openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/api/v1/GeneralInformationServiceTest.java
+
26
−
1
View file @
c5416bd8
...
@@ -108,7 +108,17 @@ public class GeneralInformationServiceTest extends SystemTestCase
...
@@ -108,7 +108,17 @@ public class GeneralInformationServiceTest extends SystemTestCase
}
}
@Test
@Test
public
void
testListDataSets
()
public
void
testSearchForSamplesByProperty
()
{
// Search for Samples first
SearchCriteria
sc
=
new
SearchCriteria
();
sc
.
addMatchClause
(
MatchClause
.
createPropertyMatch
(
"ORGANISM"
,
"HUMAN"
));
List
<
Sample
>
result
=
generalInformationService
.
searchForSamples
(
sessionToken
,
sc
);
assertEquals
(
true
,
result
.
size
()
>
0
);
}
@Test
public
void
testListDataSetsForAllSamples
()
{
{
// Search for Samples first
// Search for Samples first
SearchCriteria
sc
=
new
SearchCriteria
();
SearchCriteria
sc
=
new
SearchCriteria
();
...
@@ -126,6 +136,21 @@ public class GeneralInformationServiceTest extends SystemTestCase
...
@@ -126,6 +136,21 @@ public class GeneralInformationServiceTest extends SystemTestCase
assertEquals
(
true
,
result
.
size
()
==
0
);
assertEquals
(
true
,
result
.
size
()
==
0
);
}
}
private
static
final
String
DEFAULT_PLATE_GEOMETRY_VALUE
=
"384_WELLS_16X24"
;
@Test
public
void
testSearchForDataSetsByProperty
()
{
// Search for Samples first
SearchCriteria
sc
=
new
SearchCriteria
();
sc
.
addMatchClause
(
MatchClause
.
createPropertyMatch
(
"$PLATE_GEOMETRY"
,
DEFAULT_PLATE_GEOMETRY_VALUE
));
List
<
Sample
>
samples
=
generalInformationService
.
searchForSamples
(
sessionToken
,
sc
);
assertEquals
(
true
,
samples
.
size
()
>
0
);
List
<
DataSet
>
result
=
generalInformationService
.
listDataSets
(
sessionToken
,
samples
);
assertEquals
(
true
,
result
.
size
()
==
0
);
}
private
void
checkSpace
(
String
expectedCode
,
String
expectedProjects
,
String
expectedRoles
,
private
void
checkSpace
(
String
expectedCode
,
String
expectedProjects
,
String
expectedRoles
,
SpaceWithProjectsAndRoleAssignments
space
)
SpaceWithProjectsAndRoleAssignments
space
)
{
{
...
...
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