override binding

42 views
Skip to first unread message

Ashuin Sharma

unread,
Dec 13, 2013, 6:51:18 PM12/13/13
to guiceber...@googlegroups.com
Hi ! Im having problems trying to override a binding.

If I have a test with a rule such as this :

  @Rule
  public GuiceBerryRule guiceBerry = new GuiceBerryRule(CommonStackTestEnvironmentModule.class);

and I need to override a binding defined in that module? how would be the most recommended way to do it? is there a built in way into guiceberry? or the solution
for this problem is limited to Guice itself?

Just for context, im trying to mock Clock to a FakeClock Instance , for an Apiary integration test. I need to fix the "today" date to a particular date.
Reply all
Reply to author
Forward
0 new messages