|
4 | 4 | */ |
5 | 5 | package org.hibernate.test.agroal; |
6 | 6 |
|
| 7 | +import jakarta.persistence.Entity; |
| 8 | +import jakarta.persistence.Id; |
| 9 | + |
7 | 10 | import org.hibernate.test.agroal.util.PreparedStatementSpyConnectionProvider; |
8 | 11 | import org.hibernate.testing.orm.junit.DomainModel; |
9 | 12 | import org.hibernate.testing.orm.junit.ServiceRegistry; |
|
12 | 15 | import org.hibernate.testing.orm.junit.Setting; |
13 | 16 | import org.hibernate.testing.orm.junit.SettingProvider; |
14 | 17 |
|
15 | | -import jakarta.persistence.Entity; |
16 | | -import jakarta.persistence.Id; |
17 | 18 | import org.junit.jupiter.api.Test; |
18 | 19 |
|
19 | 20 | import java.sql.Connection; |
|
23 | 24 | import static org.hibernate.cfg.JdbcSettings.AUTOCOMMIT; |
24 | 25 | import static org.hibernate.cfg.JdbcSettings.CONNECTION_PROVIDER; |
25 | 26 | import static org.hibernate.cfg.JdbcSettings.CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT; |
26 | | -import static org.junit.Assert.assertEquals; |
27 | | -import static org.junit.Assert.assertTrue; |
| 27 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
| 28 | +import static org.junit.jupiter.api.Assertions.assertTrue; |
28 | 29 |
|
29 | 30 | /** |
30 | 31 | * @author Vlad Mihalcea |
@@ -75,7 +76,7 @@ private void verifyConnections() { |
75 | 76 | Connection.class.getMethod( "setAutoCommit", boolean.class ), |
76 | 77 | connections.get( 0 ) |
77 | 78 | ); |
78 | | - assertTrue( "setAutoCommit should never be called", setAutoCommitCalls.isEmpty() ); |
| 79 | + assertTrue( setAutoCommitCalls.isEmpty(), "setAutoCommit should never be called" ); |
79 | 80 | } |
80 | 81 | catch (NoSuchMethodException e) { |
81 | 82 | throw new RuntimeException( e ); |
|
0 commit comments