0 Replies Latest reply: Sep 22, 2011 4:20 AM by Geoffrey De Smet RSS

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

Geoffrey De Smet Newbie

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.