From e9adae10c6b43d816bb5a0ccabf1e177cd704cb7 Mon Sep 17 00:00:00 2001 From: "Michael S. Klishin" Date: Mon, 29 Aug 2011 14:02:15 +0400 Subject: [PATCH] Eliminate some reflection warnings in tests --- test/monger/test/convertion.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/monger/test/convertion.clj b/test/monger/test/convertion.clj index 5a3b849..d1eefe9 100644 --- a/test/monger/test/convertion.clj +++ b/test/monger/test/convertion.clj @@ -31,7 +31,7 @@ (deftest convert-map-to-dbobject (let [input { :int 1, :string "Mongo", :float 22.23 } - output (monger.convertion/to-db-object input)] + output #^DBObject (monger.convertion/to-db-object input)] (is (= 1 (.get output "int"))) (is (= "Mongo" (.get output "string"))) (is (= 22.23 (.get output "float"))))) @@ -39,8 +39,8 @@ (deftest convert-nested-map-to-dbobject (let [input { :int 1, :string "Mongo", :float 22.23, :map { :int 10, :string "Clojure", :float 11.9, :list '(1 "a" :b), :map { :key "value" } } } - output (monger.convertion/to-db-object input) - inner (.get output "map")] + output #^DBObject (monger.convertion/to-db-object input) + inner #^DBObject (.get output "map")] (is (= 10 (.get inner "int"))) (is (= "Clojure" (.get inner "string"))) (is (= 11.9 (.get inner "float")))