From 33348b4d1e51a2cccdf10115594d5af1bd8940bd Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Tue, 9 Jan 2024 15:14:05 +0100 Subject: [PATCH] update test cases --- .../java/io/wcm/devops/conga/generator/util/FileUtilTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generator/src/test/java/io/wcm/devops/conga/generator/util/FileUtilTest.java b/generator/src/test/java/io/wcm/devops/conga/generator/util/FileUtilTest.java index 7b0b67c1..9996ca13 100644 --- a/generator/src/test/java/io/wcm/devops/conga/generator/util/FileUtilTest.java +++ b/generator/src/test/java/io/wcm/devops/conga/generator/util/FileUtilTest.java @@ -33,9 +33,12 @@ void testMatchesExtension() { assertTrue(FileUtil.matchesExtension(new File("test.txt"), "txt")); assertTrue(FileUtil.matchesExtension(new File("test.part2.txt"), "txt")); assertFalse(FileUtil.matchesExtension(new File("test.pdf"), "txt")); + assertTrue(FileUtil.matchesExtension(new File("test.json"), "json")); // special handling for OSGi configuration resource file extension assertTrue(FileUtil.matchesExtension(new File("test.cfg.json"), "cfg.json")); + assertFalse(FileUtil.matchesExtension(new File("test.cfg.json"), "json")); + assertFalse(FileUtil.matchesExtension(new File("test.json"), "cfg.json")); } }