Skip to content

Commit a411e1b

Browse files
[test] Re-enable tests that depend on JDK sources
1 parent eda4b6b commit a411e1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/clj/cider/nrepl/middleware/info_test.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
[clojure.string :as str]
99
[clojure.test :refer :all]
1010
[orchard.java]
11+
[orchard.java.source-files]
1112
[orchard.misc :as misc])
1213
(:import
1314
(cider.nrepl.test AnotherTestClass TestClass YetAnotherTest)
@@ -19,8 +20,7 @@
1920

2021
(def jdk-sources-present?
2122
"Is Java sources files available on the classpath?"
22-
(boolean (or (io/resource "java/lang/Thread.java")
23-
(io/resource "java.base/java/lang/Thread.java"))))
23+
(boolean (orchard.java.source-files/class->source-file-url Thread)))
2424

2525
(deftest format-response-test
2626
(is (re-find #"^(https?|file|jar|zip):" ; resolved either locally or online

0 commit comments

Comments
 (0)