On Fri, Jan 16, 2009 at 5:57 PM, Dhanji R. Prasanna <[email protected]>wrote:

>
>
> On Fri, Jan 16, 2009 at 2:22 PM, Mathieu <[email protected]> wrote:
>
>>
>> Hi,
>>
>> I don't know how you setup your environment, but this usage has been
>> tested and works well: In example:
>>
>> @GuiceContext(AModule.class)
>> public final class ExtendTest extends AbstractMycilaTestNGTest {
>>    @Inject
>>    @Named("service1")
>>    Service service1;
>>    @Test
>>    public void test_inject() {
>>        assertEquals(service1.go(), "go1");
>>    }
>> }
>>
>> If you need some help, i suggest you post fore information on your
>> setup and the libraries you are using on your classpath at
>> http://code.google.com/p/mycila/issues/list so that we can help you.
>> Nevertheless, i hardly advise to not use inheritance even for test
>> classes since it leads to junk classes having an accumulation of
>> methods which leads to tests that are time consuming to maintain.
>
>
Or did you mean, you "strongly" advise against inheritance? In which case, I
agree.

Dhanji.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to