Module definition per test

28 views
Skip to first unread message

Todd Nine

unread,
Dec 10, 2013, 4:18:47 PM12/10/13
to juk...@googlegroups.com
Hi guys,
  We have some integration test modules that require use to change our module config, only for the duration of a single test.  We've been using Guiceberry for this, but we'd like to move to Jukito.  It doesn't appear to be possible with the current setup.  Given that the modules aren't injected until before the method is invoked, is it possible to override the Module configuration per test with the same annotation that's used at the class level?

Thanks,
Todd

Alex Karasulu

unread,
Dec 17, 2013, 10:47:19 AM12/17/13
to juk...@googlegroups.com
Hi Todd,


On Tuesday, December 10, 2013 11:18:47 PM UTC+2, Todd Nine wrote:
Hi guys,
  We have some integration test modules that require use to change our module config, only for the duration of a single test.  We've been using Guiceberry for this, but we'd like to move to Jukito.  It doesn't appear to be possible with the current setup.  Given that the modules aren't injected until before the method is invoked, is it possible to override the Module configuration per test with the same annotation that's used at the class level?


I submitted a PR specifically for this purpose here: https://github.com/ArcBees/Jukito/pull/41

Hopefully we can get it into master soon so it can come out in the next release.

Best,
Alex 
Reply all
Reply to author
Forward
0 new messages