File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
test/clj/cider/nrepl/middleware Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 3
3
[cider.nrepl.middleware.content-type :as content-type]
4
4
[cider.nrepl.test-session :as session]
5
5
[clojure.string :as str]
6
- [clojure.test :refer :all ]))
6
+ [clojure.test :refer :all ])
7
+ (:import
8
+ [org.apache.commons.lang3 SystemUtils]))
7
9
8
10
(use-fixtures :each session/session-fixture)
9
11
55
57
(select-keys [:body :content-type :content-transfer-encoding :status ]))))))
56
58
57
59
(testing " java.awt.image.RenderedImage"
58
- (is (= {:body " iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVR4XmNgAAIAAAUAAQYUdaMAAAAASUVORK5CYII=" ,
60
+ (is (= {:body (if (SystemUtils/IS_JAVA_1_8 )
61
+ " iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR42mNgYGAAAAAEAAHI6uv5AAAAAElFTkSuQmCC"
62
+ " iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVR4XmNgYGAAAAAEAAEP0q3kAAAAAElFTkSuQmCC" )
59
63
:content-type [" image/png" {}]
60
64
:content-transfer-encoding " base64"
61
65
:status #{" done" }}
62
66
(-> {:op " eval"
63
- :code " (java.awt.image.BufferedImage. 1 1 java.awt.image.BufferedImage/TYPE_INT_ARGB )"
67
+ :code " (java.awt.image.BufferedImage. 1 1 java.awt.image.BufferedImage/TYPE_INT_RGB )"
64
68
:content-type " true" }
65
69
session/message
66
70
(select-keys [:body :content-type :content-transfer-encoding :status ])))))
You can’t perform that action at this time.
0 commit comments