Skip to content

Commit

Permalink
#221: aspects 0.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 9, 2023
1 parent 28c37b2 commit 5ad79b9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<dependency>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-aspects</artifactId>
<version>0.24.1</version>
<version>0.25.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/jcabi/jdbc/JdbcSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ private void disconnect() throws SQLException {

/**
* Configure the statement.
*
*
* @param stmt Statement
* @throws SQLException If fails
*/
Expand Down
3 changes: 1 addition & 2 deletions src/test/java/com/jcabi/jdbc/JdbcSessionITCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
*/
package com.jcabi.jdbc;

import com.jcabi.aspects.Tv;
import com.jolbox.bonecp.BoneCPDataSource;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
Expand Down Expand Up @@ -213,7 +212,7 @@ private DataSource source() {
src.setJdbcUrl(this.container.getJdbcUrl());
src.setUser(this.container.getUsername());
src.setPassword(this.container.getPassword());
src.setPartitionCount(Tv.THREE);
src.setPartitionCount(3);
src.setMaxConnectionsPerPartition(1);
src.setMinConnectionsPerPartition(1);
src.setAcquireIncrement(1);
Expand Down
5 changes: 2 additions & 3 deletions src/test/java/com/jcabi/jdbc/JdbcSessionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
package com.jcabi.jdbc;

import com.jcabi.aspects.Parallel;
import com.jcabi.aspects.Tv;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
Expand Down Expand Up @@ -143,7 +142,7 @@ void releasesConnectionsFromThePool() throws Exception {
new JdbcSession(source)
.sql("CREATE TABLE foo776 (name VARCHAR(30))")
.execute();
for (int idx = 0; idx < Tv.TEN; ++idx) {
for (int idx = 0; idx < 10; ++idx) {
new JdbcSession(source)
.sql("INSERT INTO foo776 VALUES ('hello, world!')")
.execute();
Expand Down Expand Up @@ -194,7 +193,7 @@ void rollbacksTransaction() throws Exception {
* @throws Exception If there is some problem inside
* @since 0.10.2
*/
@Parallel(threads = Tv.FIFTY)
@Parallel(threads = 50)
private void insert(final DataSource src, final String table)
throws Exception {
new JdbcSession(src)
Expand Down

0 comments on commit 5ad79b9

Please sign in to comment.