Class StringExtractorTestBase

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class StringExtractorTestBase
extends ContentExtractorTestBase
  • Constructor Details

    • StringExtractorTestBase

      public StringExtractorTestBase()
  • Method Details

    • getValidTestData

      protected abstract String[] getValidTestData()
      Returns an array of valid test data pairs. The pairs consist of text to be processed followed by
      Returns:
      the test data
    • makeData

      protected abstract Collection<StringExtractorTestBase.TestData> makeData​(String text, String uri) throws Exception
      Throws:
      Exception
    • testExtraction

      public void testExtraction() throws Exception
      Tests each text/URI pair in the test data array.
      Throws:
      Exception - just in case