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
0a8aa409
Commit
0a8aa409
authored
14 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
minor: fix unit tests
SVN: 18885
parent
e21b5f9c
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
screening/sourceTest/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/heatmaps/WellTooltipGeneratorTest.java
+6
-7
6 additions, 7 deletions
...tion/detailviewers/heatmaps/WellTooltipGeneratorTest.java
with
6 additions
and
7 deletions
screening/sourceTest/java/ch/systemsx/cisd/openbis/plugin/screening/client/web/client/application/detailviewers/heatmaps/WellTooltipGeneratorTest.java
+
6
−
7
View file @
0a8aa409
...
...
@@ -25,6 +25,7 @@ import java.util.List;
import
org.testng.AssertJUnit
;
import
org.testng.annotations.Test
;
import
ch.systemsx.cisd.common.test.AssertionUtil
;
import
ch.systemsx.cisd.openbis.generic.client.web.client.application.renderer.IRealNumberRenderer
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityProperty
;
import
ch.systemsx.cisd.openbis.generic.shared.basic.dto.IEntityProperty
;
...
...
@@ -129,14 +130,12 @@ public class WellTooltipGeneratorTest extends AssertJUnit
model
.
setFeatureVectorDataset
(
createLargeFeatureVectorDataset
());
String
desc
=
tryGenerateShortDescription
(
model
,
0
,
1
,
null
);
a
ssert
Equals
(
"Feature0: 0.0\n"
+
"Feature1: 1.0\n"
+
"Feature
2
:
2
.0
\n"
+
"Feature3: 3.0\n"
+
"Feature4: 4.0\n"
+
"Feature5: 5.0\n"
+
"Feature
6: 6
.0\n"
+
"..."
,
desc
);
A
ssert
ionUtil
.
assertStarts
(
"Feature
0
:
0
.0
"
,
desc
);
AssertionUtil
.
assertEnds
(
"Feature
29: 29
.0\n"
+
"..."
,
desc
);
desc
=
tryGenerateShortDescription
(
model
,
0
,
1
,
4
);
assertEquals
(
"Feature4: <b>4.0</b>\n"
+
"\n"
+
"Feature0: 0.0\n"
+
"Feature1: 1.0\n"
+
"Feature2: 2.0\n"
+
"Feature3: 3.0\n"
+
"Feature5: 5.0\n"
+
"Feature6: 6.0\n"
+
"..."
,
desc
);
AssertionUtil
.
assertStarts
(
"Feature4: <b>4.0</b>"
,
desc
);
AssertionUtil
.
assertEnds
(
"Feature29: 29.0\n"
+
"..."
,
desc
);
}
@Test
...
...
@@ -151,7 +150,7 @@ public class WellTooltipGeneratorTest extends AssertJUnit
// 10 features for well A2
private
static
FeatureVectorDataset
createLargeFeatureVectorDataset
()
{
int
size
=
1
0
;
int
size
=
4
0
;
List
<
String
>
featureLabels
=
new
ArrayList
<
String
>(
size
);
float
[]
featureValues
=
new
float
[
size
];
for
(
int
i
=
0
;
i
<
featureValues
.
length
;
i
++)
...
...
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