Yes. I think I'm going to back out the ImplementedBy support in a few weeks. Long story but it requires some refactoring.
And I couldn't wrap my head around Jukito but maybe I need to spend some time on it. I guess it just auto-creates mocks for me. Kevin On Tuesday, October 28, 2014 11:22:50 PM UTC-7, scl wrote: > > Yes, you don't want to have dependencies on your test code. > > If all you need is injection of mocks then you may want to look at jukito > as it can inject mocks for any dependency for which you havn't bound an > implementation. > Am 29.10.2014 02:52 schrieb Sam Berlin <[email protected] <javascript:>>: > > @ImplementedBy is generally a bad idea because it forces your API to have > a dependency on your implementation. @MockedBy would be even worse, > because it would force your API to have a dependency on your tests. > > If you're looking to make testing mocked bindings easier, see > https://github.com/google/guice/wiki/BoundFields, new in Guice 4.0. > > sam > > On Tue Oct 28 2014 at 7:01:31 PM Kevin Burton <[email protected] > <javascript:>> wrote: > >> @ImplementedBy is handy because I can have the reference implementation >> defined in the interface. >> >> But for tests, I have to manually create bindings. >> >> I wonder if something similar is needed for mocks. Maybe a @MockedBy ? >> >> Or maybe it's a bad idea :-P >> >> -- >> You received this message because you are subscribed to the Google Groups >> "google-guice" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/google-guice. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-guice/cb2a65d0-24cb-4c7f-93ea-3655d5dafdc1%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-guice/cb2a65d0-24cb-4c7f-93ea-3655d5dafdc1%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at http://groups.google.com/group/google-guice. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-guice/CAJEBNUc88JxpeTyoj64NcK2JBhn%3DqwHdoSk8LtFfXTuV1k3R2w%40mail.gmail.com > > <https://groups.google.com/d/msgid/google-guice/CAJEBNUc88JxpeTyoj64NcK2JBhn%3DqwHdoSk8LtFfXTuV1k3R2w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-guice. To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/4d943869-9ed6-409c-870f-cdf0389f4f54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
