Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
AE-2014: Add type hint and import in solita.etp.service.asha-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Juholei committed Dec 11, 2023
1 parent 5ba23f4 commit ca764e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions etp-backend/src/test/clj/solita/etp/service/asha_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
[solita.etp.service.valvonta-kaytto.hallinto-oikeus-attachment :as hao]
[solita.etp.test-system :as ts]
[clostache.parser :refer [render-resource]])
(:import (java.nio.charset StandardCharsets)
(:import (clojure.lang ExceptionInfo)
(java.nio.charset StandardCharsets)
(java.time Instant)
(java.util Base64)))

(t/use-fixtures :each ts/fixture)

(defn- handle-request [request-resource response-resource response-status & [exception]]
(defn- handle-request [request-resource response-resource response-status & [^String exception]]
(fn [request]
(t/is (= (str/trim request) (-> request-resource io/resource slurp str/trim)))
(if exception
Expand Down Expand Up @@ -99,7 +100,7 @@
"asha/case-create-response-without-sender-id.xml"
400
"clj-http: status 400")]
(t/is (thrown-with-msg? clojure.lang.ExceptionInfo
(t/is (thrown-with-msg? ExceptionInfo
#"Asiahallinta request failed. Posting the request failed."
(asha-service/open-case!
{:request-id "ETP-1"
Expand Down

0 comments on commit ca764e6

Please sign in to comment.