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
458cd1aa
Commit
458cd1aa
authored
12 years ago
by
gpawel
Browse files
Options
Downloads
Patches
Plain Diff
fixing broken test
SVN: 28478
parent
8c33b219
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/client/web/server/resultset/ScriptProviderTest.java
+11
-13
11 additions, 13 deletions
...neric/client/web/server/resultset/ScriptProviderTest.java
with
11 additions
and
13 deletions
openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/client/web/server/resultset/ScriptProviderTest.java
+
11
−
13
View file @
458cd1aa
...
...
@@ -65,15 +65,16 @@ public class ScriptProviderTest extends AbstractProviderTest
getHeaderEntityKinds
(
tableModel
).
toString
());
List
<
TableModelRowWithObject
<
Script
>>
rows
=
tableModel
.
getRows
();
assertSame
(
s1
,
rows
.
get
(
0
).
getObjectOrNull
());
assertEquals
(
"[my-EXPERIMENT-script, A script for EXPERIMENT, "
+
"do something with EXPERIMENT, Experiment, Dynamic Property Evaluator, "
+
"Jython Script Plugin, Einstein, Albert, Thu Jan 01 01:00:04 CET 1970, no]"
,
rows
.
get
(
0
).
getValues
().
toString
());
assertEquals
(
"[my-EXPERIMENT-script, A script for EXPERIMENT, "
+
"do something with EXPERIMENT, Experiment, Dynamic Property Evaluator, Jython Script Plugin, "
+
"Einstein, Albert, Thu Jan 01 01:00:04 CET 1970, yes]"
,
rows
.
get
(
0
)
.
getValues
().
toString
());
assertSame
(
s2
,
rows
.
get
(
1
).
getObjectOrNull
());
assertEquals
(
"[my-null-script, A script for null, do something with null, All, "
+
"Dynamic Property Evaluator, Jython Script Plugin
, "
+
"
Einstein, Albert, Thu Jan 01 01:00:04 CET 1970,
no]"
,
rows
.
get
(
1
).
getValues
()
.
toString
());
assertEquals
(
"[my-null-script, A script for null, do something with null, All
, "
+
"Dynamic Property Evaluator, Jython Script Plugin,
Einstein, Albert, Thu Jan 01 01:00:04 CET 1970,
yes]"
,
rows
.
get
(
1
).
getValues
()
.
toString
());
assertEquals
(
2
,
rows
.
size
());
context
.
assertIsSatisfied
();
}
...
...
@@ -83,11 +84,8 @@ public class ScriptProviderTest extends AbstractProviderTest
Script
script
=
new
Script
();
script
.
setName
(
"my-"
+
kind
+
"-script"
);
script
.
setDescription
(
"A script for "
+
kind
);
if
(
kind
!=
null
)
{
script
.
setEntityKind
(
new
EntityKind
[]
{
kind
});
}
script
.
setEntityKind
(
kind
==
null
?
null
:
new
EntityKind
[]
{
kind
});
script
.
setScript
(
"do something with "
+
kind
);
script
.
setScriptType
(
ScriptType
.
DYNAMIC_PROPERTY
);
script
.
setPluginType
(
PluginType
.
JYTHON
);
...
...
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