My webapp has a non-empty production beans.xml
under src/main/resources/META-INF
.
Now, for my tests, I need to swap out 1 bean with an alternative.
Where do I put this test beans.xml
which contains just this and nothing more?
<?xml version="1.0" encoding="UTF-8"?>
<beans ...>
<alternatives>
<class>...MyTestReplacement</class>
</alternatives>
</beans>
I tried under src/test/resources/META-INF
but that is ignored. I am using arquillian and my test classpath is added to the ShrinkWrap.