-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.1.1SDK
-
Fix Version/s: 3.2.0SDK
-
Component/s: Core Java Framework
-
Labels:None
Select following(x) fails to return an annotation which starts at the end position of x - or otherwise said, the test below fails.
@Test
public void thatSelectFollowingReturnsAdjacentAnnotation()
{
Annotation a1 = cas.createAnnotation(cas.getCasType(Sentence.class), 10, 20);
Annotation a2 = cas.createAnnotation(cas.getCasType(Sentence.class), 20, 30);
asList(a1, a2).forEach(cas::addFsToIndexes);
List<Annotation> selection = cas.<Annotation>select(cas.getCasType(Sentence.class))
.following(a1)
.asList();
assertThat(selection)
.containsExactly(a2);
}
- links to