6 Replies Latest reply on Mar 4, 2013 8:14 PM by Shay Matasaro

    In test mode testing Weld loads wrong beans.xml

    Shay Matasaro Newbie



      When testing using Junit, Arquillian, and the Weld embedded container , Weld loads beans.xml from  src/main/resources/META-INF rather then the one from the shrinkwrap archive or the one from src/test/resources/META-INF.


      Attached is simple reproducer project  that uses an empty beans.xml in main, and an added interceptor in test. There are also two unit test classes, one relies on the file in src/test/resources/META-INF, and the other explicitly loads the file into the shrinkwrap archive , in both cases the interceptor is not enabled.