File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
modules/postgresql/src/test/java/org/testcontainers/postgresql Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 77
88import static org .assertj .core .api .Assertions .assertThat ;
99
10- public class PostgreSQLR2DBCDatabaseContainerTest extends AbstractR2DBCDatabaseContainerTest <PostgreSQLContainer > {
10+ class PostgreSQLR2DBCDatabaseContainerTest extends AbstractR2DBCDatabaseContainerTest <PostgreSQLContainer > {
1111
1212 @ Override
1313 protected PostgreSQLContainer createContainer () {
@@ -59,10 +59,11 @@ void testGetR2dbcUrl() {
5959 assertThat (r2dbcUrlStatic ).isEqualTo (expectedUrl );
6060
6161 // Test instance method
62- PostgreSQLR2DBCDatabaseContainer r2dbcContainer = new PostgreSQLR2DBCDatabaseContainer (container );
62+ try ( PostgreSQLR2DBCDatabaseContainer r2dbcContainer = new PostgreSQLR2DBCDatabaseContainer (container )) {
6363 String r2dbcUrlInstance = r2dbcContainer .getR2dbcUrl ();
6464
6565 assertThat (r2dbcUrlInstance ).isEqualTo (r2dbcUrlStatic );
66+ }
6667 }
6768 }
6869}
You can’t perform that action at this time.
0 commit comments