Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Devrim Gunyel
core
Commits
ef448653
Commit
ef448653
authored
Oct 25, 2019
by
Piotr Gawron
Browse files
tests fixed after change in logging
parent
ade63912
Changes
2
Hide whitespace changes
Inline
Side-by-side
annotation/src/test/java/lcsb/mapviewer/annotation/services/MissingAnnotationTest.java
View file @
ef448653
...
...
@@ -23,7 +23,7 @@ public class MissingAnnotationTest {
@Test
public
void
test
()
{
MissingAnnotation
annotation
=
new
MissingAnnotation
(
new
GenericProtein
(
"id"
));
assertTrue
(
annotation
.
toString
().
contains
(
"
m
iss
es
annotations"
));
assertTrue
(
annotation
.
toString
().
contains
(
"
M
iss
ing
annotations"
));
}
}
annotation/src/test/java/lcsb/mapviewer/annotation/services/MissingRequiredAnnotationsTest.java
View file @
ef448653
...
...
@@ -36,14 +36,10 @@ public class MissingRequiredAnnotationsTest {
@Test
public
void
testGetMessage
()
{
try
{
List
<
MiriamType
>
list
=
new
ArrayList
<>();
list
.
add
(
MiriamType
.
CAS
);
MissingRequiredAnnotations
mre
=
new
MissingRequiredAnnotations
(
new
GenericProtein
(
"id"
),
list
);
assertTrue
(
mre
.
toString
().
contains
(
"misses one of the following annotations"
));
}
catch
(
InvalidArgumentException
e
)
{
assertTrue
(
e
.
getMessage
().
contains
(
"List of improper annotations cannot be null"
));
}
List
<
MiriamType
>
list
=
new
ArrayList
<>();
list
.
add
(
MiriamType
.
CAS
);
MissingRequiredAnnotations
mre
=
new
MissingRequiredAnnotations
(
new
GenericProtein
(
"id"
),
list
);
assertTrue
(
mre
.
toString
().
contains
(
"Missing one of the required annotations"
));
}
}
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