2021-02-01
Cover now mocks inputs (arguments and settable class fields) if it
@Test
public void testGetAnnotationProperty() {
// Arrange
IdentifiedAnnotation identifiedAnnotation = mock(IdentifiedAnnotation.class);
when(identifiedAnnotation.getBegin()).thenReturn(1);
// Act and Assert
assertEquals("1", CTAKESUtils.getAnnotationProperty(identifiedAnnotation,
CTAKESAnnotationProperty.BEGIN));
verify(identifiedAnnotation).getBegin();
}Feedback
How do I automatically maintain all of these tests?

Enhancements
Resolved Issues
Known Issues
Last updated
Was this helpful?

