Class H2Reset


  • public class H2Reset
    extends java.lang.Object
    Enables reseting the H2 database for testing.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      H2Reset​(javax.sql.DataSource dataSource, org.flywaydb.core.Flyway flyway)
      Instantiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clean()
      Cleans for testing.
      void reset()
      Resets for testing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • H2Reset

        public H2Reset​(javax.sql.DataSource dataSource,
                       org.flywaydb.core.Flyway flyway)
        Instantiate.
        Parameters:
        dataSource - DataSource.
        flyway - Flyway.
    • Method Detail

      • clean

        public void clean()
        Cleans for testing.
      • reset

        public void reset()
        Resets for testing.