Class ContentTestHelper


  • public abstract class ContentTestHelper
    extends Object
    Author:
    Tijs Rademakers, Joram Barrez
    • Constructor Detail

      • ContentTestHelper

        public ContentTestHelper()
    • Method Detail

      • getContentEngine

        public static ContentEngine getContentEngine​(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.