diff --git a/test/cryogen_core/classpath_able_io/cp_test.clj b/test/cryogen_core/classpath_able_io/cp_test.clj index 2118fde..a42ecae 100644 --- a/test/cryogen_core/classpath_able_io/cp_test.clj +++ b/test/cryogen_core/classpath_able_io/cp_test.clj @@ -17,5 +17,7 @@ (deftest should-find-path-on-cp (is (sut/path-if-exists "dummy")) + (is + (sut/path-if-exists "dummy" "dummy_from_jar")) (is (sut/path-if-exists "dummy_only_in_cp_fs"))) diff --git a/test/cryogen_core/classpath_able_io_test.clj b/test/cryogen_core/classpath_able_io_test.clj index 432a046..c78735d 100644 --- a/test/cryogen_core/classpath_able_io_test.clj +++ b/test/cryogen_core/classpath_able_io_test.clj @@ -19,42 +19,6 @@ (def target "target/tmp") -(deftest test-resource-from-cp-or-fs - (is - (some? (sut/resource-from-cp-or-fs - "not-existing-filesystem-path" - "" - "dummy"))) - (is - (ftt/verify-path-exists - (:java-path - (sut/resource-from-cp-or-fs - "./test-resources" - "templates/themes/bootstrap4-test" - "js")))) - (is - (ftt/verify-path-exists - (:java-path - (sut/resource-from-cp-or-fs - "./" "" ".gitkeep")))) - (is - (some? (sut/resource-from-cp-or-fs - "./test-resources" - "templates/themes/bootstrap4-test" - "js"))) - (is - (some? (sut/resource-from-cp-or-fs - "./not-existing-so-load-from-cp" "" ".gitkeep"))) - (is (= - {:virtual-path "js/subdir" - :source-type :java-classpath-filesystem - :resource-type :dir} - (ftt/filter-object - (sut/resource-from-cp-or-fs - "./not-existing-so-load-from-cp" - "templates/themes/bootstrap4-test" - "js/subdir"))))) - (deftest test-list-entries-for-dir (is (= ["subdummy.js", "test.js"] (seq