Skip to content

Commit

Permalink
Small fixes for Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyants committed May 18, 2024
1 parent c32286b commit 08a8fee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class TestOutparameterCursor {
});

@Test
public void someTest() throws Exception {
public void someTest() {
RowMapper<User> userMapper = ConstructorMapper.of(User.class);

try (Call call = oracleExtension.getSharedHandle().createCall("call get_user_by_name(:a,:b)")
Expand Down
4 changes: 2 additions & 2 deletions oracle12/src/test/java/org/jdbi/v3/oracle12/TestScript.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void testStatementParsing() {
.getResource("scripts/oracle-issue-2021.sql");
try (Script script = new Script(h, sql)) {
List<String> statements = script.getStatements();
assertThat(statements.size()).isEqualTo(3);
assertThat(statements).hasSize(3);

for (String statement : statements) {
assertThat(statement).doesNotEndWithIgnoringCase("end"); // end needs to be trailed by semicolon
Expand Down Expand Up @@ -85,7 +85,7 @@ void testIssue2021() {

try (Query q = h.createQuery("SELECT * FROM EXAMPLE ORDER BY ID")) {
List<Example> result = q.map(new ExampleMapper()).list();
assertThat(result.size()).isEqualTo(10);
assertThat(result).hasSize(10);

for (int i = 0; i < result.size(); i++) {
Example example = result.get(i);
Expand Down

0 comments on commit 08a8fee

Please sign in to comment.