diff --git a/test/tarayo/mail/mime/message_test.clj b/test/tarayo/mail/mime/message_test.clj index f03d209..1665489 100644 --- a/test/tarayo/mail/mime/message_test.clj +++ b/test/tarayo/mail/mime/message_test.clj @@ -28,7 +28,8 @@ (.saveChanges msg) (t/is (= "foo" (.getMessageID msg))))))) -(defn- ^MimeMessage gen-test-message +(defn- gen-test-message + ^MimeMessage [] (let [{:keys [session]} (h/test-connection) ^Calendar cal (doto (Calendar/getInstance) diff --git a/test/tarayo/test_helper.clj b/test/tarayo/test_helper.clj index 072d3d8..90b5fb0 100644 --- a/test/tarayo/test_helper.clj +++ b/test/tarayo/test_helper.clj @@ -61,7 +61,8 @@ (tarayo-user-agent? (first x)) (some? (re-seq #"^tarayo/.+$" x)))) -(defn ^SMTPTransport test-transport +(defn test-transport + ^SMTPTransport [] (proxy [SMTPTransport] [(session/make-session) (jakarta.mail.URLName. "localhost")] (connect