BaleenTextAwareAnnotator extends BaleenAnnotator { @Override protected void doProcess(final JCas jCas) throws AnalysisEngineProcessException { final List<TextBlock> blocks = getTextBlocks(jCas); for (final TextBlock b : blocks) { doProcessTextBlock(b); } }   static final String TEXT_BLOCK_SEPARATOR; static final String PARAM_WHOLE_DOCUMENT; }
@Test public void testProcessTextBlockIsCalledForEntireDoc() throws AnalysisEngineProcessException { final FakeTextAwareAnnotator annotator = createAnnotator(false); annotator.doProcess(noTextJCas); assertEquals(1, annotator.getCount()); }
@Test public void testProcessTextBlockIsCalledForTextBlocks() throws AnalysisEngineProcessException { final FakeTextAwareAnnotator annotator = createAnnotator(false); annotator.doProcess(textJCas); assertEquals(2, annotator.getCount()); }