diff --git a/src/test/java/org/kiwiproject/jar/KiwiJarsTest.java b/src/test/java/org/kiwiproject/jar/KiwiJarsTest.java index d61955e2..87972ad5 100644 --- a/src/test/java/org/kiwiproject/jar/KiwiJarsTest.java +++ b/src/test/java/org/kiwiproject/jar/KiwiJarsTest.java @@ -201,7 +201,16 @@ void shouldReturnEmptyMapIfValuesCouldNotBeFoundInManifest_UsingDefaultClassLoad @Test void shouldReturnEmptyMap_ForInvalidClassLoader() { ClassLoader classLoader = null; - var values = KiwiJars.readValuesFromJarManifest(classLoader, "foo"); + var values = KiwiJars.readValuesFromJarManifest(classLoader, "Main-Class"); + + assertThat(values).isEmpty(); + } + + @Test + void shouldReturnEmptyMap_WhenManifestCannotBeFound() { + var values = KiwiJars.readValuesFromJarManifest(this.getClass().getClassLoader(), + url -> false, // ensures manifest won't be found + "Main-Class"); assertThat(values).isEmpty(); }