@Test public void testDestroy() throws ResourceInitializationException { FakeBaleenContentExtractor annotator = new FakeBaleenContentExtractor(); annotator.initialize( new CustomResourceSpecifier_impl(), ImmutableMap.of(Resource.PARAM_UIMA_CONTEXT, context)); annotator.destroy(); assertTrue(annotator.destroyed); }
@Override public final void destroy() { monitor.startFunction("destroy"); doDestroy(); monitor.finishFunction("destroy"); }
BaleenContentExtractor extends Resource_ImplBase implements ContentExtractor { @Override public final void destroy() { monitor.startFunction("destroy"); doDestroy(); monitor.finishFunction("destroy"); } }
BaleenContentExtractor extends Resource_ImplBase implements ContentExtractor { @Override public final void destroy() { monitor.startFunction("destroy"); doDestroy(); monitor.finishFunction("destroy"); }  }
BaleenContentExtractor extends Resource_ImplBase implements ContentExtractor { @Override public final void destroy() { monitor.startFunction("destroy"); doDestroy(); monitor.finishFunction("destroy"); }  @Override final boolean initialize(ResourceSpecifier specifier, Map<String, Object> additionalParams); abstract void doInitialize(UimaContext context, Map<String, Object> params); @Override final void processStream(InputStream stream, String source, JCas jCas); @Override final void destroy(); }
BaleenContentExtractor extends Resource_ImplBase implements ContentExtractor { @Override public final void destroy() { monitor.startFunction("destroy"); doDestroy(); monitor.finishFunction("destroy"); }  @Override final boolean initialize(ResourceSpecifier specifier, Map<String, Object> additionalParams); abstract void doInitialize(UimaContext context, Map<String, Object> params); @Override final void processStream(InputStream stream, String source, JCas jCas); @Override final void destroy(); static final String KEY_HISTORY; }