Skip to content

Commit

Permalink
Replace usages of deprecated RuntimeSQLException
Browse files Browse the repository at this point in the history
  • Loading branch information
sleberknight committed Aug 4, 2024
1 parent 3602ac2 commit 24ca522
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import org.junit.jupiter.params.provider.ValueSource;
import org.kiwiproject.dropwizard.error.dao.ApplicationErrorJdbc.ApplicationErrorJdbcException;
import org.kiwiproject.dropwizard.error.model.DataStoreType;
import org.kiwiproject.test.jdbc.RuntimeSQLException;
import org.kiwiproject.jdbc.UncheckedSQLException;
import org.kiwiproject.test.junit.jupiter.ClearBoxTest;

import java.sql.Connection;
Expand Down Expand Up @@ -71,7 +71,7 @@ void shouldCreateInMemoryDatabase() {
nextOrThrow(rs);
assertThat(rs.getInt(1)).isZero();
} catch (SQLException e) {
throw new RuntimeSQLException(e);
throw new UncheckedSQLException(e);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.kiwiproject.dropwizard.error.dao.ApplicationErrorJdbc;
import org.kiwiproject.dropwizard.error.model.ApplicationError;
import org.kiwiproject.dropwizard.error.test.junit.jupiter.ApplicationErrorExtension;
import org.kiwiproject.test.jdbc.RuntimeSQLException;
import org.kiwiproject.jdbc.UncheckedSQLException;
import org.kiwiproject.test.jdbc.SimpleSingleConnectionDataSource;

import java.sql.Connection;
Expand Down Expand Up @@ -83,7 +83,7 @@ protected long insertApplicationError(ApplicationError error) {
return generatedKeys.getLong(1);
}
} catch (SQLException e) {
throw new RuntimeSQLException(e);
throw new UncheckedSQLException(e);
}
}

Expand All @@ -97,7 +97,7 @@ protected long countApplicationErrors() {
return rs.getLong(1);

} catch (SQLException e) {
throw new RuntimeSQLException(e);
throw new UncheckedSQLException(e);
}
}

Expand All @@ -113,7 +113,7 @@ protected ApplicationError getErrorOrThrow(long id) {
return ApplicationErrorJdbc.mapFrom(rs);
}
} catch (SQLException e) {
throw new RuntimeSQLException(e);
throw new UncheckedSQLException(e);
}
}

Expand Down

0 comments on commit 24ca522

Please sign in to comment.