1 2 Previous Next 21 Replies Latest reply on Aug 21, 2008 12:24 PM by alrubinger Go to original post
      • 15. Re: EJBTHREE-1423 Test case for @RemoteBinding
        jaikiran

         

        "ALRubinger" wrote:

        I just checked current HEAD of SVN; Proxy is still on Beta35:

        $ mvn dependency:tree -Dincludes=org.jboss.metadata |grep metadata
        [INFO] \- org.jboss.metadata:jboss-metadata:jar:1.0.0.Beta35:compile



        That's one thing i found strange, this morning, when i started on this. The ejb3-build pom had this:
         <dependency>
         <groupId>org.jboss.metadata</groupId>
         <artifactId>jboss-metadata</artifactId>
         <version>1.0.0.Beta36</version>
         </dependency>



        But from the maven build logs (i did a clean install), i saw that only beta 35 was downloaded. So just as a hack, i added the 1.0.0.Beta36 to the ejb3-proxy module and rebuild the proxy module. This time i did see that the Beta36 was downloaded.

        "ALRubinger" wrote:

        The error you're seeing is because the interceptors themselves are declared in a configured interceptor stack, which is required. @see ejb3-interceptors-aop.xml (either in EJB3 Core src/main/resources or EJB3 Proxy src/test/resources). Problem is that you need for your test to load up these definitions;


        Makes sense.

        "ALRubinger" wrote:

        this is what I'd meant by "Add to setupBeforeClass the boilerplate for deploying *-aop.xml, example in JndiSessionRegistrarTestCaseBase (else tests will fail)". :)


        Hadn't grasped it when i read it earlier. But i understand now :)




        • 16. Re: EJBTHREE-1423 Test case for @RemoteBinding
          jaikiran

          Just an update - After adding the code for deploying the -aop.xml, the tests are passing locally for me. I need to clean up a few things and add one more test that i have in mind, before committing these by tomorrow. Will keep you updated.

          • 17. Re: EJBTHREE-1423 Test case for @RemoteBinding
            alrubinger

            Coolio.

            S,
            ALR

            • 18. Re: EJBTHREE-1423 Test case for @RemoteBinding
              jaikiran

              I am done with the testcase. They are passing :)

              "ALRubinger" wrote:

              Some change requests to your patch (mostly housekeeping):

              * Add to setupBeforeClass the boilerplate for deploying *-aop.xml,
              example in JndiSessionRegistrarTestCaseBase (else tests will fail)


              Done

              "ALRubinger" wrote:

              * Add tests that the explicit addresses are also unbound upon undeploy


              Done.

              "ALRubinger" wrote:

              Also, the package name / class name of the test could be more in-line with those you've done for JndiSessionRegistrarTestCaseBase; they both test pretty much the same thing, only difference is that this new one uses explicit bindings as opposed to the default. Maybe they could be merged?


              Yes, that's a good point.

              "ALRubinger" wrote:

              I'd just like it to be ultra-clear what these tests do from their names alone (JndiSessionRegistrarTestCaseBase sounds pretty vauge). Open to your suggestions here and then we'll move things around to be friendlier.


              How about merging these tests into a JNDIBindingTestCase, since all these tests, check that the ejb objects are properly bound/unbound to/from JNDI?





              • 19. Re: EJBTHREE-1423 Test case for @RemoteBinding
                alrubinger

                 

                "jaikiran" wrote:
                How about merging these tests into a JNDIBindingTestCase, since all these tests, check that the ejb objects are properly bound/unbound to/from JNDI?


                Pull the trigger.

                S,
                ALR

                • 20. Re: EJBTHREE-1423 Test case for @RemoteBinding
                  jaikiran

                  Done. SVN Revision: 77280

                  • 21. Re: EJBTHREE-1423 Test case for @RemoteBinding
                    alrubinger

                    It's in the release of EJB3 Proxy 0.1.2. :)

                    Nice job.

                    S,
                    ALR

                    1 2 Previous Next