m.finish(); expectFinished(m.annotationCursor(40, 60, strs())); expectFinished(m.annotationCursor(40, 60, strs("a", "b"))); expectFinished(m.annotationCursor(0, 100, strs())); expectFinished(m.annotationCursor(0, 100, strs("a", "b"))); m.finish(); expectFinished(m.annotationCursor(40, 60, strs())); expectFinished(m.annotationCursor(40, 60, strs("a"))); expectFinished(m.annotationCursor(40, 60, strs("a", "b"))); m.finish(); expectFinished(m.annotationCursor(40, 60, strs())); expectFinished(m.annotationCursor(40, 60, strs("a"))); expectFinished(m.annotationCursor(40, 60, strs("a", "b"))); expectFinished(m.annotationCursor(40, 60, strs("a", "b", "c"))); m.finish(); expectFinished(m.annotationCursor(40, 60, strs())); expectFinished(m.annotationCursor(40, 60, strs("a"))); expectFinished(m.annotationCursor(40, 60, strs("a", "b"))); expectFinished(m.annotationCursor(40, 60, strs("a", "b", "c")));
m.finish(); expectFinished(m.annotationCursor(40, 60, strs())); expectFinished(m.annotationCursor(40, 60, strs("a", "b"))); expectFinished(m.annotationCursor(0, 100, strs())); expectFinished(m.annotationCursor(0, 100, strs("a", "b"))); m.finish(); expectFinished(m.annotationCursor(40, 60, strs())); expectFinished(m.annotationCursor(40, 60, strs("a"))); expectFinished(m.annotationCursor(40, 60, strs("a", "b"))); m.finish(); expectFinished(m.annotationCursor(40, 60, strs())); expectFinished(m.annotationCursor(40, 60, strs("a"))); expectFinished(m.annotationCursor(40, 60, strs("a", "b"))); expectFinished(m.annotationCursor(40, 60, strs("a", "b", "c"))); m.finish(); expectFinished(m.annotationCursor(40, 60, strs())); expectFinished(m.annotationCursor(40, 60, strs("a"))); expectFinished(m.annotationCursor(40, 60, strs("a", "b"))); expectFinished(m.annotationCursor(40, 60, strs("a", "b", "c")));
AnnotationCursor cx = m.annotationCursor(i, 100 - i, strs("x", "y", "z")); expectFinished(cx); expectFinished(c1); checkAdvance(c2, 50, "b"); checkAdvance(c2, 60, "a"); expectFinished(c2); checkAdvance(c3, 50, "b"); checkAdvance(c3, 60, "a"); expectFinished(c3); expectFinished(c4); checkAdvance(ca, 50, "b"); checkAdvance(ca, 60, "a"); expectFinished(ca); expectFinished(c5); expectFinished(c5); expectFinished(c5);
AnnotationCursor cx = m.annotationCursor(i, 100 - i, strs("x", "y", "z")); expectFinished(cx); expectFinished(c1); checkAdvance(c2, 50, "b"); checkAdvance(c2, 60, "a"); expectFinished(c2); checkAdvance(c3, 50, "b"); checkAdvance(c3, 60, "a"); expectFinished(c3); expectFinished(c4); checkAdvance(ca, 50, "b"); checkAdvance(ca, 60, "a"); expectFinished(ca); expectFinished(c5); expectFinished(c5); expectFinished(c5);
public void testEmptySet() { RawAnnotationSet<Object> m = getNewSet(); m.begin(); m.insert(1); m.startAnnotation("a", "1"); m.insert(1); m.endAnnotation("a"); m.finish(); expectFinished(m.annotationCursor(0, m.size(), strs())); } }
public void testEmptySet() { RawAnnotationSet<Object> m = getNewSet(); m.begin(); m.insert(1); m.startAnnotation("a", "1"); m.insert(1); m.endAnnotation("a"); m.finish(); expectFinished(m.annotationCursor(0, m.size(), strs())); } }