From b6d1b9adcdd445e71f04e9fbdc9003807ade23d6 Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 7 Feb 2020 18:02:36 +0100 Subject: [PATCH] move some test to appropriet plc --- .../classpath_able_io/cp_test.clj | 2 ++ test/cryogen_core/classpath_able_io_test.clj | 36 ------------------- 2 files changed, 2 insertions(+), 36 deletions(-) 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