@Test public void testGetRelationShips() throws Exception { final ExtractText processor = new ExtractText(); final TestRunner testRunner = TestRunners.newTestRunner(processor); testRunner.enqueue("foo".getBytes("UTF-8")); testRunner.run(); Set<Relationship> relationships = processor.getRelationships(); assertTrue(relationships.contains(ExtractText.REL_MATCH)); assertTrue(relationships.contains(ExtractText.REL_NO_MATCH)); assertEquals(2, relationships.size()); }
@Override public Set<Relationship> getRelationships() { return relationships; }
ExtractText extends AbstractProcessor { @Override public Set<Relationship> getRelationships() { return relationships; } }
ExtractText extends AbstractProcessor { @Override public Set<Relationship> getRelationships() { return relationships; }  }
ExtractText extends AbstractProcessor { @Override public Set<Relationship> getRelationships() { return relationships; }  @Override Set<Relationship> getRelationships(); @OnScheduled final void onScheduled(final ProcessContext context); @OnStopped void onStopped(); @Override void onTrigger(final ProcessContext context, final ProcessSession session); }
ExtractText extends AbstractProcessor { @Override public Set<Relationship> getRelationships() { return relationships; }  @Override Set<Relationship> getRelationships(); @OnScheduled final void onScheduled(final ProcessContext context); @OnStopped void onStopped(); @Override void onTrigger(final ProcessContext context, final ProcessSession session); static final PropertyDescriptor CHARACTER_SET; static final PropertyDescriptor MAX_BUFFER_SIZE; static final PropertyDescriptor MAX_CAPTURE_GROUP_LENGTH; static final PropertyDescriptor CANON_EQ; static final PropertyDescriptor CASE_INSENSITIVE; static final PropertyDescriptor COMMENTS; static final PropertyDescriptor DOTALL; static final PropertyDescriptor LITERAL; static final PropertyDescriptor MULTILINE; static final PropertyDescriptor UNICODE_CASE; static final PropertyDescriptor UNICODE_CHARACTER_CLASS; static final PropertyDescriptor UNIX_LINES; static final PropertyDescriptor INCLUDE_CAPTURE_GROUP_ZERO; static final PropertyDescriptor ENABLE_REPEATING_CAPTURE_GROUP; static final Relationship REL_MATCH; static final Relationship REL_NO_MATCH; }