Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
4de904f1
Commit
4de904f1
authored
6 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
test parameters are assigned via test framework
parent
cefe0850
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!595
Resolve "Small molecules annotators to be rearranged"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/ElementAnnotatorImplementationsTest.java
+9
-11
9 additions, 11 deletions
...vices/annotators/ElementAnnotatorImplementationsTest.java
with
9 additions
and
11 deletions
annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/ElementAnnotatorImplementationsTest.java
+
9
−
11
View file @
4de904f1
...
...
@@ -12,6 +12,7 @@ import org.apache.log4j.Logger;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.Parameterized
;
import
org.junit.runners.Parameterized.Parameter
;
import
org.junit.runners.Parameterized.Parameters
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
...
...
@@ -34,20 +35,17 @@ import lcsb.mapviewer.persist.DbUtils;
public
class
ElementAnnotatorImplementationsTest
extends
AnnotationTestFunctions
{
@SuppressWarnings
(
"unused"
)
private
static
Logger
logger
=
Logger
.
getLogger
(
ElementAnnotatorImplementationsTest
.
class
);
private
Class
<?
extends
ElementAnnotator
>
elementAnnotator
;
private
MiriamData
sourceIdentifier
;
private
BioEntity
bioEntity
;
@Parameter
public
Class
<?
extends
ElementAnnotator
>
elementAnnotator
;
@Parameter
(
1
)
public
MiriamData
sourceIdentifier
;
@Parameter
(
2
)
public
BioEntity
bioEntity
;
static
ApplicationContext
applicationContext
;
public
ElementAnnotatorImplementationsTest
(
Class
<?
extends
ElementAnnotator
>
annotator
,
MiriamData
sourceIdentifier
,
BioEntity
entity
)
{
this
.
elementAnnotator
=
annotator
;
this
.
sourceIdentifier
=
sourceIdentifier
;
this
.
bioEntity
=
entity
;
}
@Parameters
(
name
=
"{index} : {0}"
)
@Parameters
(
name
=
"{0}"
)
public
static
Collection
<
Object
[]>
data
()
throws
IOException
{
List
<
Object
[]>
result
=
new
ArrayList
<>();
applicationContext
=
new
AnnotationConfigApplicationContext
(
...
...
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