IBM RAD with JUnit and AbstractCdiAwareTest

2011-11-24 Thread Christian Beikov
Hello! I finally got myself to try out the JUnit-CDI tests but the actual result is dissappointing. I added the following libraries to the build path of a project: myfaces-extcdi-base-test-infrastructure-1.0.1.jar myfaces-extcdi-bundle-jsf20-1.0.1.jar

Re: IBM RAD with JUnit and AbstractCdiAwareTest

2011-11-24 Thread Gerhard Petracek
hi christian, you need additional test-dependencies. you can have a look at a working config at [1]. regards, gerhard [1] http://code.google.com/a/apache-extras.org/p/myfaces-codi-examples/source/browse/community/pom.xml http://www.irian.at Your JSF/JEE powerhouse - JEE Consulting,

Re: IBM RAD with JUnit and AbstractCdiAwareTest

2011-11-24 Thread Christian Beikov
Am 24.11.2011 13:12, schrieb Gerhard Petracek: hi christian, you need additional test-dependencies. you can have a look at a working config at [1]. regards, gerhard [1] http://code.google.com/a/apache-extras.org/p/myfaces-codi-examples/source/browse/community/pom.xml http://www.irian.at

Re: IBM RAD with JUnit and AbstractCdiAwareTest

2011-11-24 Thread Mark Struberg
Hi Christian! Since you added all WebSphere-8.0 libs you don't need the openwebbeans-* jars (WS includes them already). Btw, the myfaces-extcdi-test was developed to perform quick standalone tests. For testing a full EE server you might better use Arquillian. I'm not sure if there is

Re: IBM RAD with JUnit and AbstractCdiAwareTest

2011-11-24 Thread Christian Beikov
I already tried to get Arquillian to work but it seems to be very hard to get it working in IBM RAD without maven. Just right now I am trying to get all libs I need to successfully run a test, but as I said, without maven it's a pain... I still don't understand why these CdiAware tests throw a

Re: IBM RAD with JUnit and AbstractCdiAwareTest

2011-11-24 Thread Gerhard Petracek
hi christian, as mentioned by mark - it wasn't intended to use those test-modules that way. for simple unit tests you need a mocked environment (without libs of the target application-server). for htmlunit/cargo tests you need to bootstrap a compatible container (see the cargo-examples profile).

Re: IBM RAD with JUnit and AbstractCdiAwareTest

2011-11-24 Thread Mark Struberg
One of the reasons why you will get a NPE is because the openwebbeans version shipped with WAS is customized and integrates much deeper with the EJB container, JPA, JMX etc shipping with WAS. OpenWebBeans provides a lot of SPIs to extend it's features. And in WAS there are a lot owb-plugins