From 97bfb3f4fc154a7e336ee31d31a353dcdddd50e5 Mon Sep 17 00:00:00 2001 From: alexradzin Date: Thu, 2 Nov 2023 22:02:52 +0200 Subject: [PATCH] code smell --- .../jdbc/connection/settings/FireboltPropertiesTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/firebolt/jdbc/connection/settings/FireboltPropertiesTest.java b/src/test/java/com/firebolt/jdbc/connection/settings/FireboltPropertiesTest.java index a9f81d2fe..9d237b00e 100644 --- a/src/test/java/com/firebolt/jdbc/connection/settings/FireboltPropertiesTest.java +++ b/src/test/java/com/firebolt/jdbc/connection/settings/FireboltPropertiesTest.java @@ -84,7 +84,8 @@ void shouldUsePathParamAsDb() { void invalidDatabase(String db) { Properties properties = new Properties(); properties.put("path", db); - assertThrows(IllegalArgumentException.class, () -> FireboltProperties.of(properties).getDatabase()); + FireboltProperties fbProps = FireboltProperties.of(properties); + assertThrows(IllegalArgumentException.class, () -> fbProps.getDatabase()); } @Test