You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It sure would be nice if configure was an annotated method instead of an overridden method so that a test base class could have one and then subclasses could have them too.
Comment 2363795
Date: 2014-02-15 11:54:51 -0500
From: Stuart McCulloch <mcculls@gmail.com>
Not sure what you mean by annotated method in this situation. The base test class and sub classes can all have configure(Binder) methods, they just need to remember to call the "super" method as usual if they want to inherit previous configurations.
This issue was created automatically with bugzilla2github
Bugzilla Bug 428240
Date: 2014-02-14 21:11:02 -0500
From: benson margulies <bimargulies@gmail.com>
To: Project Inbox <sisu-inbox@eclipse.org>
CC: mcculls@gmail.com
Last updated: 2014-02-15 11:57:31 -0500
Comment 2363728
Date: 2014-02-14 21:11:02 -0500
From: benson margulies <bimargulies@gmail.com>
I can't seem to make a test using InjectedTest that depends on the LifecycleModule.
Comment 2363730
Date: 2014-02-14 21:22:25 -0500
From: benson margulies <bimargulies@gmail.com>
Comment 2363786
Date: 2014-02-15 11:19:36 -0500
From: Stuart McCulloch <mcculls@gmail.com>
Note you can use the configure(Binder) method to add bindings or install modules:
There's also a
configure(Properties)
method for setting custom properties.Comment 2363789
Date: 2014-02-15 11:29:12 -0500
From: benson margulies <bimargulies@gmail.com>
It sure would be nice if configure was an annotated method instead of an overridden method so that a test base class could have one and then subclasses could have them too.
Comment 2363795
Date: 2014-02-15 11:54:51 -0500
From: Stuart McCulloch <mcculls@gmail.com>
Not sure what you mean by annotated method in this situation. The base test class and sub classes can all have
configure(Binder)
methods, they just need to remember to call the "super" method as usual if they want to inherit previous configurations.Comment 2363796
Date: 2014-02-15 11:57:31 -0500
From: benson margulies <bimargulies@gmail.com>
It's the 'super' calls I'm being whiny about.
Imagine an
@Configure
that works like@Before
, so that you wouldn't have to.I'll make a patch if it bothers me enough.
Meanwhile, this patch looks pretty much useless now.
The text was updated successfully, but these errors were encountered: