3 Replies Latest reply on May 5, 2006 2:25 AM by J-C jc

    Embedded EJB3 & classes

    J-C jc Apprentice

      I'm trying to explore how to use the embeddable EJB3 for my unit test. My tests are performed using JUnit. Build is done using maven. In maven lifecycle, classes are compiled, then unit tests are perfomred (using classes), jar is build and finally it is possible to execute integration tests.

      Problem is that unit tests are performed before the jar build. It uses .class in build directory. EJB3StandaloneBootstrap.scanClasspath scans for jar files, not for classes.

      Is is possible to register .class (or better a build directory containing .class) in the bootstrap ?