From c80711800913c7d00d67c245aeb4f77a71f36304 Mon Sep 17 00:00:00 2001 From: Ben Manes Date: Sun, 3 Dec 2023 02:35:42 -0800 Subject: [PATCH] additional test coverage for #1347 --- .../jcache/configuration/TypesafeConfigurationTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jcache/src/test/java/com/github/benmanes/caffeine/jcache/configuration/TypesafeConfigurationTest.java b/jcache/src/test/java/com/github/benmanes/caffeine/jcache/configuration/TypesafeConfigurationTest.java index 6e27e02e24..4af6c9ccd4 100644 --- a/jcache/src/test/java/com/github/benmanes/caffeine/jcache/configuration/TypesafeConfigurationTest.java +++ b/jcache/src/test/java/com/github/benmanes/caffeine/jcache/configuration/TypesafeConfigurationTest.java @@ -119,6 +119,9 @@ public void configSource_jar_invalid() { assertThrows(ConfigException.Parse.class, () -> configSource().get(URI.create("extra-invalid.conf"), classloader)); + assertThrows(ConfigException.BadPath.class, () -> + configSource().get(URI.create("jar:invalid"), classloader)); + var explicit = getJarResource("extra-invalid.conf"); assertThrows(ConfigException.Parse.class, () -> configSource().get(explicit, classloader)); }