Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-167

Support @EJB.mappedName for TestClass injection

    Details

      Description

      We should support letting the user set the mappedName on the injection in the test case to avoid having to follow our naming standards. (until we can do it more reliable, https://jira.jboss.org/browse/ARQ-77)

      Needs to document the potential jndi naming changes between Embedded EJB containers and Remote Containers(packaging)..

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            dandare100 Mark Jeffery added a comment -

            I really think this will help with the adoption of Arquillian when it comes to testing legacy systems.
            This feature would make my day

            Show
            dandare100 Mark Jeffery added a comment - I really think this will help with the adoption of Arquillian when it comes to testing legacy systems. This feature would make my day
            Hide
            aslak Aslak Knutsen added a comment -

            To work as expected we cant rewrite the deployments. need 'native' EJB test execution.

            Show
            aslak Aslak Knutsen added a comment - To work as expected we cant rewrite the deployments. need 'native' EJB test execution.
            Hide
            dallen6 David Allen added a comment -

            This should be finished other than documentation updates. A preliminary view pending documentation is at git://github.com/drallen/arquillian.git. Nothing special, mappedName is used as provided to do JNDI lookup. The user is responsible for ensuring that this is the correct name of the bean as deployed in the container being tested.

            Show
            dallen6 David Allen added a comment - This should be finished other than documentation updates. A preliminary view pending documentation is at git://github.com/drallen/arquillian.git. Nothing special, mappedName is used as provided to do JNDI lookup. The user is responsible for ensuring that this is the correct name of the bean as deployed in the container being tested.
            Hide
            aslak Aslak Knutsen added a comment -

            pushed upstream master

            Show
            aslak Aslak Knutsen added a comment - pushed upstream master
            Hide
            dallen6 David Allen added a comment -

            I still haven't updated the docs for this yet. I was going to do that today.

            Show
            dallen6 David Allen added a comment - I still haven't updated the docs for this yet. I was going to do that today.

              People

              • Assignee:
                dallen6 David Allen
                Reporter:
                aslak Aslak Knutsen
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development