Commit ef448653 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

tests fixed after change in logging

parent ade63912
......@@ -23,7 +23,7 @@ public class MissingAnnotationTest {
@Test
public void test() {
MissingAnnotation annotation = new MissingAnnotation(new GenericProtein("id"));
assertTrue(annotation.toString().contains("misses annotations"));
assertTrue(annotation.toString().contains("Missing annotations"));
}
}
......@@ -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"));
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment