0 Replies Latest reply on Sep 22, 2011 4:20 AM by ge0ffrey

    Using an alternative bean in tests: where to declare alternative?


      My webapp has a non-empty production beans.xml with many content under src/main/resources/META-INF.
      For my tests only, I need to swap out 1 bean with an alternative.

      Where do I put this test-beans.xml and how do I name it,
      which contains just this (and not a copy of the content of the real beans.xml?

      <?xml version="1.0" encoding="UTF-8"?>
      <beans ...>

      The tests should use the real beans.xml (and seam-beans.xml) with the test-beans.xml.
      I am using arquillian and my test classpath is added to ShrinkWrap.