From e7b5320ef6d53f9e2a989d7e05aed25bc7fe4da2 Mon Sep 17 00:00:00 2001 From: Vaidotas Valuckas Date: Thu, 2 Nov 2023 12:42:37 +0200 Subject: [PATCH] Fix some IDE warnings --- .../dbtest/lifecycle/FieldExtensionLifecycleTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postgresql/src/test/java/io/github/rieske/dbtest/lifecycle/FieldExtensionLifecycleTests.java b/postgresql/src/test/java/io/github/rieske/dbtest/lifecycle/FieldExtensionLifecycleTests.java index 32c62d9..d2fe5bf 100644 --- a/postgresql/src/test/java/io/github/rieske/dbtest/lifecycle/FieldExtensionLifecycleTests.java +++ b/postgresql/src/test/java/io/github/rieske/dbtest/lifecycle/FieldExtensionLifecycleTests.java @@ -15,7 +15,7 @@ class FieldExtensionLifecycleTests { @Nested class PerMethodTests { @RegisterExtension - private final DatabaseTestExtension database = + final DatabaseTestExtension database = new FlywayPostgreSQLFastTestExtension(PostgreSQLTest.postgresVersion(), DatabaseTestExtension.Mode.DATABASE_PER_TEST_METHOD); private final TestRepository repository = new TestRepository(database.getDataSource()); @@ -31,7 +31,7 @@ void interactWithDatabase() { @Nested class PerClassTests { @RegisterExtension - private final DatabaseTestExtension database = + final DatabaseTestExtension database = new FlywayPostgreSQLFastTestExtension(PostgreSQLTest.postgresVersion(), DatabaseTestExtension.Mode.DATABASE_PER_TEST_CLASS); private final EarlyDatabaseExtensionUser exceptionSupplier = new EarlyDatabaseExtensionUser(database); @@ -58,7 +58,7 @@ class EarlyDatabaseExtensionUser { @Nested class PerExecutionTests { @RegisterExtension - private final DatabaseTestExtension database = + final DatabaseTestExtension database = new FlywayPostgreSQLFastTestExtension(PostgreSQLTest.postgresVersion(), DatabaseTestExtension.Mode.DATABASE_PER_EXECUTION); private final TestRepository repository = new TestRepository(database.getDataSource());