Class ContentTestHelper

java.lang.Object
com.flowable.content.engine.test.ContentTestHelper

public abstract class ContentTestHelper
extends java.lang.Object
Author:
Tijs Rademakers, Joram Barrez
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String EMPTY_LINE  
  • Constructor Summary

    Constructors 
    Constructor Description
    ContentTestHelper()  
  • Method Summary

    Modifier and Type Method Description
    static void assertAndEnsureCleanDb​(ContentEngine contentEngine)
    Each test is assumed to clean up all DB content it entered.
    static void closeContentEngines()  
    static ContentEngine getContentEngine​(java.lang.String configurationResource)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getContentEngine

      public static ContentEngine getContentEngine​(java.lang.String configurationResource)
    • closeContentEngines

      public static void closeContentEngines()
    • assertAndEnsureCleanDb

      public static void assertAndEnsureCleanDb​(ContentEngine contentEngine)
      Each test is assumed to clean up all DB content it entered. After a test method executed, this method scans all tables to see if the DB is completely clean. It throws AssertionFailed in case the DB is not clean. If the DB is not clean, it is cleaned by performing a create a drop.