-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EventBus requires org.vertx.java.core.eventbus.EventBus? #48
Comments
It's for internal use. |
do you mean I can't use it at my test case? |
I don't think doing this is necessary. lazy val eb = EventBus(vertx.eventBus) because |
If its for internal usage you may want to have a package private constructor ? Am 02.09.2013 um 10:18 schrieb Ranie Jade Ramiso notifications@github.com:
|
@normanmaurer I think so too. The user does not need to worry about creating an |
@raniejade No, vertx is of type org.vertx.java.core.eventbus.EventBus by default.
Because TestVerticle is from testtools, getVertx or vertx returns java's vertx. |
Your first post is saying otherwise. On Tue, Sep 3, 2013 at 12:01 AM, Angelo H notifications@github.com wrote:
Ranie Jade Ramiso w: raniejaderamiso.com |
EventBus is accepting org.vertx.java.core.eventbus.EventBus, not scala's. That's why I create this bug. But if this is for internal use, there is no point to change it. I thought this line "val eb = EventBus(vertx.eventBus)" is required for every test case. But since there is no scala version's TestVerticle, how can I get scala version's EventBus in my test case?
|
The constructor is for internal use, that's why it's accepting This should do it, sorry did not understand you at first 😄 lazy val eb = EventBus(vertx.eventBus) |
found : org.vertx.scala.core.eventbus.EventBus
required: org.vertx.java.core.eventbus.EventBus
lazy val eb = EventBus(vertx.eventBus)
I think it should requires scala one.
The text was updated successfully, but these errors were encountered: