Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
makssent committed Jan 18, 2025
1 parent c5f769c commit dabcd6c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,14 @@
class FirebirdXAConnectionWrapperTest {

private final DatabaseType databaseType = TypedSPILoader.getService(DatabaseType.class, "Firebird");

@Test
void assertWrap() throws SQLException {
XAConnection actual = DatabaseTypedSPILoader.getService(XAConnectionWrapper.class, databaseType).wrap(createXADataSource(), mockConnection());
assertThat(actual, instanceOf(FBXAConnection.class));
/*
* TODO: Fix the error with getting XAResource assertThat(actual.getXAResource(), instanceOf(FBXAConnection.class));
*/
// TODO Fix the error with getting XAResource assertThat(actual.getXAResource(), instanceOf(FBXAConnection.class));
}

private XADataSource createXADataSource() {
DataSource dataSource = DataSourceUtils.build(HikariDataSource.class, databaseType, "foo_ds");
return new DataSourceSwapper(DatabaseTypedSPILoader.getService(XADataSourceDefinition.class, databaseType)).swap(dataSource);
Expand Down

0 comments on commit dabcd6c

Please sign in to comment.