From 843b7cc5f4f442819a29d5bf7026d3e403385606 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 --- .circleci/config.yml | 1 + .../jcache/configuration/TypesafeConfigurationTest.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index f57aa6aced..7ee9ceb2e8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -164,3 +164,4 @@ workflows: - caffeine:lincheckTest - caffeine:isolatedTest - caffeine:junitTest + - simulator:run 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)); }