move some test to appropriet plc

This commit is contained in:
jem 2020-02-07 18:02:36 +01:00
parent 16984044d2
commit b6d1b9adcd
2 changed files with 2 additions and 36 deletions

View file

@ -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")))

View file

@ -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