[jboss-user] [EJB 3.0] - Re: Recommended testing framework
Heh, JUnitEE may be 'dead' but it works... I even ginned up an Injector, so in my test cases I can use the @EJB and @Resource Annotation ;) In fact I even made annotations for DBunit and one that automagically auths my tests. Now, if only @Interceptors() only worked (at all) I'd be golden... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150207#4150207 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Recommended testing framework
I just ran into Ejb3Unit, so I think I'll try that first. Does anyone have any experience of this framework? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143415#4143415 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143415 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Recommended testing framework
I already posted a question regarding this in the beginners section, until I found this thread. Adam, if you're still around, could you tell a bit more specifically how your solution was put together? We've been using embedded JBoss for unit testing so far, but now we are trying to get rid of it. Other solutions would be welcome as well. As Adam pointed out, it seems that JUnitEE is a dead project nowadays. I have found Cactus too, but haven't really checked it out yet. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143409#4143409 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143409 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Recommended testing framework
Thanks Wayne, I actually found JUnitEE after getting frustrated with Cactus. As far as I could tell Cactus was actually made by [a] former JUnitEE developer[s]. From the website it appears the last release was in 2004. While not that impressed with the Annotation-based style of JUnit4 (I thought Java was a typed language for a reason? :) I decided to go with it so that was a requirement for me going forward. My home-baked solution is working very well and I like how lightweight it is. I would recommend going down this path to anyone looking for a simple unit testing strategy in JBoss4.x. Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115957#4115957 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115957 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Recommended testing framework
junitee.org is another option. you're solution sounds very similar to this project. the only drawback i've found so far is that it uses junit 3.8. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115564#4115564 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115564 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Recommended testing framework
If anyone is curious as to how I ended up, I wrote custom Ant tasks to start and stop JBoss from the jars in the bin directory, on Unix OS's also using ps and kill to make sure that its really dead if the stop script doesn't succeed. I learned how to do this by looking at JBoss' own testsuite scripts. For running the tests I have a simple HttpServlet that runs the tests with JUnitCore.runClasses(...) and puts the results on the response in an easy to view HTML table. This took me one day and the framework amounts to maybe two pages of code. Really wish I went down this path from the beginning and didn't mess with Cactus for so long. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114785#4114785 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114785 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Recommended testing framework
"gquintana" wrote : I am using Cactus+EJB3+JBoss 4.2 with satisfaction. May I ask how? A direct quote from a developer on their mailing list as of July 2007 states that it is not compatible with J2EE 1.5 (http://www.mail-archive.com/cactus-user%40jakarta.apache.org/msg07439.html). Jboss4 support seems like they are working on it but still, as of the latest release, it is not truly supported. I set up a custom container in my Ant build...but then I ran into the Ant 1.7 incompatibility. I got around this by running Ant 1.6.5 side by side. Do the EJB's 'just work' with the latest version of Cactus or did you have to do some customization? I spent a lot of time setting all of this up and would love to be able to continue down this path but it just seems kind of messy at the moment. The fact that they haven't had a release in a year and a half nor have any nightly builds operating (http://people.apache.org/builds/jakarta-cactus/nightly/) is distressing. Their JIRA also seems inactive, though perhaps they have moved to something else. Any guidance would be greatly appreciated. I was just referred to JBoss' Test Suite functionality and will most likely be going down that path, hopefully with some luck. Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112281#4112281 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112281 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Recommended testing framework
I am using Cactus+EJB3+JBoss 4.2 with satisfaction. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112170#4112170 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112170 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user