Hi,

yeah, you forgot the little "active me cdi please" detail:
META-INF/beans.xml. That's why you don't get any managed bean.

Not sure you are familiar with arquillian so saying it: it is done using
addAsManifestResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"))

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/11/8 Baker, Trevor <crba...@mail.ubc.ca>

>  Hi,****
>
> ** **
>
> I was trying to convert the cdi-basic example to use Arquillian. I ran
> into a problem because Faculty cannot be injected into Course unless
> Faculty is a @ManagedBean (or @Stateless). However, in the original
> cdi-basic example Faculty isn’t a @ManagedBean and the test runs green.***
> *
>
> ** **
>
> Wondering if I’m missing some config or something else.****
>
> ** **
>
> I’ve attached the cdi-basic-arquillian example.****
>
> ** **
>
> Thanks,****
>
> Trev****
>

Reply via email to