Skip to content

Commit

Permalink
update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Jan 9, 2024
1 parent 3c9c399 commit 33348b4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

}

0 comments on commit 33348b4

Please sign in to comment.