Class AbstractTest

java.lang.Object
org.jumpmind.symmetric.test.AbstractTest
Direct Known Subclasses:
ConflictResolutionTest, FileSyncTest, MultiNodeGroupSharedTablesRoutingTest, NonDmlEventsTest, TransformationTest, WildcardTest

@Tag("integration") public abstract class AbstractTest extends Object
  • Field Details

    • log

      protected final org.slf4j.Logger log
  • Constructor Details

    • AbstractTest

      public AbstractTest()
  • Method Details

    • getGroupNames

      protected String[] getGroupNames()
      The registration server should always be the first group in the list
    • getRegServer

      protected SymmetricWebServer getRegServer()
    • getTables

      protected Table[] getTables(String name)
    • getProperties

      protected Properties getProperties(String name)
    • setup

      @BeforeEach public void setup()
    • test

      @Test public void test() throws Exception
      Throws:
      Exception
    • test

      protected abstract void test(ISymmetricEngine rootServer, ISymmetricEngine clientServer) throws Exception
      Throws:
      Exception
    • teardown

      public void teardown()
    • template

      protected ISqlTemplate template(SymmetricWebServer webServer)
    • template

      protected ISqlTemplate template(ISymmetricEngine engine)
    • getWebServer

      protected SymmetricWebServer getWebServer(String name)
    • getResource

      protected URL getResource(String resource)
    • loadConfigAtRegistrationServer

      protected void loadConfigAtRegistrationServer() throws Exception
      Loads configuration in the format of classname.csv at the registration server
      Throws:
      Exception
    • pull

      protected boolean pull(String name)
    • push

      protected boolean push(String name)
    • pullFiles

      protected boolean pullFiles(String name)
    • pushFiles

      protected boolean pushFiles(String name)
    • loadConfigAndRegisterNode

      protected void loadConfigAndRegisterNode(String clientGroup, String serverGroup) throws Exception
      Throws:
      Exception
    • logStartOfTest

      protected void logStartOfTest(String testName)
    • logEndOfTest

      protected void logEndOfTest(String testName)