Skip to content

Commit

Permalink
Prepare for JdbcCustomization tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kagkarlsson committed Mar 11, 2024
1 parent c715c37 commit c62e580
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public Optional<JdbcCustomization> getJdbcCustomization() {
return Optional.empty();
}

public Optional<JdbcCustomization> getJdbcCustomizationForUTCTimestampTest() {
return Optional.empty();
}

public abstract boolean commitWhenAutocommitDisabled();

@BeforeEach
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.github.kagkarlsson.scheduler.compatibility;

import com.github.kagkarlsson.scheduler.EmbeddedPostgresqlExtension;
import com.github.kagkarlsson.scheduler.jdbc.JdbcCustomization;
import com.github.kagkarlsson.scheduler.jdbc.PostgreSqlJdbcCustomization;
import java.util.Optional;
import javax.sql.DataSource;
import org.junit.jupiter.api.extension.RegisterExtension;

Expand Down Expand Up @@ -33,4 +36,9 @@ public DataSource getDataSource() {
public boolean commitWhenAutocommitDisabled() {
return false;
}

@Override
public Optional<JdbcCustomization> getJdbcCustomizationForUTCTimestampTest() {
return Optional.of(new PostgreSqlJdbcCustomization(false, true));
}
}

0 comments on commit c62e580

Please sign in to comment.