Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
4a3cf9b2
Commit
4a3cf9b2
authored
Oct 28, 2016
by
Piotr Gawron
Browse files
coverage tests for uniprot connector
parent
c613ea89
Changes
1
Hide whitespace changes
Inline
Side-by-side
annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/UniprotAnnotatorTest.java
View file @
4a3cf9b2
...
...
@@ -2,6 +2,7 @@ package lcsb.mapviewer.annotation.services.annotators;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
Assert
.
assertNull
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
static
org
.
junit
.
Assert
.
fail
;
import
static
org
.
mockito
.
Matchers
.
anyString
;
...
...
@@ -31,7 +32,6 @@ public class UniprotAnnotatorTest extends AnnotationTestFunctions {
@Autowired
UniprotAnnotator
uniprotAnnotator
;
@Before
public
void
setUp
()
throws
Exception
{
}
...
...
@@ -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
public
void
testAnnotate2
()
throws
Exception
{
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment