[ 
http://issues.ops4j.org/browse/PAXEXAM-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12142#action_12142
 ] 

Alin Dreghiciu commented on PAXEXAM-41:
---------------------------------------

Excellent request Craig. I recall this feature was also requested by Marcel 
Offermans as they had it in their home grown testing framework.
+1 for keeping the @Inject annotation and I suggest additional annotations if 
we need some additional setup about the service as in @Timeout, @Optional and 
so on. But maybe we should keep it small not become another DI framework :)

> Should be able to @Inject services
> ----------------------------------
>
>                 Key: PAXEXAM-41
>                 URL: http://issues.ops4j.org/browse/PAXEXAM-41
>             Project: Pax Exam
>          Issue Type: Improvement
>            Reporter: Craig Walls
>            Assignee: Toni Menzel
>            Priority: Minor
>
> I'd like to use @Inject (or some other annotation) to auto-inject services 
> into my Pax Exam tests. For example:
> @Inject
> private FooService fooService;
> Then it'd be great for Pax Exam to lookup a service that implements 
> FooService. Or...
> @Inject
> private FooService[] fooServices;
> Then it would inject a collection of services when there are more than one 
> matching service.
> This would simplify testing with Pax Exam even further and bridge the gap 
> between Pax Exam's capability's and Spring-DM's testing support.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to