Re: How to write tests fro vertx and Clojure

2015-01-02 Thread Toby Crawley
Ah, right. When embedded, you'll have to use a platform manager to deploy verticles. See http://vertx.io/mod-lang-clojure/docs/1.0.4/vertx.embed.platform.html. However, moving the code out of the veriticles for testing is probably a better idea. - Toby On Sun, Dec 28, 2014 at 1:06 PM, rogergl w

Re: How to write tests fro vertx and Clojure

2014-12-28 Thread rogergl
Maybe it is a better solution to put the code I wan't to test outside the vertices and just leave the basic eventbus setup insides the vertices ? Regards Rpger -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cl

Re: How to write tests fro vertx and Clojure

2014-12-28 Thread rogergl
I think I'm getting close. The eventbus_test.clj runs and I changed my test to: (deftest eb-send (core/deploy-verticle "/project/vertices/time.clj") (let [addr const/topic-time id (

Re: How to write tests fro vertx and Clojure

2014-12-28 Thread Toby Crawley
On Sun, Dec 28, 2014 at 9:52 AM, rogergl wrote: > it seems as if there is a test package for vertx and Clojure > (vertx.testools) > > Since I would like to test my vertices I tried this simple approach: > > (tt/as-embedded (fn [] > (core/deploy-verticle "project/vertices/time.clj") > (tt/