Class TemplateTestCase

java.lang.Object
com.vladsch.flexmark.test.util.TemplateTestCase
All Implemented Interfaces:
TemplateReaderFactory

public abstract class TemplateTestCase extends Object implements TemplateReaderFactory
  • Field Details

  • Constructor Details

    • TemplateTestCase

      public TemplateTestCase()
  • Method Details

    • create

      public TemplateReader create(InputStream inputStream)
      Specified by:
      create in interface TemplateReaderFactory
    • getExpandedEntry

      public abstract void getExpandedEntry(TemplateEntry entry, StringBuilder sb)
    • processTemplate

      protected void processTemplate(String template, String expandedTemplate)
    • getTemplateResourceName

      protected abstract String getTemplateResourceName()
      Returns:
      return resource name for the spec to use for the examples of the test
    • outputTemplate

      protected boolean outputTemplate()
      Returns:
      return true if template to be dumped to stdout
    • testDumpSpec

      public void testDumpSpec() throws Exception
      Throws:
      Exception