[arquillian-issues] [JBoss JIRA] (ARQ-2157) Lookup value is null if classpath contains multiple ResourceProviders which canProvide lookup

Bartosz Majsak (JIRA) issues at jboss.org
Tue Nov 28 03:30:00 EST 2017


Bartosz Majsak created ARQ-2157:
-----------------------------------

             Summary: Lookup value is null if classpath contains multiple ResourceProviders which canProvide lookup
                 Key: ARQ-2157
                 URL: https://issues.jboss.org/browse/ARQ-2157
             Project: Arquillian
          Issue Type: Bug
          Components: Base Implementation
            Reporter: Bartosz Majsak
            Priority: Minor


*Issue Overview*
Currently ArquillianResourceTestEnricher is doing lookup for first provider from the classpath which can provide lookup. You can check code [here](https://github.com/arquillian/arquillian-core/blob/master/test/impl-base/src/main/java/org/jboss/arquillian/test/impl/enricher/resource/ArquillianResourceTestEnricher.java#L107)

If classpath contains multiple providers which can provide lookup, then it's returning first provider lookup which is resolving using ArquillianResourceTestEnricher.

*Expected Behaviour*
Arquillian should take Provider which has higher priority among all providers which canProvide lookup.
Or it should lookup at least all provider and return first non-null value. 

*Current Behaviour*
It's providing first provider's lookup which may be null.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the arquillian-issues mailing list