Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
ce4d4774
Commit
ce4d4774
authored
Sep 17, 2021
by
Piotr Gawron
Browse files
fix unit tests
parent
99adff4d
Pipeline
#47151
failed with stage
in 7 minutes and 31 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/PdbAnnotator.java
View file @
ce4d4774
...
...
@@ -217,7 +217,7 @@ public class PdbAnnotator extends ElementAnnotator implements IExternalService {
}
}
}
}
catch
(
IO
Exception
e1
)
{
}
catch
(
Exception
e1
)
{
logger
.
error
(
e1
,
e1
);
}
...
...
annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/ElementAnnotatorImplementationsTest.java
View file @
ce4d4774
...
...
@@ -39,19 +39,17 @@ import lcsb.mapviewer.persist.DbUtils;
public
class
ElementAnnotatorImplementationsTest
extends
AnnotationTestFunctions
{
private
static
AnnotationConfigApplicationContext
applicationContext
;
@SuppressWarnings
(
"unused"
)
@Parameter
p
rivate
String
testName
;
p
ublic
String
testName
;
@Parameter
(
1
)
p
rivate
Class
<?
extends
ElementAnnotator
>
elementAnnotator
;
p
ublic
Class
<?
extends
ElementAnnotator
>
elementAnnotator
;
@Parameter
(
2
)
p
rivate
MiriamData
sourceIdentifier
;
p
ublic
MiriamData
sourceIdentifier
;
@Parameter
(
3
)
p
rivate
BioEntity
bioEntity
;
p
ublic
BioEntity
bioEntity
;
@AfterClass
public
static
void
shutDown
()
{
...
...
annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/PdbAnnotatorTest.java
View file @
ce4d4774
...
...
@@ -157,7 +157,7 @@ public class PdbAnnotatorTest extends AnnotationTestFunctions {
WebPageDownloader
downloader
=
pdbAnnotator
.
getWebPageDownloader
();
try
{
WebPageDownloader
mockDownloader
=
Mockito
.
mock
(
WebPageDownloader
.
class
);
when
(
mockDownloader
.
getFromNetwork
(
anyString
(),
anyString
(),
anyString
())).
thenReturn
(
""
);
when
(
mockDownloader
.
getFromNetwork
(
anyString
(),
anyString
(),
nullable
(
String
.
class
))).
thenThrow
(
new
RuntimeException
()
);
pdbAnnotator
.
setWebPageDownloader
(
mockDownloader
);
assertEquals
(
ExternalServiceStatusType
.
DOWN
,
pdbAnnotator
.
getServiceStatus
().
getStatus
());
}
finally
{
...
...
pathvisio/src/test/java/lcsb/mapviewer/wikipathway/model/ReferenceMappingTest.java
View file @
ce4d4774
...
...
@@ -17,7 +17,7 @@ import org.junit.runners.Parameterized.Parameters;
public
class
ReferenceMappingTest
{
@Parameter
(
0
)
p
rivate
String
gpmlType
;
p
ublic
String
gpmlType
;
@Parameters
(
name
=
"{0}"
)
public
static
Collection
<
Object
[]>
data
()
throws
IOException
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment