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
4a3cf9b2
Commit
4a3cf9b2
authored
8 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
coverage tests for uniprot connector
parent
c613ea89
No related branches found
No related tags found
1 merge request
!4
Additional unit tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/UniprotAnnotatorTest.java
+23
-1
23 additions, 1 deletion
.../annotation/services/annotators/UniprotAnnotatorTest.java
with
23 additions
and
1 deletion
annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/UniprotAnnotatorTest.java
+
23
−
1
View file @
4a3cf9b2
...
@@ -2,6 +2,7 @@ package lcsb.mapviewer.annotation.services.annotators;
...
@@ -2,6 +2,7 @@ package lcsb.mapviewer.annotation.services.annotators;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
Assert
.
assertNull
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
static
org
.
junit
.
Assert
.
fail
;
import
static
org
.
junit
.
Assert
.
fail
;
import
static
org
.
mockito
.
Matchers
.
anyString
;
import
static
org
.
mockito
.
Matchers
.
anyString
;
...
@@ -31,7 +32,6 @@ public class UniprotAnnotatorTest extends AnnotationTestFunctions {
...
@@ -31,7 +32,6 @@ public class UniprotAnnotatorTest extends AnnotationTestFunctions {
@Autowired
@Autowired
UniprotAnnotator
uniprotAnnotator
;
UniprotAnnotator
uniprotAnnotator
;
@Before
@Before
public
void
setUp
()
throws
Exception
{
public
void
setUp
()
throws
Exception
{
}
}
...
@@ -87,6 +87,28 @@ public class UniprotAnnotatorTest extends AnnotationTestFunctions {
...
@@ -87,6 +87,28 @@ public class UniprotAnnotatorTest extends AnnotationTestFunctions {
}
}
@Test
public
void
testInvalidUniprotToHgnc
()
throws
Exception
{
try
{
assertNull
(
uniprotAnnotator
.
uniProtToHgnc
(
null
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
e
;
}
}
@Test
public
void
testInvalidUniprotToHgnc2
()
throws
Exception
{
try
{
uniprotAnnotator
.
uniProtToHgnc
(
new
MiriamData
(
MiriamType
.
WIKIPEDIA
,
"bla"
));
fail
(
"Exception expected"
);
}
catch
(
InvalidArgumentException
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
e
;
}
}
@Test
@Test
public
void
testAnnotate2
()
throws
Exception
{
public
void
testAnnotate2
()
throws
Exception
{
try
{
try
{
...
...
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