Class MySqlTaskContextTest

    • Field Detail

      • DB_HISTORY_PATH

        protected static final Path DB_HISTORY_PATH
      • hostname

        protected String hostname
      • port

        protected int port
      • username

        protected String username
      • password

        protected String password
      • serverId

        protected int serverId
      • serverName

        protected String serverName
      • databaseName

        protected String databaseName
      • context

        protected io.debezium.connector.mysql.legacy.MySqlTaskContext context
    • Constructor Detail

      • MySqlTaskContextTest

        public MySqlTaskContextTest()
    • Method Detail

      • beforeEach

        public void beforeEach()
      • afterEach

        public void afterEach()
      • shouldCreateTaskFromConfigurationWithNeverSnapshotMode

        public void shouldCreateTaskFromConfigurationWithNeverSnapshotMode()
                                                                    throws Exception
        Throws:
        Exception
      • shouldCreateTaskFromConfigurationWithWhenNeededSnapshotMode

        public void shouldCreateTaskFromConfigurationWithWhenNeededSnapshotMode()
                                                                         throws Exception
        Throws:
        Exception
      • shouldFilterInternalDmlStatementsUsingDefaultFilter

        public void shouldFilterInternalDmlStatementsUsingDefaultFilter()
                                                                 throws Exception
        Throws:
        Exception
      • shouldUseGtidSetIncludes

        public void shouldUseGtidSetIncludes()
                                      throws Exception
        Throws:
        Exception
      • shouldUseGtidSetIncludesLiteralUuids

        public void shouldUseGtidSetIncludesLiteralUuids()
                                                  throws Exception
        Throws:
        Exception
      • shouldUseGtidSetxcludesLiteralUuids

        public void shouldUseGtidSetxcludesLiteralUuids()
                                                 throws Exception
        Throws:
        Exception
      • shouldNotAllowBothGtidSetIncludesAndExcludes

        public void shouldNotAllowBothGtidSetIncludesAndExcludes()
                                                          throws Exception
        Throws:
        Exception
      • shouldFilterAndMergeGtidSet

        public void shouldFilterAndMergeGtidSet()
                                         throws Exception
        Throws:
        Exception
      • shouldMergeToFirstAvailableGtidSetPositions

        @FixFor("DBZ-923")
        public void shouldMergeToFirstAvailableGtidSetPositions()
                                                         throws Exception
        Throws:
        Exception
      • shouldComparePositionsWithDifferentFields

        public void shouldComparePositionsWithDifferentFields()
      • shouldIgnoreDatabaseHistoryProperties

        public void shouldIgnoreDatabaseHistoryProperties()
                                                   throws Exception
        Throws:
        Exception
      • historyRecord

        protected HistoryRecord historyRecord​(String serverName,
                                              String binlogFilename,
                                              int position,
                                              String gtids,
                                              int event,
                                              int row,
                                              boolean snapshot)