We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd75ce2 commit 7fff243Copy full SHA for 7fff243
src/test/clojure/clojure/java/test_jmx.clj
@@ -229,4 +229,11 @@
229
(jmx/register-mbean mbean mbean-name)
230
(is (= 123 (jmx/read mbean-name :a-property)))
231
(jmx/unregister-mbean mbean-name)
232
- (is (thrown? InstanceNotFoundException (jmx/read mbean-name :a-property)))))
+ (if (= [1 3] [(*clojure-version* :major) (*clojure-version* :minor)])
233
+ ; clojure 1.3 throws RuntimeException directly for some reason so catch that and
234
+ ; verify that the underlying exception is right
235
+ (try
236
+ (jmx/read mbean-name :a-property)
237
+ (catch RuntimeException e
238
+ (is (instance? InstanceNotFoundException (.getCause e)))))
239
+ (is (thrown? InstanceNotFoundException (jmx/read mbean-name :a-property))))))
0 commit comments